/**
 * Rainbow AIoT Theme - Main Styles
 * 从preview-light-v5.html提取的样式
 *
 * @package Rainbow_AIoT
 */

/* ===== 导航栏 ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 60px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    background: transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    max-height: 36px;
    width: auto;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-logo:hover .nav-logo-mark {
    transform: scale(1.05);
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* ===== Hero区 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 160px 48px 120px;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 32px;
    letter-spacing: 0.01em;
    max-width: 480px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.hero-cta-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.35);
}

.hero-cta-secondary {
    padding: 16px 32px;
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: 0.3s;
}

.hero-cta-secondary:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
    transform: translateY(-2px);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .nav-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #94a3b8;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== 通用组件 ===== */
.section-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ===== Elementor覆盖 ===== */
.elementor-section.elementor-section-boxed {
    max-width: 1200px;
}
