/* style.css – 完整版（含 Logo 居中展示） */
* { box-sizing: border-box; margin:0; padding:0; }

html, body { height:100%; }
body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:#f8f9fa;
    color:#212529;
    line-height:1.6;
    overflow-x: hidden;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-content { z-index: 2; max-width: 800px; padding: 2rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; animation: fadeInDown 1s ease-out; }
.hero p { font-size: 1.5rem; margin-bottom: 2rem; animation: fadeInUp 1s ease-out 0.5s; animation-fill-mode: backwards; }
.cta-button {
    background: #fff; color: #0d6efd; padding: 1rem 2rem; text-decoration: none;
    border-radius: 50px; font-weight: bold; transition: transform 0.3s, box-shadow 0.3s;
}
.cta-button:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

/* ---------- Language Switch ---------- */
.language-switch {
    position: absolute; top: 1rem; right: 1rem; display: flex; gap: 0.5rem; z-index: 5;
}
.language-switch button {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff;
    padding: 0.4rem 0.8rem; font-size: 0.9rem; border-radius: 2rem; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 0.3rem; backdrop-filter: blur(4px);
}
.language-switch button i { font-size: 1rem; }
.language-switch button:hover { background: #fff; color: #0d6efd; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.language-switch button.active { background: #fff; color: #0d6efd; font-weight: 600; box-shadow: 0 0 0 2px rgba(13,110,253,0.4); }

/* ---------- Navigation ---------- */
nav { background:#212529; padding:0.6rem 0; position: sticky; top: 0; z-index: 10; }
nav ul { list-style:none; display:flex; justify-content:center; flex-wrap:wrap; }
nav ul li { margin:0 1rem; }
nav ul li a { color:#fff; text-decoration:none; font-weight:500; padding:0.5rem 1rem; transition:background 0.3s; }
nav ul li a:hover { background:#495057; border-radius: 5px; }

/* ---------- Main Sections ---------- */
.section { padding: 4rem 2rem; text-align: center; opacity: 0; transform: translateY(50px); transition: opacity 1s, transform 1s; }
.section.visible { opacity: 1; transform: translateY(0); }
.section h2 { font-size: 2.5rem; margin-bottom: 2rem; color: #0d6efd; }

/* ---------- Raqcoin Logo 居中展示 ---------- */
.logo-container {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
}
.raqcoin-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    background: #fff;
    padding: 15px;
}
.raqcoin-logo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

/* ---------- Features Grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.icon { font-size: 3rem; color: #0d6efd; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* ---------- 信息区：主卡 + 侧边栏 ---------- */
.info-section { background: #f1f3f5; padding: 5rem 2rem; }
.info-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}
.main-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.main-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.main-card:hover { transform: translateY(-8px); }
.card-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.card-header i { font-size: 2rem; }
.card-header h3 { margin: 0; font-size: 1.5rem; }
.card-body {
    padding: 1.8rem;
    display: grid;
    gap: 1rem;
    font-size: 1rem;
}
.card-body p { margin: 0; display: flex; justify-content: space-between; }
.card-body strong { color: #0d6efd; min-width: 100px; }

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}
.sidebar-card i { font-size: 1.8rem; margin-bottom: 0.8rem; color: #0d6efd; }
.sidebar-card h4 { margin: 0 0 0.8rem; font-size: 1.2rem; color: #212529; }
.sidebar-card p { margin: 0; font-size: 0.95rem; color: #555; }
.sidebar-card.warning i { color: #e74c3c; }

/* ---------- Image Container ---------- */
.image-container { position: relative; display: inline-block; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.zoom-effect { transition: transform 0.5s ease; }
.image-container:hover .zoom-effect { transform: scale(1.1); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; }
.image-container:hover .overlay { opacity: 1; }

/* ---------- Footer ---------- */
footer { background:#212529; color:#adb5bd; text-align:center; padding:1.5rem; font-size:1rem; }

/* ---------- Animations ---------- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .info-container { grid-template-columns: 1fr; }
    .sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
    .hero { height: 50vh; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.2rem; }
    .language-switch { position: static; justify-content: center; margin: 1rem auto 0; padding: 0 1rem; }
    .sidebar { grid-template-columns: 1fr; }
    .raqcoin-logo { width: 140px; height: 140px; }
    nav ul { flex-direction: column; }
}
/* ===== quantum-basics.html 专属样式 ===== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.intro-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.intro-visual img {
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    max-width: 100%;
    height: auto;
}

.timeline-status {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 2rem auto;
}
.status-item {
    background: #fff;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    min-width: 220px;
    transition: transform 0.3s;
}
.status-item:hover { transform: translateY(-8px); }
.status-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}
.status-item h4 {
    margin: 0 0 0.8rem;
    color: #0d6efd;
    font-size: 1.2rem;
}

/* 导航当前页高亮 */
nav ul li a.active {
    background: #0d6efd;
    color: #fff;
    border-radius: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr; }
    .intro-visual { order: -1; text-align: center; }
    .intro-visual img { max-width: 80%; }
}
/* ===== quantum-basics.html 极简文字版样式 ===== */
.simple-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #212529;
}

.simple-article section {
    margin-bottom: 3rem;
}

.simple-article h2 {
    font-size: 1.8rem;
    color: #0d6efd;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.simple-article p,
.simple-article li {
    margin-bottom: 1rem;
}

.simple-list {
    padding-left: 1.5rem;
    list-style: disc;
}

.simple-list li {
    margin-bottom: 0.8rem;
}

.algo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.algo-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0d6efd;
}

.algo-item h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: #212529;
}

.algo-item p {
    margin: 0.6rem 0;
    font-size: 1rem;
}

.algo-item strong {
    color: #0d6efd;
}

/* 响应式 */
@media (max-width: 768px) {
    .algo-grid {
        grid-template-columns: 1fr;
    }
    .simple-article {
        padding: 2rem 1rem;
        font-size: 1rem;
    }
    .simple-article h2 {
        font-size: 1.6rem;
    }
}

/* 导航高亮 */
nav ul li a.active {
    background: #0d6efd;
    color: #fff;
    border-radius: 5px;
}

/* ===== pqc-details.html 专属样式 ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    text-align: left;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* 响应式 */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.9rem;
    }
    .comparison-table th, .comparison-table td {
        padding: 0.8rem;
    }
}
/* ===== raqcoin-implementation.html 专属样式 ===== */
.code-block {
    background: #f8f9fa;
    border-left: 5px solid #0d6efd;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.95rem;
    color: #212529;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-block code {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .code-block {
        padding: 1rem;
        font-size: 0.9rem;
    }
}
/* ===== resources-community.html 专属样式 ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

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

.resource-icon {
    width: 70px; height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}

.resource-card h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: #212529;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.resource-link:hover {
    text-decoration: underline;
}

.resource-link.disabled {
    color: #6c757d;
    pointer-events: none;
}

.wallet-demo {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.wallet-info {
    font-size: 1rem;
}

.address-code {
    background: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.95rem;
    display: inline-block;
    margin: 0.5rem 0;
    word-break: break-all;
}

.wallet-qr {
    text-align: center;
}

.qr-image {
    width: 180px;
    height: 180px;
    border: 8px solid #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.steps {
    max-width: 800px;
    margin: 2rem auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.step-number {
    width: 40px; height: 40px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
    .wallet-demo {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .wallet-qr {
        order: -1;
    }
    .qr-image {
        width: 160px;
        height: 160px;
    }
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-number {
        margin-bottom: 1rem;
    }
}
/* ===== raqcoin-implementation.html - 研究报告下载卡片 ===== */
.report-download {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px dashed #dee2e6;
    text-align: center;
}

.report-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.report-icon {
    font-size: 3.5rem;
    color: #dc3545;
}

.report-info {
    text-align: left;
    flex: 1;
    min-width: 280px;
}

.report-info h3 {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
    color: #212529;
}

.report-info p {
    margin: 0 0 1.2rem;
    color: #495057;
    font-size: 0.95rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc3545;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover