/* Token钱包APP - 完整主样式文件 */

/* ===== 基础重置和变量定义 ===== */
:root {
    --primary-color: #3a86ff;
    --primary-dark: #2667cc;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 通用组件样式 ===== */

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* 头部导航 */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* 页脚 */
.main-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-logo p {
    color: #999;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #999;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ===== 首页样式 ===== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.app-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 特性区域 */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 下载引导区域 */
.download-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-content > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.qr-code {
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 15px;
}

.qr-code img {
    width: 150px;
    height: 150px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-appstore,
.btn-googleplay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    min-width: 220px;
}

.btn-appstore:hover,
.btn-googleplay:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-download-apk {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.btn-download-apk:hover {
    background: white;
    color: var(--primary-color);
}

.download-stats {
    margin-top: 40px;
    font-size: 1.1rem;
}

/* ===== 下载页面样式 ===== */
.download-page {
    padding: 80px 0;
    background: var(--bg-white);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.download-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.platform-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.platform-icon svg {
    fill: white;
    width: 40px;
    height: 40px;
}

.platform-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.platform-card .btn {
    margin-bottom: 25px;
    width: 100%;
    max-width: 200px;
}

.qr-code-small {
    margin-top: 20px;
}

.qr-code-small img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
}

.qr-code-small p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

.installation-guide {
    background: var(--bg-light);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.installation-guide h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 去中心化页面样式 ===== */
.decentralized-page {
    padding: 40px 0 80px;
    background: var(--bg-white);
}

.decentralized-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    border-radius: var(--radius-lg);
    margin-bottom: 80px;
}

.decentralized-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.decentralized-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 50px;
}

.decentralized-features {
    padding: 80px 0;
}

.decentralized-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.dapp-integration {
    padding: 80px 0;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.dapp-integration h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
}

.dapp-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.security-section {
    padding: 80px 0;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
}

/* ===== 新闻中心页面样式 ===== */
.news-page {
    padding: 40px 0 80px;
    background: var(--bg-white);
}

.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
}

.news-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.news-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.news-section {
    padding: 80px 0;
}

.announcement-list {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.industry-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    margin-top: 80px;
}

/* ===== 关于我们页面样式 ===== */
.about-page {
    padding: 40px 0 80px;
    background: var(--bg-white);
}

.about-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
    border-radius: var(--radius-lg);
    margin-bottom: 80px;
}

.mission-section {
    padding: 80px 0;
}

.values-section {
    padding: 80px 0;
}

.team-section {
    padding: 80px 0;
}

.milestones-section {
    padding: 80px 0;
}

.contact-section {
    padding: 80px 0;
}

/* ===== 响应式基础（避免覆盖） ===== */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .download-options {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .app-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-platforms {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .news-grid,
    .industry-articles {
        grid-template-columns: 1fr;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .mission-stats {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .download-buttons {
        width: 100%;
    }
    
    .btn-appstore,
    .btn-googleplay {
        width: 100%;
    }
}

/* ===== 辅助类 ===== */
.bg-light {
    background: var(--bg-light) !important;
}

.text-center {
    text-align: center;
}

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }

/* ===== 确保链接样式 ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== 确保图片响应式 ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== 确保表单元素样式 ===== */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== 确保列表样式 ===== */
ul, ol {
    padding-left: 20px;
}

/* 新闻列表页面样式 */
.news-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news-item h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-date:before {
    content: "📅";
    font-size: 0.9rem;
}

.news-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(0, 122, 255, 0.1);
    transition: all 0.3s ease;
}

.read-more:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: translateX(4px);
}

/* 分隔线样式 */
hr {
    margin: 30px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        padding: 15px;
    }
    
    .news-item {
        padding: 18px;
    }
    
    .news-item h2 {
        font-size: 1.3rem;
    }
}

/* 关于我们页面样式 */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #007AFF;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #007AFF;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #f0f7ff;
    transform: translateY(-4px);
}

.feature-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-container {
        padding: 20px 15px;
    }
    
    .about-header h1 {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}