/* 全局样式 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #fff;
    --dark-bg: #f8f9fa;
    --border-color: #eaeaea;
    --card-shadow: 0 5px 15px 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(--bg-color);
}

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 60px 0;
}

/* 渐变背景替代图片 */
.gradient-1 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.gradient-2 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.gradient-3 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.gradient-4 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.gradient-5 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.gradient-6 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.gradient-7 { background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); }
.gradient-8 { background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%); }
.gradient-9 { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.gradient-10 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.gradient-11 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.gradient-12 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.gradient-13 { background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%); }
.gradient-14 { background: linear-gradient(135deg, #a3bded 0%, #6991c7 100%); }
.gradient-15 { background: linear-gradient(135deg, #96fbc4 0%, #f9f586 100%); }
.gradient-16 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.gradient-qr { 
    background: linear-gradient(135deg, #5f27cd 0%, #ff6b6b 100%);
    position: relative;
}
.gradient-qr:after {
    content: "扫描下载";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

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

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

/* 横幅区域 */
.banner {
    background-color: var(--dark-bg);
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(95, 39, 205, 0.1) 100%);
    z-index: -1;
}

.banner h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.search-box {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-box button {
    padding: 0 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

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

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

.card-img {
    height: 200px;
    width: 100%;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-info p {
    color: var(--light-text);
    margin-bottom: 10px;
}

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

/* 新闻区域 */
.news {
    background-color: var(--dark-bg);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.news-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* APP下载区域 */
.app-download {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(95, 39, 205, 0.1) 100%);
}

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

.download-info {
    flex: 1;
}

.features {
    margin: 25px 0;
}

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

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.icon-check:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
}

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

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

.btn-android {
    background-color: #3ddc84;
    color: white;
}

.btn-ios {
    background-color: #000;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-android, .icon-apple {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: white;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.icon-android {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6,9.48l1.84-3.18c0.16-0.31,0.04-0.69-0.26-0.85c-0.29-0.15-0.65-0.06-0.83,0.22l-1.88,3.24 c-2.86-1.21-6.08-1.21-8.94,0L5.65,5.67c-0.19-0.29-0.58-0.38-0.87-0.2C4.5,5.65,4.41,6.01,4.56,6.3L6.4,9.48 C3.3,11.25,1.28,14.44,1,18h22C22.72,14.44,20.7,11.25,17.6,9.48z M7,15.25c-0.69,0-1.25-0.56-1.25-1.25 c0-0.69,0.56-1.25,1.25-1.25S8.25,13.31,8.25,14C8.25,14.69,7.69,15.25,7,15.25z M17,15.25c-0.69,0-1.25-0.56-1.25-1.25 c0-0.69,0.56-1.25,1.25-1.25s1.25,0.56,1.25,1.25C18.25,14.69,17.69,15.25,17,15.25z'/%3E%3C/svg%3E");
}

.icon-apple {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E");
}

.qrcode {
    flex: 0 0 200px;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

/* 关于我们区域 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
}

/* 页脚区域 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-nav-col h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-nav-col ul li a {
    color: #aaa;
}

.footer-nav-col ul li a:hover {
    color: #fff;
}

.social-links li a {
    display: flex;
    align-items: center;
}

.social-links i {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    background-color: #aaa;
    display: inline-block;
    border-radius: 50%;
}

.friendly-links {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.friendly-links h4 {
    margin-bottom: 15px;
}

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

.friendly-links ul li a {
    color: #aaa;
}

.copyright {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .download-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

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