/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffa502;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #dfe6e9;
    --shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-hover: 0 8px 30px rgba(255, 107, 157, 0.25);
    --gradient-1: linear-gradient(135deg, #ff6b9d 0%, #ffa502 100%);
    --gradient-2: linear-gradient(135deg, #c44569 0%, #ff6b9d 100%);
    --gradient-3: linear-gradient(135deg, #ffa502 0%, #ff6b9d 100%);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    box-shadow: 0 2px 15px rgba(255, 107, 157, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    font-size: 26px;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 轮播背景 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.85) 0%, rgba(196, 69, 105, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

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

.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: white;
    background: var(--gradient-1);
    z-index: 1;
}

.card-badge.hot {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    animation: pulse 2s ease-in-out infinite;
}

.card-badge.new {
    background: linear-gradient(135deg, #5f27cd 0%, #341f97 100%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.card-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

/* 区块特定样式 */
.featured-section {
    background: linear-gradient(180deg, #fff 0%, #fff5f8 100%);
}

.guoman-section {
    background: linear-gradient(180deg, #fff5f8 0%, #fff 100%);
}

.riman-section {
    background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.hanman-section {
    background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

/* 文章资讯模块 */
.articles-section {
    background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 30px;
}

.article-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.article-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

/* APP下载模块 */
.app-section {
    background: var(--gradient-1);
    color: white;
    padding: 100px 0;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.app-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.app-features {
    list-style: none;
    margin-bottom: 40px;
}

.app-features li {
    font-size: 18px;
    margin-bottom: 15px;
    padding-left: 10px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: white;
    color: var(--text-color);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 40px;
}

.btn-text small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.btn-text strong {
    display: block;
    font-size: 18px;
    color: var(--text-color);
}

.app-qr {
    margin-top: 20px;
}

.qr-code {
    display: inline-block;
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa502 100%);
    border-radius: 10px;
    margin-bottom: 10px;
}

.qr-code p {
    color: var(--text-color);
    font-size: 14px;
    font-weight: bold;
}

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

.app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 排行榜模块 */
.ranking-section {
    background: linear-gradient(180deg, #f0f8ff 0%, #fff 100%);
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ranking-column {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.ranking-title {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

.rank-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    background: var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    flex-shrink: 0;
}

.rank-1 .rank-number {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: white;
    font-size: 20px;
}

.rank-2 .rank-number {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: white;
}

.rank-3 .rank-number {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: white;
}

.ranking-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.ranking-info p {
    font-size: 13px;
    color: var(--text-light);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    color: #b2bec3;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-1);
}

.footer-section p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b2bec3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

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

.footer-links h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.footer-links ul li a {
    color: #b2bec3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

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

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-info a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 10px;
}

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

.footer-disclaimer {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .ranking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .app-download-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .app-text h2 {
        font-size: 32px;
    }
}
