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

/* CSS变量 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #faf5ee;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --container-max-width: 1200px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family), serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* 响应式容器 */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 顶部导航 */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 2.5rem;
    height: 2.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* Hero区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg,
    rgba(232, 201, 130, 0.9) 0%,
    rgba(94, 214, 168, 0.9) 50%,
    rgba(151, 130, 227, 0.9) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-title-box {
    display: flex;
    gap: 30px;
    align-items: baseline;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-title2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #f1f1f1;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

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

.hero-phone {
    max-width: 120%;
    height: auto;
    max-height: 1200px;
}

/* 横屏Hero布局 */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .hero-text {
        flex: 1 1 50%;
    }

    .hero-image {
        flex: 0 0 480px;
        display: flex;
        justify-content: center;
    }
}

/* 竖屏Hero布局 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-image {
        display: none;
    }
}


/* 节标题 */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* 功能特性 */
.features {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
}

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

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

/* 应用截图 */
.screenshots {
    padding: 100px 0;
    background: #f8f9fa;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.screenshot-img:hover {
    transform: scale(1.05);
}

.screenshot-caption {
    margin-top: 15px;
    color: #666;
    font-weight: 500;
}


/* 下载区域 */
.download {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.download-content {
    text-align: center;
}

.download-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.download-btn:not(.disabled):hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

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

.download-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.download-text {
    text-align: left;
    flex: 1;
}

.download-platform {
    font-weight: 600;
    font-size: 1.125rem;
}

.download-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.android-btn:not(.disabled) {
    border-color: #34d399;
}

.android-btn:not(.disabled):hover {
    background-color: #34d399;
    color: white;
}

/* 桌面端下载按钮 */
@media (min-width: 768px) {
    .download-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 2rem;
    height: 2rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-description {
    color: var(--text-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
    padding: 0 0.2em;
}

.footer-bottom a:hover {
    color: white;
}

/*备案信息*/
.filing {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 15px;
}

.filing a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.public-security-filing-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 480px) {
    .filing {
        flex-direction: column;
        gap: 8px;
    }
}




/*联系我们*/
.contact {
    color: var(--text-light);
    transition: color 0.2s ease;
}


/* 桌面端页脚 */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-title2 {
        font-size: 1.8rem;
    }

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

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

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

    .btn {
        width: 100%;
        max-width: 200px;
    }
}