/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-icon {
    height: 3.5rem;
    width: auto;
    min-width: 3.5rem;
    max-width: 200px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-subtitle:empty {
    display: none;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #0f172a;
    border-radius: 0 0 15px 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.app-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 功能特性 */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-image-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background: white;
}

.download-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.download-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.download-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-card.disabled .download-btn {
    pointer-events: none;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.platform-icon svg {
    width: 4rem;
    height: 4rem;
    display: block;
    margin: 0 auto;
}

.platform-svg-icon {
    width: 4rem;
    height: 4rem;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Android图标 - 使用Android官方绿色 #3DDC84 */
.platform-icon-android {
    filter: brightness(0) saturate(100%) invert(67%) sepia(93%) saturate(1352%) hue-rotate(95deg) brightness(101%) contrast(101%);
}

/* iOS图标 - 使用深灰色，更符合iOS风格 */
.platform-icon-ios {
    filter: brightness(0) saturate(100%) invert(20%);
}

.platform-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    width: 100%;
    justify-content: center;
}

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

/* 联系区域 */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    min-width: 250px;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-svg-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
}

/* 邮箱图标 - 使用蓝色 */
.contact-icon-mail {
    filter: brightness(0) saturate(100%) invert(40%) sepia(100%) saturate(2000%) hue-rotate(200deg) brightness(0.9) contrast(1.2);
}

/* 支持图标 - 使用深灰色 */
.contact-icon-support {
    filter: brightness(0) saturate(100%) invert(30%);
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-value {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-contact {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 2.5rem;
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.95rem;
}

.footer-contact-icon {
    width: 1.2rem;
    height: 1.2rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-contact-label {
    opacity: 0.9;
}

.footer-contact-email {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.footer-contact-email:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.footer-copyright a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-copyright a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 公安联网备案 */
.footer-police {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #6ca0ff; /* 接近官方示例的蓝色 */
}

.police-beian-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    object-fit: contain;
}

.footer-police a {
    color: inherit; /* 链接颜色与文字一致，不再是默认链接色 */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-police a:hover {
    opacity: 1;
    text-decoration: none;
}

/* 隐私政策、权限声明（与京公网安备同风格：浅蓝、无下划线） */
.footer-legal-links {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
    color: #6ca0ff;
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-legal-sep {
    margin: 0 0.35em;
    opacity: 0.8;
}

/* 文档页页脚「隐私政策|权限声明」与首页同风格 */
.footer-links-doc {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #6ca0ff;
}

.footer-links-doc a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links-doc a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-links-doc span {
    margin: 0 0.35em;
    opacity: 0.8;
}

/* ========== 文档页布局与样式（隐私政策、权限声明） ========== */
.doc-page {
    padding: 100px 0 3rem;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.doc-page .container {
    max-width: 820px;
}

.doc-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.doc-content {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem 2.5rem;
    margin-top: 1rem;
}

.doc-intro {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.doc-section {
    margin-bottom: 2rem;
}

.doc-section:last-of-type {
    margin-bottom: 0;
}

.doc-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
}

.doc-section h2:first-child {
    margin-top: 0;
}

.doc-section p,
.doc-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.doc-section ol,
.doc-section ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-section strong {
    color: var(--text-primary);
}

/* 文档页表格 */
.doc-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.doc-table th,
.doc-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.doc-table th {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

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

.doc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.doc-badge-required {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.doc-badge-optional {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

/* 权限声明：每项包含 用途 + 使用场景 */
.doc-permission-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.doc-permission-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-permission-item:last-child {
    margin-bottom: 0;
}

.doc-permission-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.doc-permission-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.doc-permission-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.doc-permission-required {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.doc-permission-optional {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.doc-permission-pending {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
}

.doc-permission-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--border-color);
}

.doc-permission-row {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.35rem;
}

.doc-permission-row strong {
    color: var(--text-primary);
    min-width: 4.5em;
    display: inline-block;
}

.doc-update {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

    .doc-table th,
    .doc-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .doc-permission-item {
        padding: 1rem 1.25rem;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .brand-icon {
        height: 2.5rem;
        max-width: 150px;
    }

    .feature-image-wrapper {
        height: 180px;
    }

    .footer-contact-line {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-contact-icon {
        width: 1rem;
        height: 1rem;
    }

    .footer-info {
        font-size: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .footer-icp {
        font-size: 0.8rem;
    }

    .footer-police {
        font-size: 0.85rem;
    }

    .police-beian-icon {
        width: 1em;
        height: 1em;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .brand-icon {
        height: 2rem;
        max-width: 120px;
    }

    .feature-image-wrapper {
        height: 150px;
    }
}
