/* 全局样式 */
:root {
    --primary-color: #1E5128;
    --secondary-color: #4E9F3D;
    --accent-color: #D8E9A8;
    --text-color: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --bg-color: #FFFFFF;
    --light-bg: #F5F5F5;
    --dark-bg: #191A19;
    --border-color: #E0E0E0;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 渐变背景替代图片 */
.gradient-1 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-2 { background: linear-gradient(45deg, #4A90E2, #5C6BC0); }
.gradient-3 { background: linear-gradient(45deg, #D32F2F, #F44336); }
.gradient-4 { background: linear-gradient(45deg, #7B1FA2, #9C27B0); }
.gradient-5 { background: linear-gradient(45deg, #E53935, #F44336); }
.gradient-6 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-7 { background: linear-gradient(45deg, #00ACC1, #26C6DA); }
.gradient-8 { background: linear-gradient(45deg, #5D4037, #795548); }
.gradient-9 { background: linear-gradient(45deg, #3949AB, #5C6BC0); }
.gradient-10 { background: linear-gradient(45deg, #00897B, #26A69A); }
.gradient-11 { background: linear-gradient(45deg, #C2185B, #E91E63); }
.gradient-12 { background: linear-gradient(45deg, #6D4C41, #8D6E63); }
.gradient-13 { background: linear-gradient(45deg, #D32F2F, #F44336); }
.gradient-14 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-15 { background: linear-gradient(45deg, #D81B60, #EC407A); }
.gradient-16 { background: linear-gradient(45deg, #039BE5, #29B6F6); }
.gradient-17 { background: linear-gradient(45deg, #FFA000, #FFC107); }
.gradient-18 { background: linear-gradient(45deg, #7CB342, #9CCC65); }
.gradient-19 { background: linear-gradient(45deg, #D32F2F, #F44336); }
.gradient-20 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-21 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-22 { background: linear-gradient(45deg, #1E88E5, #42A5F5); }
.gradient-23 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-24 { background: linear-gradient(45deg, #00ACC1, #26C6DA); }
.gradient-25 { background: linear-gradient(45deg, #F4511E, #FF7043); }
.gradient-26 { background: linear-gradient(45deg, #1E5128, #4E9F3D); }
.gradient-27 { background: linear-gradient(45deg, #0097A7, #00BCD4); }

/* 头部导航 */
header {
    background-color: var(--dark-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* 横幅区域 */
.banner {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.2;
    border-radius: 0 0 0 50%;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--secondary-color);
}

/* 内容区块通用样式 */
section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.more {
    color: var(--primary-color);
    font-weight: 500;
}

.more:hover {
    color: var(--secondary-color);
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-img {
    height: 160px;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-info p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    gap: 10px;
}

.card-meta span {
    font-size: 12px;
    color: var(--lighter-text);
    background-color: var(--light-bg);
    padding: 3px 8px;
    border-radius: 4px;
}

/* 军事题材专区 */
.military-zone {
    background-color: rgba(30, 81, 40, 0.05);
    padding: 60px 0;
}

.military-zone .section-header h2 {
    color: var(--primary-color);
}

/* APP下载区域 */
.app-download {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 0;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.app-info p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.app-features {
    margin-bottom: 30px;
}

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.app-features li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.download-btns {
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.android {
    background-color: #4E9F3D;
    color: #fff;
}

.ios {
    background-color: #1E5128;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn .icon {
    margin-right: 8px;
}

.app-qrcode {
    text-align: center;
}

.qrcode-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 8px;
}

/* 新闻资讯 */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.news-img {
    width: 200px;
    min-width: 200px;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    gap: 15px;
}

.news-meta span {
    color: var(--lighter-text);
    font-size: 14px;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo h3 {
    font-size: 24px;
    margin: 10px 0;
}

.footer-logo p {
    color: #ccc;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #ccc;
    font-size: 14px;
}

.link-group ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .app-content {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .download-btns {
        flex-direction: column;
    }
}
