/* ===== AI 陪读 企业官网样式 ===== */

:root {
    --brand-primary: #1a6e6e;
    --brand-primary-dark: #0f4d4d;
    --brand-primary-light: #2d9999;
    --brand-accent: #ff8c42;
    --brand-accent-dark: #e6712a;
    --brand-dark: #0f2e2e;
    --brand-bg: #f7faf9;
    --brand-text: #1f2d2d;
    --brand-muted: #6b7d7d;
    --brand-border: #e2eaea;
    --shadow-sm: 0 2px 8px rgba(15, 46, 46, .06);
    --shadow-md: 0 8px 24px rgba(15, 46, 46, .08);
    --shadow-lg: 0 16px 48px rgba(15, 46, 46, .12);
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 68px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--brand-text);
    background: var(--brand-bg);
    line-height: 1.6;
}

a { color: var(--brand-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-accent); }

/* ===== 导航栏 ===== */
.site-header { height: var(--header-h); }

.navbar-main {
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--brand-border);
    transition: box-shadow .3s ease;
}

.navbar-main.scrolled { box-shadow: var(--shadow-sm); }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    font-size: 1.1rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: .5px;
}

.navbar-main .nav-link {
    color: var(--brand-text);
    font-weight: 500;
    padding: .5rem 1rem !important;
    position: relative;
    transition: color .2s ease;
}

.navbar-main .nav-link:hover { color: var(--brand-primary); }

.navbar-main .nav-link.active { color: var(--brand-primary); }
.navbar-main .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-primary);
}

.btn-login {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff !important;
    border: none;
    padding: .5rem 1.4rem !important;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

/* ===== 通用区块 ===== */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: .75rem;
    letter-spacing: -.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--brand-muted);
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: .75rem;
}

/* ===== 主页 Hero ===== */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    padding-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 46, 46, .92) 0%, rgba(26, 110, 110, .7) 50%, rgba(15, 46, 46, .85) 100%);
}

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

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .9);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    padding: .85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-hero-primary:hover {
    background: var(--brand-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    padding: .85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s ease;
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ===== 特性卡片 ===== */
.feature-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26, 110, 110, .12), rgba(26, 110, 110, .04));
    color: var(--brand-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h5 { font-weight: 700; color: var(--brand-dark); margin-bottom: .5rem; }
.feature-card p { color: var(--brand-muted); margin: 0; }

/* ===== 数据统计条 ===== */
.stat-band {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    color: #fff;
}
.stat-number { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat-label { color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* ===== 产品页 ===== */
.product-hero {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary-dark));
    color: #fff;
    padding: 7rem 0 5rem;
}

.screenshot-frame {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #fff;
}
.screenshot-frame img { width: 100%; display: block; }

.first-poster {
    max-width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.first-poster img {
    width: auto;
    max-width: 100%;
    max-height: 560px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.feature-poster {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
}
.feature-poster img {
    width: auto;
    max-width: 100%;
    max-height: 480px;
    display: inline-block;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.download-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.download-card .platform-icon { font-size: 2.4rem; color: var(--brand-primary); margin-bottom: .75rem; line-height: 1; }
.download-card .platform-icon svg { display: block; width: 54px; height: 54px; margin: 0 auto; }
.download-card h5 { font-weight: 700; margin-bottom: .25rem; }
.download-card .ver { color: var(--brand-muted); font-size: .9rem; margin-bottom: 1rem; }

.btn-download {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    padding: .6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s ease;
}
.btn-download:hover { background: var(--brand-primary-dark); color: #fff; }

/* ===== 关于我们 ===== */
.about-hero {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    color: #fff;
    padding: 7rem 0 5rem;
}

.value-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--brand-border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card .num { font-size: 2.4rem; font-weight: 800; color: var(--brand-accent); line-height: 1; }

.cta-band {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 3.5rem 2.5rem;
}
.cta-band h2 { font-weight: 800; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .9); margin-bottom: 1.5rem; }

/* ===== 套餐定价 ===== */
.pricing-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.popular { border: 2px solid var(--brand-primary); }
.pricing-card.popular::before {
    content: "热门";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-accent);
    color: #fff;
    padding: 2px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}
.price-number { font-size: 2.8rem; font-weight: 800; color: var(--brand-dark); }
.price-unit { color: var(--brand-muted); font-size: 1rem; }

.btn-pricing {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    width: 100%;
    padding: .7rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s ease;
}
.btn-pricing:hover { background: var(--brand-primary-dark); color: #fff; }

/* ===== 登录/注册表单 ===== */
.auth-wrap {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--brand-bg), #eef4f3);
}

.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card h2 { font-weight: 800; color: var(--brand-dark); margin-bottom: .5rem; }
.auth-card .sub { color: var(--brand-muted); margin-bottom: 1.75rem; }

.form-control {
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    border: 1px solid var(--brand-border);
}
.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(26, 110, 110, .15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border: none;
    padding: .8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    width: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.auth-foot { text-align: center; margin-top: 1.25rem; color: var(--brand-muted); font-size: .95rem; }

/* ===== 个人中心 ===== */
.account-hero {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    color: #fff;
    padding: 7rem 0 3rem;
}

.account-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: box-shadow .2s ease;
}
.account-card:hover { box-shadow: var(--shadow-sm); }
.account-card h6 { color: var(--brand-muted); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; margin-bottom: 1rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(34, 197, 94, .12);
    color: #15803d;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    border-bottom: 1px solid var(--brand-border);
}
.device-row:last-child { border-bottom: none; }

/* 设备在线绿点：出现在设备图标右上角 */
.device-dot {
    display: none;
    position: absolute;
    top: 2px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px #fff;
}
.device-dot.show { display: inline-block; }

/* 刷新指示转圈 */
.spinner {
    animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.btn-outline-brand {
    border: 1px solid var(--brand-border);
    color: var(--brand-text);
    background: #fff;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s ease;
}
.btn-outline-brand:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ===== 页脚 ===== */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}

.site-footer .footer-brand .brand-mark { background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary)); }
.site-footer .brand-text { color: #fff; }

.footer-desc { color: rgba(255, 255, 255, .6); font-size: .95rem; }

.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .6); font-size: .95rem; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: rgba(255, 255, 255, .6); margin-bottom: .6rem; font-size: .95rem; }
.footer-contact i { color: var(--brand-primary-light); }

.footer-divider { border-color: rgba(255, 255, 255, .1); margin: 2rem 0 1rem; }
.footer-copy { color: rgba(255, 255, 255, .5); font-size: .85rem; }
.footer-beian { color: rgba(255, 255, 255, .5); font-size: .85rem; transition: color .2s; }
.footer-beian:hover { color: rgba(255, 255, 255, .85); }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7);
    margin-left: .5rem;
    transition: background .2s ease, color .2s ease;
}
.footer-social a:hover { background: var(--brand-primary); color: #fff; }

/* ===== 协议文档页 ===== */
.agreement-doc {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
}
.agreement-doc h1 { font-weight: 800; color: var(--brand-dark); font-size: 1.6rem; }
.agreement-doc h5 {
    color: var(--brand-primary-dark);
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}
.agreement-doc p { color: var(--brand-text); font-size: .95rem; margin-bottom: .75rem; }
.agreement-doc hr { border-color: var(--brand-border); opacity: 1; }

@media (max-width: 768px) {
    .agreement-doc { padding: 1.5rem 1.25rem; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1.05rem; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.7rem; }
    .stat-number { font-size: 2rem; }
}
