:root {
    --primary: #4A7C59;
    --primary-dark: #3A6548;
    --primary-light: #E8F5E9;
    --accent: #F2A65A;
    --text: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #FFFFFF;
    --bg-soft: #F9FAFB;
    --bg-warm: #FDFBF7;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1160px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: inline-block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    vertical-align: middle;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-icon {
    font-size: 1.1em;
}

/* Hero */
.hero {
    padding: calc(var(--header-height) + 80px) 0 100px;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

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

.hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 8px;
}

.hero-slogan {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 540px;
    background: var(--text);
    border-radius: 40px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #111827;
    border-radius: 10px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-soft);
    border-radius: 30px;
    padding: 48px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.screen-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-icon {
    font-size: 28px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.card-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
}

.features {
    padding: 90px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Highlights */
.highlights {
    padding: 90px 0;
    background: var(--bg-soft);
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.highlight-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    min-width: 56px;
    text-shadow: 0 0 0 var(--primary);
    -webkit-text-stroke: 1px var(--primary);
    color: transparent;
}

.highlight-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.highlight-body p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Download */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.download-inner {
    max-width: 640px;
}

.download h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 8px;
}

.download-note {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 28px;
}

.download .btn-primary {
    background: #fff;
    color: var(--primary);
    margin-bottom: 16px;
}

.download .btn-primary:hover {
    background: var(--primary-light);
}

.download-tip {
    font-size: 13px;
    opacity: 0.7;
}

.download-tip a {
    color: #fff;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #111827;
    color: #E5E7EB;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .brand-logo {
    width: 44px;
    height: 44px;
}

.footer-brand strong {
    font-size: 18px;
    margin-top: 4px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-nav h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #9CA3AF;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.beian {
    font-size: 13px;
    color: #6B7280;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.beian a {
    color: #9CA3AF;
}

.beian a:hover {
    color: #fff;
}

.beian-divider {
    color: #4B5563;
}

.gongan-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #C81D25;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* Page layout */
.page-header {
    padding: calc(var(--header-height) + 60px) 0 50px;
    background: var(--bg-soft);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.page-content {
    padding: 60px 0 100px;
}

.content-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 14px;
    color: var(--text);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 10px;
}

.content-card p,
.content-card li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-card ul,
.content-card ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-card li {
    margin-bottom: 8px;
}

.content-card strong {
    color: var(--text);
}

.content-card a {
    color: var(--primary);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.info-table th,
.info-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    width: 140px;
    color: var(--text);
    font-weight: 600;
    background: var(--bg-soft);
}

.info-table td {
    color: var(--text-secondary);
}

/* Contact */
.contact-list {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
}

.contact-icon {
    font-size: 24px;
}

.contact-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 0;
        display: none;
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 14px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-slogan {
        font-size: 22px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 460px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .beian {
        flex-direction: column;
        gap: 8px;
    }

    .beian-divider {
        display: none;
    }

    .content-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 44px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
    }
}

/* App 内嵌模式：仅展示协议正文，隐藏站点头部/底部/导航 */
body.embed-mode {
    padding-top: 0;
    background-color: transparent;
}


body.embed-mode .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 0px;
}

body.embed-mode .site-header,
body.embed-mode .site-footer {
    display: none;
}

body.embed-mode .page-header {
    padding: 16px 0 8px;
    background: transparent;
    text-align: left;
}

body.embed-mode .page-header h1 {
    display: none;
}

body.embed-mode .page-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

body.embed-mode .page-content {
    padding: 0 0 0px;
}

body.embed-mode .content-card {
    max-width: 680px;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

body.embed-mode .content-card h2 {
    font-size: 17px;
    margin: 0px 0 0px;
}

body.embed-mode .content-card p,
body.embed-mode .content-card li {
    color: #333;
}

body.embed-mode .embed-link-text {
    color: #333;
}
