/* === Dism++ 教程攻略站 - Base Styles === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.7;
}

a { text-decoration: none; color: #1e6fd4; }
a:hover { color: #1558a8; }

/* ===== Header ===== */
.header {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 36px; }
.logo-area span { font-size: 22px; font-weight: 700; color: #1e6fd4; }
.nav a {
    margin-left: 28px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: color .2s;
}
.nav a:hover, .nav a.active { color: #1e6fd4; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #1a56db 0%, #1e88e5 40%, #26c6da 100%);
    color: #fff;
    padding: 70px 20px 60px;
    text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.hero .subtitle { font-size: 20px; opacity: .9; margin-bottom: 8px; }
.hero .desc { font-size: 15px; opacity: .75; margin-bottom: 30px; }
.hero .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all .2s;
    cursor: pointer;
}
.btn-primary { background: #fff; color: #1e6fd4; }
.btn-primary:hover { background: #e8f0fe; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ===== Section ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.section-subtitle {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 36px;
}

/* ===== Feature Cards ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.feature-card .icon {
    width: 50px; height: 50px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: #222; }
.feature-card p { font-size: 13px; color: #777; line-height: 1.7; }

.icon-blue { background: #1e6fd4; }
.icon-green { background: #27ae60; }
.icon-purple { background: #8e44ad; }
.icon-orange { background: #e67e22; }
.icon-red { background: #e74c3c; }
.icon-teal { background: #1abc9c; }

/* ===== Highlight Points ===== */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.highlight-item {
    background: #fff;
    border-left: 3px solid #1e6fd4;
    padding: 14px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #555;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.highlight-item strong { color: #1e6fd4; }

/* ===== Tutorial Step Indicators ===== */
.step-list {
    max-width: 800px;
    margin: 0 auto;
}
.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.step-num {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #1e6fd4;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.step-body {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.step-body h4 { font-size: 16px; color: #222; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: #666; line-height: 1.8; }
.step-body .step-img {
    margin-top: 12px;
    border-radius: 6px;
    background: #f0f4f8;
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
    border: 1px dashed #ccc;
}

/* ===== Competitor Comparison Table ===== */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-top: 20px;
}
.cmp-table thead th {
    background: #1e6fd4;
    color: #fff;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}
.cmp-table thead th:first-child { text-align: left; padding-left: 20px; }
.cmp-table tbody td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 13px;
}
.cmp-table tbody td:first-child { text-align: left; padding-left: 20px; color: #333; font-weight: 500; }
.cmp-table .good { color: #27ae60; font-weight: 700; }
.cmp-table .bad { color: #e74c3c; }
.cmp-table .warn { color: #e67e22; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr.highlight-row { background: #e8f4fd; }
.cmp-table tbody tr.highlight-row td:first-child { color: #1e6fd4; font-weight: 700; }

/* ===== Note / Warning Boxes ===== */
.note-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.8;
}
.note-box.warning {
    background: #fef9f3;
    border-left: 4px solid #e67e22;
    color: #856404;
}
.note-box.danger {
    background: #fdf0f0;
    border-left: 4px solid #e74c3c;
    color: #721c24;
}
.note-box.info {
    background: #e8f4fd;
    border-left: 4px solid #1e6fd4;
    color: #1a5eb5;
}
.note-box.tip {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    color: #1e7e34;
}
.note-box strong { display: block; margin-bottom: 4px; font-size: 15px; }

/* ===== CMD / Code Block ===== */
.cmd-block {
    background: #1e1e1e;
    color: #4ec9b0;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 15px;
    margin: 16px 0;
    overflow-x: auto;
}
.cmd-block .prompt { color: #dcdcaa; }
.cmd-block .cmd { color: #4ec9b0; }
.cmd-block .comment { color: #6a9955; }

/* ===== Download Styles ===== */
.dl-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dl-card h3 { font-size: 18px; color: #222; margin-bottom: 6px; }
.dl-card .ver { font-size: 12px; color: #999; margin-bottom: 10px; }
.dl-card .info { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.7; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn-dl {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background .2s, color .2s;
}
.btn-baidu { background: #2468e0; color: #fff; }
.btn-baidu:hover { background: #1a54c0; color: #fff; }
.btn-quark { background: #00b578; color: #fff; }
.btn-quark:hover { background: #009a65; color: #fff; }
.extract-code {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    margin-left: 4px;
    background: #fdeaea;
    padding: 2px 8px;
    border-radius: 3px;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 30px;
    max-width: 640px;
    width: 92%;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 20px; }
.modal-body { display: flex; gap: 28px; align-items: flex-start; }
.modal-qr-col {
    text-align: center;
    flex-shrink: 0;
    width: 170px;
}
.qr-breathe {
    display: inline-block;
    animation: breathe-scale 2s ease-in-out infinite;
}
@keyframes breathe-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.modal-qr-col img {
    width: 160px; height: 160px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: block;
}
.modal-qr-col .qr-tip {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    word-break: break-all;
}
.modal-info-col { flex: 1; min-width: 0; }
.modal-info-col h4 { font-size: 14px; color: #333; margin: 0 0 10px 0; }
.modal-info-col ul { list-style: none; font-size: 13px; color: #666; line-height: 2; margin: 0; padding: 0; }
.modal-info-col ul li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-info-col ul li::before { content: "- "; color: #1e6fd4; font-weight: 700; }
.modal-expire-tip {
    margin-top: 14px;
    font-size: 12px;
    color: #e67e22;
    background: #fef9f3;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #e67e22;
    line-height: 1.6;
}
.modal-dl-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

/* ===== FAQ ===== */
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 18px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.faq-item h3 { font-size: 16px; color: #1e6fd4; margin-bottom: 6px; }
.faq-item p { font-size: 13px; color: #666; line-height: 1.8; }
.faq-item code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Consolas", monospace;
    font-size: 13px;
}

/* ===== Tags / Keywords ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    border-radius: 20px;
    background: #e8f0fe;
    color: #1e6fd4;
    border: 1px solid #d2e3fc;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 24px 20px;
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
}
.footer .disclaimer { margin-top: 10px; color: #666; font-size: 11px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 0;
    font-size: 13px;
    color: #999;
}
.breadcrumb a { color: #1e6fd4; }

/* ===== Page header (subpages) ===== */
.page-header {
    background: linear-gradient(135deg, #1a56db 0%, #1e88e5 100%);
    color: #fff;
    padding: 36px 20px;
    text-align: center;
}
.page-header h1 { font-size: 30px; margin-bottom: 6px; }
.page-header p { font-size: 14px; opacity: .8; }

/* ===== Article Body (tutorial-style content) ===== */
.article-body {
    max-width: 860px;
    margin: 0 auto;
}
.article-body h3 {
    font-size: 20px;
    color: #222;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}
.article-body h3:first-child { margin-top: 0; }
.article-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 14px;
}
.article-body ul, .article-body ol {
    font-size: 14px;
    color: #555;
    line-height: 2;
    padding-left: 22px;
    margin-bottom: 16px;
}
.article-body ul li, .article-body ol li { margin-bottom: 4px; }

/* ===== Download Version Selection (Redesign) ===== */
.version-selection {
    max-width: 960px;
    margin: 0 auto;
}
.version-card-main {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border: 1px solid #e0e8f0;
    position: relative;
    overflow: hidden;
}
.version-card-main::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #1abc9c);
}
.version-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.version-card-header h3 {
    font-size: 20px;
    color: #222;
    margin: 0;
}
.version-badge-recommend {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60, #1abc9c);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.version-arch-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.arch-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #1e6fd4;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #d2e3fc;
}
.arch-tag.arch-primary {
    background: #e8f4fd;
    color: #1e6fd4;
}
.arch-tag.arch-secondary {
    background: #f0f0f0;
    color: #888;
}
.version-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.version-features-list li {
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    line-height: 1.6;
}
.version-features-list li::before {
    content: "\2714";
    color: #27ae60;
    font-weight: 700;
    margin-right: 8px;
}
.version-card-download {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.version-card-download .btn-dl {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}
.version-card-secondary {
    background: #f9fafb;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 20px 24px;
}
.version-card-secondary h3 {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}
.version-card-secondary .info {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ===== Tutorial Repair Section (Redesign) ===== */
.repair-section {
    max-width: 960px;
    margin: 0 auto;
}
.repair-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}
.repair-step {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-left: 5px solid #1e6fd4;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.repair-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e6fd4;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.repair-step-body {
    flex: 1;
}
.repair-step-body h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 6px;
}
.repair-step-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}
.repair-scenarios-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-left: 4px;
}
.repair-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.repair-scenario {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    border: 1px solid #eef1f5;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: box-shadow .2s;
}
.repair-scenario:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.repair-scenario .scenario-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.scenario-icon.icon-blue { background: #e8f4fd; color: #1e6fd4; }
.scenario-icon.icon-orange { background: #fef5ea; color: #e67e22; }
.scenario-icon.icon-red { background: #fdeaea; color: #e74c3c; }
.scenario-icon.icon-purple { background: #f3eef8; color: #8e44ad; }
.scenario-icon.icon-teal { background: #e8f8f5; color: #1abc9c; }
.repair-cmd-box {
    background: #1a1a2e;
    color: #4ec9b0;
    padding: 20px 28px;
    border-radius: 12px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 15px;
    line-height: 2;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.repair-cmd-box .cmd-label {
    display: block;
    color: #6a9955;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.repair-cmd-box .cmd-line {
    color: #4ec9b0;
}
.repair-cmd-box .cmd-prompt {
    color: #dcdcaa;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero .subtitle { font-size: 16px; }
    .section-title { font-size: 22px; }
    .nav a { margin-left: 14px; font-size: 13px; }
    .modal-body { flex-direction: column; align-items: center; }
    .modal-qr-col { width: auto; }
    .modal-info-col { width: 100%; }
    .modal-info-col ul li { white-space: normal; }
    .feature-grid { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr; }
    .step-item { flex-direction: column; }
    .step-num { align-self: flex-start; }
    .cmp-table { font-size: 12px; }
    .cmp-table thead th, .cmp-table tbody td { padding: 8px 10px; }
    .version-features-list { grid-template-columns: 1fr; }
    .version-card-main { padding: 20px; }
    .repair-step { flex-direction: column; }
    .repair-step-num { align-self: flex-start; }
    .repair-scenarios { grid-template-columns: 1fr; }
}
