/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 强制清除所有默认样式 */
ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background-color: #ffffff; /* 简洁背景，提升信息聚焦 */
}

:root {
    --brand: #ff6b9a;
    --brand-2: #ff9fc0;
    --ink: #2a2f45;
    --muted: #6f6b78;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(20, 24, 40, 0.08);
}

.container {
    max-width: 1140px; /* 收窄版心，版式更紧致 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #ffffffcc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: saturate(150%) blur(8px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
}

.nav-menu li {
    list-style: none !important;
    display: inline-block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--brand);
}

.nav-menu a.active {
    color: var(--brand);
    position: relative;
}
.nav-menu a.active::after {
    content: '';
    position: absolute; left: 0; bottom: -8px;
    width: 100%; height: 2px; background: var(--brand);
}

/* 英雄区域 */
.hero {
    padding: 120px 0 88px;
    background:
      radial-gradient(900px 380px at 20% -10%, rgba(255,155,192,0.22), transparent 60%),
      radial-gradient(800px 360px at 100% 0%, rgba(255,107,154,0.18), transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #fff2f6 100%);
    color: var(--ink);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-description p {
    margin-bottom: 20px;
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--muted);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 产品介绍 */
.product-section {
    padding: 88px 0;
    background: #fffefe;
}
.product-section .container { position: relative; }
.product-section .container::before { content: none; }

.product-section h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #2f2f33; /* 中性深灰，去除蓝调 */
    letter-spacing: -0.02em;
    font-weight: 700;
}

.section-subtitle {
    text-align: left;
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 42px;
}

.product-split { display: grid; grid-template-columns: 5fr 7fr; gap: 18px; align-items: center; }
.features-list { display: grid; gap: 14px; }
.feature-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid #eee; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.04); }
.feature-row h3 { margin: 0 0 4px; font-size: 1.02rem; color: #2f2f33; }
.feature-row p { margin: 0; color: var(--muted); }

.product-image img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.product-features .feature-item h3 { font-size: 1.28rem; letter-spacing: -.2px; color: #2f2f33; }
.product-features .feature-item p { max-width: 60ch; }

/* 走马灯 */
.product-marquee { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.mq-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid #eaeaea; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.05); cursor: pointer; }
.mq-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px; border: 1px solid #eee; border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.05); }
.mq-track::-webkit-scrollbar { height: 8px; }
.mq-track::-webkit-scrollbar-thumb { background: #eaeaea; border-radius: 999px; }
.mq-item { scroll-snap-align: start; background: #fff; border-radius: 10px; overflow: hidden; }
.mq-item img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* 核心产品 - 卡片+图片（控制图片尺寸，避免撑乱布局） */
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { display: grid; grid-template-rows: 180px auto; border: 1px solid #eee; background: #fff; border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.05); overflow: hidden; }
.pcard-media { margin: 0; }
.pcard-media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.pcard-body { padding: 12px 12px 14px; }
.pcard-body h3 { margin: 0 0 6px; font-size: 1.02rem; color: #2f2f33; }
.pcard-body p { margin: 0; color: var(--muted); line-height: 1.75; }

/* Feature 数字卡片 */
.fc-num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 18px rgba(255,107,154,.25); font-size: .9rem; }

/* App 截图展示 */
.app-gallery {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.phone-frame {
    background: #fff; border-radius: 16px; padding: 8px;
    box-shadow: 0 8px 20px rgba(16,24,40,.10); border: 1px solid #eef2ff;
    display: flex; align-items: center; justify-content: center;
}
.phone-frame img { width: 100%; height: auto; border-radius: 12px; display: block; object-fit: cover; }

.feature-item h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
    color: #3a4259;
    font-weight: 700;
}

.feature-item p {
    color: var(--muted);
    line-height: 1.7;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: #f8faff;
}

.about-section h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2f2f33;
}

.about-content { display: none; }

.about-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-card { position: relative; background: linear-gradient(180deg, #ffffff 0%, #fff4f8 100%); border: 1px solid #f4dbe3; border-radius: 18px; padding: 20px 18px 18px 22px; box-shadow: 0 12px 28px rgba(255,107,154,0.10); overflow: hidden; }
.about-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-top-left-radius: 18px; border-bottom-left-radius: 18px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); opacity: .9; }
.about-card h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -.2px; color: #2f2f33; }
.about-card p { margin: 0; color: var(--muted); line-height: 1.85; }
.about-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.about-card li { margin: 6px 0; }
.about-card:hover { box-shadow: 0 16px 36px rgba(255,107,154,0.14); transform: translateY(-1px); transition: box-shadow .25s ease, transform .25s ease; }

.about-text h3 {
    font-size: 1.4rem;
    margin: 22px 0 10px;
    color: var(--ink);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    color: var(--muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.about-text li:before {
    content: "•";
    color: var(--brand);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-image img { display: none; }

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #fff8fb;
}

.contact-section h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 48px;
    color: #2f2f33;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    max-width: 1140px; /* 与版心对齐，防止过宽导致错位 */
    margin: 0 auto;     /* 居中放置，但标题仍为左对齐 */
}

.contact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #eee;
}

.ci-icon {
    width: 36px; height: 36px;
    margin: 0;
    display: grid; place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    color: #fff; font-size: 18px;
    box-shadow: 0 6px 14px rgba(255,107,154,0.22);
}

.contact-item h3 {
    font-size: 1rem;
    margin: 0;
    color: #2f2f33;
    grid-column: 2; /* 始终放到文本列，避免跑到图标列导致竖排 */
}

.contact-item p {
    color: var(--muted);
    font-size: .98rem;
    margin: 0;
    grid-column: 2; /* 同上：文本列 */
}

.contact-item a {
    color: var(--brand);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-btn { display: none; }

/* 底部 */
.footer {
    background: #0f172a;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-16px); }
.reveal-left.show { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(16px); }
.reveal-right.show { opacity: 1; transform: translateX(0); }

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .features-grid { grid-template-columns: 1fr; }

    .app-gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
}