/* 基础重置 */
:root {
    --primary-color: #ff9d00; /* 糖豆到家主题橙色 */
    --primary-dark: #e68d00;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #ffffff;
    --bg-gray: #fffcf8; /* 偏暖的浅灰色背景 */
    --bg-dark: #2d2a26; /* 偏暖的深色背景 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
}

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

/* 首屏区域 */
.hero {
    background: linear-gradient(135deg, #fffcf5 0%, #ffe8cc 100%); /* 温暖的橙黄色渐变 */
    padding: 100px 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

.download-area {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.qr-box {
    text-align: center;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-box:hover {
    transform: translateY(-5px);
}

.qr-box img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: cover;
}

.qr-box span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* 公司介绍 */
.company-intro {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.company-intro h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.company-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 核心功能 */
.features {
    padding: 100px 0;
    background-color: var(--bg-gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

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

.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* 界面展示 */
.screenshots {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.screenshot-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap; /* 强制不换行 */
    overflow-x: auto; /* 屏幕太小时允许滑动 */
    padding-bottom: 20px; /* 给滚动条留出空间 */
}

.screenshot-gallery img {
    width: 23%; /* 4个图片平分空间，稍微留出间隙 */
    min-width: 200px; /* 保证图片不会缩得太小 */
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    object-fit: cover;
}

.screenshot-gallery img:hover {
    transform: scale(1.05) translateY(-10px);
}

/* 隐私安全 - 已移除，保留底部样式 */

/* 技术支持 */
.support {
    padding: 100px 0;
    background-color: var(--bg-gray);
}

.support-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-start;
}

.support-info {
    flex: 1;
    max-width: 500px;
}

.support-info h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.support-info p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 40px;
    margin-right: 20px;
}

.contact-text span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-text strong {
    display: block;
    font-size: 28px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.contact-text small {
    color: #9ca3af;
}

.support-form {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.support-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 157, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 14px;
}

.error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.success-msg {
    background-color: #d1fae5;
    color: #047857;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

/* 底部 */
.footer {
    background-color: var(--bg-dark);
    color: #9ca3af;
    padding: 60px 0 20px;
}

.footer-info {
    text-align: center;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 24px;
    font-size: 14px;
}

.copyright a {
    margin: 0 10px;
}

.copyright a:hover {
    color: #ffffff;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* 文档页面样式 */
.document-page {
    padding: 60px 0 100px;
    background-color: var(--bg-gray);
    min-height: calc(100vh - 70px - 200px);
}

.document-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.document-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
}

.document-content h3 {
    font-size: 20px;
    margin: 30px 0 16px;
    color: var(--text-main);
}

.document-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.document-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--text-muted);
}

.document-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }
    
    .subtitle {
        margin: 0 auto 40px;
    }
    
    .download-area {
        justify-content: center;
    }
    
    .support-content {
        flex-direction: column;
    }
    
    .support-info, .support-form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* 移动端简化导航，可后续添加汉堡菜单 */
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .screenshot-gallery img {
        width: 100%;
        max-width: 320px;
    }
}