/* ====== 基础样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== 通用图片样式 ====== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====== 导航栏 ====== */
.navbar {
    background-color: #1a237e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-icon {
    vertical-align: middle;
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ====== 按钮样式 ====== */
.btn-primary {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    display: inline-block;
    background-color: #757575;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #616161;
}

/* ====== 首页英雄区域 ====== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 3rem 0;
    gap: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: 2rem 0;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

.image-caption {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
    font-style: italic;
}

/* ====== 章节标题 ====== */
.section-title {
    text-align: center;
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* ====== 特性网格 ====== */
.features {
    margin: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.feature-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ====== 热门钱包展示 ====== */
.popular-wallets {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 10px;
}

.wallets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wallet-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wallet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wallet-logo {
    position: relative;
    margin-bottom: 1.5rem;
}

.wallet-logo img {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 15px;
    object-fit: contain;
}

.wallet-badge {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.wallet-description {
    color: #666;
    margin: 1rem 0;
    min-height: 60px;
    line-height: 1.6;
}

.wallet-rating {
    margin: 1rem 0;
}

.stars {
    color: #FFC107;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-score {
    margin-left: 10px;
    font-weight: bold;
    color: #333;
}

.wallet-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.wallet-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.wallet-btn.primary {
    background-color: #2196F3;
    color: white;
}

.wallet-btn.primary:hover {
    background-color: #1976D2;
}

.wallet-btn.secondary {
    background-color: transparent;
    color: #2196F3;
    border: 1px solid #2196F3;
}

.wallet-btn.secondary:hover {
    background-color: #2196F3;
    color: white;
}

/* ====== 文章网格 ====== */
.latest-articles {
    margin: 3rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF5722;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-content {
    padding: 1.5rem;
}

.article-card h3 {
    margin-bottom: 1rem;
}

.article-card h3 a {
    color: #1a237e;
    text-decoration: none;
    font-size: 1.3rem;
}

.article-card h3 a:hover {
    text-decoration: underline;
}

.article-excerpt {
    color: #666;
    margin: 1rem 0;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.read-more {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* ====== 钱包类型介绍 ====== */
.wallet-types {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 10px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.type-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.type-icon {
    margin-bottom: 1.5rem;
}

.type-icon img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.type-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.type-card ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.type-card li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.5;
}

.type-link {
    display: inline-block;
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.type-link:hover {
    text-decoration: underline;
}

/* ====== 安全提示 ====== */
.safety-tips {
    margin: 2rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tip-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

.tip-card.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.tip-card.important {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tip-card.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.tip-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-card p {
    line-height: 1.6;
}

/* ====== 底部CTA ====== */
.bottom-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-content {
    flex: 1;
    min-width: 300px;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.cta-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    max-width: 100%;
    height: auto;
}

/* ====== 页脚 ====== */
footer {
    background-color: #1a237e;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 10px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
}

.footer-logo span {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    width: 40px;
    height: 40px;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.social-links img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.warning {
    color: #ff9800;
    font-weight: bold;
    margin-top: 1rem;
}

.baidu-info {
    color: #4CAF50 !important;
    font-weight: bold;
}

/* ====== 文章页面特定样式 ====== */
.article-content {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.article-body h2, .article-body h3 {
    color: #1a237e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

.comparison-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.external-resources, .conclusion, .related-links {
    background-color: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #2196F3;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ====== 推荐页面特定样式 ====== */
.page-header {
    text-align: center;
    margin: 2rem 0;
}

.page-subtitle {
    color: #666;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.warning-banner {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.recommendation-category {
    margin-bottom: 3rem;
}

.recommendation-category h2 {
    color: #1a237e;
    border-bottom: 2px solid #1a237e;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.recommendation-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommendation-item h3 {
    margin-bottom: 0.5rem;
}

.recommendation-item h3 a {
    color: #1a237e;
    text-decoration: none;
    font-size: 1.3rem;
}

.recommendation-item h3 a:hover {
    text-decoration: underline;
}

.wallet-description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.download-btn, .store-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
}

.download-btn:hover {
    background-color: #45a049;
}

.store-btn {
    background-color: #2196F3;
    color: white;
}

.store-btn:hover {
    background-color: #1976D2;
}

.support-text {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* ====== 关于页面特定样式 ====== */
.about-content {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: #1a237e;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.principle h3 {
    color: #2196F3;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.disclaimer-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.contact-info {
    background-color: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ====== 免责声明页面特定样式 ====== */
.disclaimer-content {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.disclaimer-content h1 {
    color: #1a237e;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.disclaimer-content .page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.disclaimer-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.disclaimer-section:last-child {
    border-bottom: none;
}

.disclaimer-section h2 {
    color: #1a237e;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid #1a237e;
}

.disclaimer-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

.disclaimer-section ul, .disclaimer-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.disclaimer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 5px solid #ff9800;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.warning-box p {
    color: #856404;
}

.warning-box strong {
    color: #856404;
}

.acceptance-box {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-left: 5px solid #4CAF50;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.acceptance-box p {
    color: #2e7d32;
}

.acceptance-box strong {
    color: #1b5e20;
}

.disclaimer-contact {
    background-color: #f0f7ff;
    border: 1px solid #bbdefb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.disclaimer-contact h3 {
    color: #2196F3;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.navigation-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.navigation-links a {
    min-width: 150px;
    text-align: center;
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a237e;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .wallets-grid, .types-grid, .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-links {
        flex-direction: column;
    }
    
    .wallet-btn {
        width: 100%;
        text-align: center;
    }
    
    .bottom-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .article-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .article-navigation a {
        width: 100%;
        text-align: center;
    }
    
    .navigation-links {
        flex-direction: column;
        align-items: center;
    }
    
    .navigation-links a {
        width: 100%;
        max-width: 300px;
    }
}