/* Malwarebytes 中文版使用教程 - 主样式文件 */
:root {
    --primary: #4a148c;
    --primary-dark: #311b92;
    --primary-light: #7b1fa2;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --text: #212121;
    --text-light: #616161;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(74, 20, 140, 0.08);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(49, 27, 146, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.site-logo:hover { color: #e1bee7; }

/* Navigation */
.main-nav { display: flex; align-items: center; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav-list a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { color: var(--primary-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 48px 20px;
    text-align: center;
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { opacity: 0.85; font-size: 1.05rem; }

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(74, 20, 140, 0.12); }

.card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.card p { color: var(--text-light); font-size: 0.95rem; }

/* Article Content */
.article-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin: 32px 0;
}

.article-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1bee7;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 24px 0 12px;
}

.article-content p { margin-bottom: 14px; color: var(--text); }

.article-content ul, .article-content ol {
    margin: 12px 0 16px 24px;
}

.article-content li { margin-bottom: 8px; }

.step-list {
    list-style: none;
    margin-left: 0;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
    padding: 16px 16px 16px 56px;
    position: relative;
    background: #f3e5f5;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.note-box {
    background: #ede7f6;
    border-left: 4px solid var(--primary-light);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
}

.note-box strong { color: var(--primary); }

.warn-box {
    background: #fff3e0;
    border-left: 4px solid #ef6c00;
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
}

.warn-box strong { color: #e65100; }

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 48px 18px 20px;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.faq-question:hover { background: #f3e5f5; }

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: "-";
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 20px 18px;
}

.faq-answer p { color: var(--text-light); margin-bottom: 8px; }

/* Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th, .info-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
}

.info-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.info-table tr:nth-child(even) { background: #f3e5f5; }
.info-table tr:nth-child(odd) { background: #fff; }

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.footer-col a:hover { color: #fff; }

.footer-col p { font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
    max-width: 1100px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 12px;
        gap: 0;
    }
    
    .nav-list.open { display: flex; }
    
    .nav-list a {
        padding: 12px 16px;
        border-radius: 0;
    }
    
    .hero { padding: 48px 20px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    
    .article-content { padding: 20px; }
    .card-grid { grid-template-columns: 1fr; }
    
    .footer-inner { grid-template-columns: 1fr; }
    
    .info-table { font-size: 0.9rem; }
    .info-table th, .info-table td { padding: 8px 10px; }
}
