/* {模板路径}/static/css/style.css */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
}

ul, ol {
    list-style: none;
}

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

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

/* 渐变背景代替图片 */
.gradient-1 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-2 {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-3 {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-4 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-5 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-6 {
    background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-7 {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-8 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-9 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-10 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    height: 200px;
    border-radius: 8px;
}

.gradient-11 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 200px;
    width: 200px;
    border-radius: 8px;
    margin: 0 auto;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,86,179,0.8) 0%, rgba(0,119,182,0.6) 100%);
    opacity: 0.8;
    z-index: -1;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav a:hover {
    background-color: #f0f0f0;
}

/* 英雄区域样式 */
.hero-section {
    background-color: #0077b6;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-primary, .cta-secondary {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
}

.cta-primary {
    background-color: #fff;
    color: #0077b6;
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

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

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0077b6;
    margin: 15px auto 0;
}

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

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #0077b6;
    font-weight: 500;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* 文章列表样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
}

/* APP下载区域样式 */
.app-section {
    background-color: #f0f7ff;
}

.app-download {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: center;
}

.app-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.app-features {
    margin: 20px 0;
}

.app-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.app-features li:before {
    content: '✓';
    color: #0077b6;
    position: absolute;
    left: 0;
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.download-btn .icon {
    margin-right: 10px;
}

/* 关于我们区域样式 */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-text p {
    margin-bottom: 15px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #0077b6;
    margin-top: 10px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: #fff;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.footer-desc p {
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #ccc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-item {
        grid-template-columns: 1fr;
    }
    
    .app-download {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}
