/* manual.css - v1.3 与 main.css 100% 一致 */

/* ===== 基础变量定义（与 main.css 完全一致）===== */
:root {
    --bg: #0b1020;
    --card: #141a33;
    --text: #e8ebff;
    --muted: #9aa3ff;
    --accent: #6cf2c2;
    --accent2: #7aa2ff;
    --accent3: #90c9f3;
    --border: rgba(122,162,255,.15);
}

    /* ===== 亮色主题覆盖（与 main.css 完全一致）===== */
    :root[data-theme="light"] {
        --bg: #fdf6e3;
        --card: #ffffff;
        --text: #1b1b1b;
        --muted: #555555;
        --accent: #0000ff;
        --accent2: #c4f8f4;
        --accent3: #90c9f3;
        --border: rgba(0,0,0,.1);
    }

/* ===== body 样式（与 main.css 一致）===== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background 0.4s, color 0.4s;
}

/* ===== 主题切换按钮样式 - 与 main.css 100% 一致 ===== */
#theme-toggle {
    /*position: fixed;*/
    top: 8px;
    right: 10px;
    padding: 8px 20px;
    border: none;
    background: rgba(11,16,32,.9);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    margin-left: auto;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(122,162,255,.15);
    /*    border-left: 1px solid rgba(122,162,255,.15);
    border-bottom-left-radius: 2px;*/
    transition: background 0.3s, color 0.3s;
}

/* 亮色主题下的顶部按钮样式（与 main.css 完全一致） */
:root[data-theme="light"] #theme-toggle {
    background: rgba(255,255,255,.9);
/*    border-bottom: 1px solid rgba(0,0,0,.1);
    border-left: 1px solid rgba(0,0,0,.1);*/
}

/* 悬停效果（与 main.css 完全一致） */
#theme-toggle:hover {
    background: var(--accent2);
    color: #0b1020;
}

/* ===== 页面容器 ===== */
.container {
    max-width: 1100px;
    margin: 10px auto 10px;
    padding: 30px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 标题样式 ===== */
h1, h2, h3 {
    color: var(--accent);
    transition: color 0.4s;
}

h1 {
    text-align: center;
    margin-bottom: 16px;
}

h2 {
    margin-top: 24px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent2);
    padding-left: 12px;
}

h3 {
    margin-top: 16px;
    margin-bottom: 8px;
}

/* ===== 文本与列表 ===== */
p {
    margin-bottom: 12px;
}

ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

li {
    margin-bottom: 6px;
}

/* ===== 链接样式 ===== */
a {
    color: var(--accent);
    text-decoration: none;
    /*transition: opacity 0.3s;*/
}

    a:hover {
        text-decoration: underline;
        opacity: 0.9;
    }

.download-links a {
    display: inline-block;
    margin: 8px 8px 8px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent2), var(--accent3));
    color: #0b1020;
    font-weight: 600;
    text-decoration: none;
}

/* ===== 分隔线 ===== */
hr {
    border: 0;
    border-top: 1px solid var(--accent2);
    margin: 24px 0;
}

/* ===== 代码块 ===== */
code {
    background-color: rgba(122, 162, 255, .1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent2);
}

/* ===== 辅助功能 ===== */
a:focus,
button:focus {
    outline: 2px solid var(--accent2);
    outline-offset: 2px;
}

/* ===== 打印样式 ===== */
@media print {
    #theme-toggle {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-top: 20px;
    }
}
/* =================================
   Footer 基础样式
================================= */
footer {
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
    border-top: 1px solid rgba(122,162,255,.15);
    background: rgba(11,16,32,.6);
}

:root[data-theme="light"] footer {
    background: rgba(255,255,255,.8);
}

/* =================================
   Footer 链接样式优化
================================= */

/* 普通链接（备案链接） */
footer a {
    color: var(--accent2); /* 使用更清晰的蓝色而非青色 */
    text-decoration: underline; /* 添加下划线提高可识别性 */
    text-underline-offset: 2px; /* 下划线与文字间距 */
    font-weight: 500;
    transition: color 0.3s, text-decoration 0.3s;
}

/* 亮色主题：使用更深、更清晰的蓝色 */
:root[data-theme="light"] footer a {
    color: #0056b3;
}

/* 悬停状态：主题色 + 移除下划线 */
footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* 已访问链接：降低饱和度但仍保持清晰 */
footer a:visited {
    color: var(--muted);
    opacity: 0.85;
}

:root[data-theme="light"] footer a:visited {
    color: #6c757d; /* 中性灰，表示已访问 */
}

/* =================================
   强调型链接（公众号、邮箱）
================================= */
footer a.footer-highlight {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none; /* 移除下划线，用颜色和字重强调 */
}

    footer a.footer-highlight:hover {
        text-decoration: underline; /* 悬停时显示下划线 */
    }

/* 亮色主题：使用更深、更稳的绿色 */
:root[data-theme="light"] footer a.footer-highlight {
    color: #007a3d; /* 与 --subtitle-green 保持一致 */
}
