/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 夜间模式变量 */
body.dark-mode {
    --primary-color: #4da6ff;
    --secondary-color: #3385ff;
    --accent-color: #ff6666;
    --text-color: #e6e6e6;
    --light-text: #b3b3b3;
    --background-color: #1a1a1a;
    --light-bg: #2d2d2d;
    --border-color: #333333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-download:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s;
}

body.dark-mode .header {
    background-color: rgba(26, 26, 26, 0.95);
}

/* 夜间模式切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: background-color 0.3s;
}

.theme-toggle i {
    font-size: 24px;
}

body.dark-mode .theme-toggle {
    background-color: var(--secondary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .header .container {
        justify-content: center;
    }
    #siteTitle {
        text-align: center;
        font-size: 90% !important;
    }
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .container {
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.admin-link {
    background-color: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 英雄区域样式 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    margin-top: 70px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* 响应式标题样式 */
@media (max-width: 768px) {
    .hero h1, #heroTitle {
        font-size: calc(48px * 0.7); /* 缩小30% */
        text-align: center;
        width: 100%;
    }
    .hero-content {
        text-align: center;
    }
}

.hero p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

#heroImage {
    width: 93.75%;
    margin: 0 auto;
}

/* 特性区域样式 */
.features {
    padding: 100px 0;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-text);
}

/* 用户评价样式已移除 */


.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--light-text);
}

.testimonial-author {
    font-weight: bold;
}

/* 下载区域样式 */
.download {
    padding: 100px 0;
    text-align: center;
}

.download .container {
    flex-direction: column;
    justify-content: center;
}

.download h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.download-button-container {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .download-button-container {
        justify-content: center;
    }
}

.download p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 40px;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
    transition: background-color 0.3s;
}

body.dark-mode .footer {
    background-color: #1a2530;
}

body.dark-mode .footer-links a {
    color: #99a3ad;
}

body.dark-mode .footer-links a:hover {
    color: white;
}

body.dark-mode .copyright {
    color: #99a3ad;
}

/* 英雄区域夜间模式 */
body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* 特性卡片夜间模式 */
body.dark-mode .feature-card {
    background-color: #2d2d2d;
}

body.dark-mode div.feature-card:nth-child(4n+1),
body.dark-mode div.feature-card:nth-child(4n+4) {
    background-color: #1f3a4d;
}

body.dark-mode div.feature-card:nth-child(4n+2),
body.dark-mode div.feature-card:nth-child(4n+3) {
    background-color: #4d1f3a;
}

/* 用户评价夜间模式已移除 */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 28px;
}

.footer-links a {
    margin-left: 20px;
    color: #bdc3c7;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
    margin-top: 20px;
}

/* 响应式备案号样式 */
@media (max-width: 768px) {
    .copyright {
        white-space: pre-line;
    }
    .copyright a {
        display: block;
        margin: 5px 0;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

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

@media (max-width: 768px) {
    .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    padding: 20px 0;
}

.nav.active {
    display: block;
}

.nav ul {
    flex-direction: column;
    align-items: center;
}

.nav li {
    margin: 10px 0;
}

    .hero h1 {
        font-size: 36px;
    }

    .footer-content {
        flex-direction: column;
        text-align: left;
    }

    .footer-links {
        margin-top: 20px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

/* 管理后台样式 */
.admin-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.admin-header {
    margin-bottom: 40px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.feature-item, .testimonial-item {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.add-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 30px;
}

.save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 40px;
}

div.feature-card:nth-child(4n+1),
div.feature-card:nth-child(4n+4) {
    background-color: #f0f9ff;
}

div.feature-card:nth-child(4n+2),
div.feature-card:nth-child(4n+3) {
    background-color: #fff0f6;
}

.desktop-only {
    display: none !important;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .desktop-only {
        display: block !important;
    }
}