/**
 * 触点漫画 - 全站设计语言
 * 深顶底 + 浅内容区，主色 #00dc64
 */
:root {
    --site-primary: #00dc64;
    --site-primary-hover: #00b854;
    --site-header-bg: #1a1a2e;
    --site-footer-bg: #16213e;
    --site-main-bg: #f8f9fa;
    --site-card-bg: #fff;
    --site-text: #111827;
    --site-text-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-radius: 10px;
    --site-radius-sm: 6px;
    --site-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --site-shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.12);
    --site-max-width: 1200px;
    --site-gap: 24px;
    --site-header-height: 56px;
}

/* 主内容区（含顶栏占位：引入 site-header 时需预留高度） */
.site-main {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: calc(var(--site-header-height) + 16px) 20px 60px;
    background: var(--site-main-bg);
}

/* 区块标题：左线 + 主色 */
.site-section {
    margin-bottom: 48px;
}

.site-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--site-text);
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid var(--site-primary);
    line-height: 1.3;
}

.site-section-title a {
    color: inherit;
    text-decoration: none;
}

.site-section-title a:hover {
    color: var(--site-primary);
}

/* 与 originals 一致的卡片网格（我的收藏/我的书架等复用） */
.originals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.originals-grid li { list-style: none; }
@media (max-width: 900px) { .originals-grid { grid-template-columns: repeat(2, 1fr); } }
.card_nodata { padding: 32px 20px; text-align: center; color: var(--site-text-muted); }
.card_nodata .dsc { margin: 0; line-height: 1.6; }

/* 账号中心 / 我的收藏·书架 子导航 */
.account-snb { margin-bottom: 24px; }
.account-snb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--site-border);
    padding-bottom: 16px;
}
.account-snb__list a {
    display: block;
    padding: 10px 18px;
    color: var(--site-text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--site-radius-sm);
    transition: color 0.2s, background 0.2s;
}
.account-snb__list a:hover { color: var(--site-primary); background: rgba(0,220,100,0.08); }
.account-snb__list li.on a { color: #fff; background: var(--site-primary); }

/* 个人中心模块布局 */
.account-center__hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--site-card-bg);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    margin-bottom: 24px;
}
.account-center__avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--site-primary); display: flex; align-items: center; justify-content: center; }
.account-center__avatar-inner { font-size: 24px; font-weight: 700; color: #fff; }
.account-center__hero-info { min-width: 0; }
.account-center__phone { font-size: 18px; font-weight: 700; color: var(--site-text); margin: 0 0 4px 0; }
.account-center__nick { font-size: 14px; color: var(--site-text-muted); margin: 0; }

.account-center__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 640px) { .account-center__grid { grid-template-columns: 1fr; } }
.account-module {
    background: var(--site-card-bg);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    border: 1px solid var(--site-border);
    padding: 20px;
}
.account-module__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--site-text-muted);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.account-module__body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.account-module__value { font-size: 15px; color: var(--site-text); margin: 0; font-weight: 500; }
.account-module__muted { font-size: 13px; color: var(--site-text-muted); margin: 0; width: 100%; }
.account-module__edit { margin-top: 12px; }
.account-module__edit .login-form__input { width: 100%; max-width: none; margin-bottom: 10px; }
.account-module__actions { display: flex; gap: 10px; }
.account-btn-sm { padding: 8px 16px; font-size: 14px; }
.account-center__delete { margin: 32px 0 60px; text-align: center; }
.account-center__delete a { font-size: 14px; color: var(--site-text-muted); text-decoration: none; }
.account-center__delete a:hover { color: #dc2626; text-decoration: underline; }

/* 按钮基础 */
.site-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--site-radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.site-btn--primary {
    background: var(--site-primary);
    color: #fff;
}

.site-btn--primary:hover {
    background: var(--site-primary-hover);
    color: #fff;
}

.site-btn--outline {
    background: transparent;
    color: var(--site-primary);
    border: 2px solid var(--site-primary);
}

.site-btn--outline:hover {
    background: var(--site-primary);
    color: #fff;
}

/* ========== 顶部导航（深色、悬浮） ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--site-header-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header__inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 10px 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.site-header__logo img {
    height: 45px;
    width: auto;
    display: block;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__nav a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--site-radius-sm);
    transition: color 0.2s, background 0.2s;
}

.site-header__nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.site-header__nav li.active a {
    color: var(--site-primary);
    background: rgba(0,220,100,0.15);
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__login {
    display: inline-block;
    padding: 8px 18px;
    background: var(--site-primary);
    color: #1a1a2e !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--site-radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.site-header__login:hover {
    background: var(--site-primary-hover);
    color: #fff !important;
}

.site-header__user {
    position: relative;
}

.site-header__user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    border-radius: var(--site-radius-sm);
    cursor: pointer;
    font-size: 14px;
}

.site-header__user-btn:hover {
    background: rgba(255,255,255,0.18);
}

.site-header__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 160px;
    background: #fff;
    border-radius: var(--site-radius-sm);
    box-shadow: var(--site-shadow-hover);
    padding: 8px 0;
    list-style: none;
    margin-right: 0;
    display: none;
}

.site-header__user:hover .site-header__dropdown {
    display: block;
}

.site-header__dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--site-text);
    text-decoration: none;
    font-size: 14px;
}

.site-header__dropdown a:hover {
    background: var(--site-main-bg);
    color: var(--site-primary);
}

.site-header__dropdown ._btnLogout {
    border-top: 1px solid var(--site-border);
    margin-top: 4px;
    padding-top: 8px;
    cursor: pointer;
    color: var(--site-text-muted);
}

.site-header__dropdown ._btnLogout:hover {
    color: #e11;
    background: #fff5f5;
}

/* ========== 底部（深色） ========== */
.site-footer {
    background: var(--site-footer-bg);
    color: rgba(255,255,255,0.85);
    padding: 40px 20px 24px;
    margin-top: 0;
}

.site-footer__inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    text-align: center;
}

.site-footer__slogan {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #fff;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.site-footer__links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
}

.site-footer__links a:hover {
    color: var(--site-primary);
}

.site-footer__copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.site-footer__copyright a {
    color: var(--site-primary);
    text-decoration: none;
}

/* ========== 覆盖 style.css 的 #header / #content / #footer（保证顶栏深色、悬浮、无负 margin） ========== */
#header.site-header,
header#header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: var(--site-header-bg) !important;
    color: #fff;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 57px;
}

/* 引入 site-header 的页面：主内容区预留顶栏高度 */
#content {
    padding-top: calc(var(--site-header-height) + 16px) !important;
}

/* 固定顶栏时，紧接 header 后的第一个块需留出顶栏高度（避免被遮挡） */
#wrap > hr + * {
    margin-top: 100px;
}

#footer.site-footer,
footer#footer {
    background: var(--site-footer-bg) !important;
    color: rgba(255,255,255,0.85);
    margin-top: 0 !important;
    min-height: auto;
}

/* ========== dan 单页（条款/隐私/投稿等）：背景与文字匹配 ========== */
#wrap:has(.terms_area) #container { background: var(--site-main-bg); color: var(--site-text); }
#wrap:has(.terms_area) #content { color: var(--site-text); background: var(--site-main-bg); }
/* 条款/隐私/投稿 tab：与主内容同宽，左对齐不错位 */
#wrap:has(.terms_area) #content { padding-top: calc(var(--site-header-height) + 16px) !important; }
.snb_wrap.terms { background: var(--site-card-bg); border-bottom: 1px solid var(--site-border); box-shadow: 0 1px 0 var(--site-border); }
.snb_wrap.terms .snb_inner { max-width: var(--site-max-width); margin: 0 auto; padding: 0 20px; }
.snb_wrap.terms .snb {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 0 !important;
    padding: 16px 0 !important;
    border: none !important;
    justify-content: flex-start !important;
    align-items: center !important;
}
.snb_wrap.terms .snb li { margin: 0 !important; float: none !important; }
.snb_wrap.terms .snb a {
    display: inline-block !important;
    padding: 10px 18px;
    color: var(--site-text-muted);
    text-decoration: none !important;
    font-weight: 500;
    border-radius: var(--site-radius-sm);
    transition: color 0.2s, background 0.2s;
}
.snb_wrap.terms .snb a:hover { color: var(--site-primary); background: rgba(0,220,100,0.08); }
.snb_wrap.terms .snb li.on a { color: #fff; background: var(--site-primary); }
.terms_area { max-width: var(--site-max-width); margin: 24px auto 60px; padding: 28px 24px; background: var(--site-card-bg); border-radius: var(--site-radius); box-shadow: var(--site-shadow); color: var(--site-text); }
.terms_area h3, .terms_area h4 { color: var(--site-text); margin: 1em 0 0.5em 0; }
.terms_area p, .terms_area dd { color: var(--site-text); line-height: 1.7; margin: 0.5em 0; }
.terms_area a { color: var(--site-primary); text-decoration: none; }
.terms_area a:hover { text-decoration: underline; }
.terms_area .date { color: var(--site-text-muted); font-size: 14px; }
.terms_area dt { margin-top: 1.5em; }
.terms_area dl { margin: 0; }

/* 登录页：保持 site-header 与全站一致，不因 style.css 被干扰 */
.login_wrap .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--site-header-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.login_wrap .site-header__inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 10px 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== 登录页表单重设计 ========== */
body.login-page { background: var(--site-main-bg); min-height: 100vh; }
.login_wrap { display: flex; flex-direction: column; min-height: 100vh; }
.login_wrap #container { flex: 1; position: static !important; inset: auto !important; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; }
.login-page__content { width: 100%; max-width: 420px; margin: 0 auto; }

.login-card {
    background: var(--site-card-bg);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    border: 1px solid var(--site-border);
    overflow: hidden;
}
.login-card__head {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--site-border);
}
.login-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--site-text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.login-card__subtitle {
    font-size: 14px;
    color: var(--site-text-muted);
    margin: 0;
    line-height: 1.5;
}

.login-form { padding: 28px 32px 24px; }
.login-form__field { margin-bottom: 20px; }
.login-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--site-text);
    margin-bottom: 8px;
}
.login-form__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    box-sizing: border-box;
    background: #fff;
    color: var(--site-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form__input::placeholder { color: var(--site-text-muted); }
.login-form__input:focus {
    outline: none;
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(0,220,100,0.15);
}
.login-form__input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.login-form__input-wrap .login-form__input { padding-right: 48px; }
.login-form__toggle-pwd {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--site-text-muted);
    font-size: 18px;
    border-radius: 0 var(--site-radius-sm) var(--site-radius-sm) 0;
    transition: color 0.2s, background 0.2s;
}
.login-form__toggle-pwd:hover { color: var(--site-primary); background: rgba(0,220,100,0.06); }
.login-form__toggle-pwd-icon { line-height: 1; }

.login-form__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.login-form__btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--site-radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}
.login-form__btn--primary {
    background: var(--site-primary);
    color: #fff;
}
.login-form__btn--primary:hover {
    background: var(--site-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}
.login-form__btn--primary:active { transform: translateY(0); }
.login-form__link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--site-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}
.login-form__link:hover { color: var(--site-primary-hover); text-decoration: underline; }

.login-card__footer {
    padding: 16px 32px 24px;
    border-top: 1px solid var(--site-border);
    text-align: center;
}
.login-form__back {
    font-size: 14px;
    color: var(--site-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.login-form__back:hover { color: var(--site-primary); }

/* 注册页：验证码行、协议文案 */
.login-form__required { color: #dc2626; }
.login-form__field--sms .login-form__input { max-width: none; }
.login-form__sms-wrap { display: flex; gap: 12px; align-items: stretch; }
.login-form__sms-wrap .login-form__input { flex: 1; max-width: none; }
.login-form__sms-btn {
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--site-primary);
    border: none;
    border-radius: var(--site-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.login-form__sms-btn:hover { background: var(--site-primary-hover); }
.login-form__agree {
    font-size: 13px;
    color: var(--site-text-muted);
    margin: 16px 0 0 0;
    line-height: 1.5;
}
.login-form__agree a { color: var(--site-primary); text-decoration: none; }
.login-form__agree a:hover { text-decoration: underline; }

/* ========== 动漫阅读器 chapter ========== */
.chapter-reader-wrap { background: #0f0f12; min-height: 100vh; }
.chapter-reader #container.chapter-reader-container { padding: 0; max-width: none; }

/* 深色顶栏（box-sizing 避免 padding 导致宽度超出 100%） */
.chapter-reader .tool_area.chapter-toolbar {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
.chapter-reader .chapter-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--site-header-bg);
    color: #e5e7eb;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
    min-height: 52px;
    box-sizing: border-box;
    max-width: 100%;
}
.chapter-reader .chapter-toolbar#toolbarSensor { padding: 0; min-height: 0; height: 0; overflow: hidden; visibility: hidden; }
.chapter-reader .chapter-toolbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.chapter-reader .chapter-toolbar__link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
}
.chapter-reader .chapter-toolbar__link:hover { color: var(--site-primary); }
.chapter-reader .chapter-toolbar__sep { color: #4b5563; font-size: 13px; user-select: none; }
.chapter-reader .chapter-toolbar__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.chapter-reader .chapter-toolbar__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-right: 50px;
}
.chapter-reader .chapter-toolbar__current {
    font-size: 13px;
    color: #9ca3af;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chapter-reader .chapter-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chapter-reader .chapter-toolbar__btn:hover {
    background: rgba(0,220,100,0.2);
    color: var(--site-primary);
    border-color: rgba(0,220,100,0.4);
}
.chapter-reader .chapter-toolbar__btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #6b7280;
}
.chapter-reader .chapter-toolbar__btn-arrow { font-size: 16px; line-height: 1; }

/* 阅读区域 */
.chapter-reader #content.chapter-viewer { padding-top: 0; background: #0f0f12; }
.chapter-reader .cont_box .viewer_lst { padding-top: 16px; }
.chapter-reader .chapter-viewer__area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 80px;
}
.chapter-reader .chapter-viewer__area img._images {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 6px;
    border-radius: 4px;
    background: #1a1a1e;
}
.chapter-reader .viewer_lst .viewer_img { margin-bottom: 0; }
.chapter-reader .viewer_lst .viewer_img img { min-width: 0; }

/* 回到顶部 */
.chapter-reader .chapter-go-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 50;
}
.chapter-reader .chapter-go-top .btn_top {
    display: inline-block;
    padding: 12px 18px;
    background: var(--site-primary) !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,220,100,0.4);
    transition: background 0.2s, transform 0.2s;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
}
.chapter-reader .chapter-go-top .btn_top:hover {
    background: var(--site-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ========== 单页（意见反馈等）dan?dan=continue ========== */
#wrap:has(.dan-page) #container { background: var(--site-main-bg); }
#wrap:has(.dan-page) #content { background: transparent; padding-top: calc(var(--site-header-height) + 24px); }

.dan-page { max-width: var(--site-max-width); margin: 0 auto; padding: 0 20px 60px; }
.dan-form-card {
    background: var(--site-card-bg);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    border: 1px solid var(--site-border);
    overflow: hidden;
}
.dan-form-card__head { padding: 24px 28px 20px; border-bottom: 1px solid var(--site-border); }
.dan-form-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--site-text);
    margin: 0 0 8px 0;
    padding-left: 12px;
    border-left: 4px solid var(--site-primary);
    line-height: 1.3;
}
.dan-form-card__lead {
    font-size: 14px;
    color: var(--site-text-muted);
    line-height: 1.6;
    margin: 0;
    padding-left: 16px;
}
.dan-form-card__body { padding: 24px 28px 32px; }

.dan-form__row { margin-bottom: 18px; }
.dan-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--site-text);
    margin-bottom: 6px;
}
.dan-form__required { color: #dc2626; }
.dan-form__input {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    box-sizing: border-box;
    background: #fff;
    color: var(--site-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dan-form__input::placeholder { color: var(--site-text-muted); }
.dan-form__input:focus {
    outline: none;
    border-color: var(--site-primary);
    box-shadow: 0 0 0 2px rgba(0,220,100,0.15);
}
.dan-form__textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    box-sizing: border-box;
    resize: vertical;
    background: #fff;
    color: var(--site-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dan-form__textarea::placeholder { color: var(--site-text-muted); }
.dan-form__textarea:focus {
    outline: none;
    border-color: var(--site-primary);
    box-shadow: 0 0 0 2px rgba(0,220,100,0.15);
}
.dan-form__hint {
    font-size: 13px;
    color: var(--site-text-muted);
    margin: -8px 0 16px 0;
    line-height: 1.5;
}
.dan-form__hint b { color: var(--site-text); }

.dan-form__file-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.dan-form__file-btn {
    display: inline-block;
    position: relative;
}
.dan-form__file-btn label {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--site-text-muted);
    border-radius: var(--site-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.dan-form__file-btn label:hover { background: var(--site-text); }
.dan-form__file-btn .dan-form__file { position: absolute; width: 0; height: 0; opacity: 0; }
.dan-form__file-hint { font-size: 13px; color: var(--site-text-muted); margin: 0; line-height: 1.5; flex: 1; min-width: 200px; }
.dan-form__file-list { list-style: none; margin: 8px 0 0 0; padding: 0; font-size: 13px; color: var(--site-text-muted); }

.dan-form__row--captcha { margin-top: 20px; }
.recaptcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.recaptcha-wrapper .recaptcha { display: flex; align-items: center; gap: 12px; }
.recaptcha-wrapper .captcha-img {
    flex-shrink: 0;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    overflow: hidden;
    background: #f9fafb;
}
.recaptcha-wrapper .captcha-img img { display: block; cursor: pointer; }
.recaptcha-wrapper .captcha-info { display: flex; flex-direction: column; gap: 4px; }
.recaptcha-wrapper .captcha-info label { font-size: 13px; font-weight: 600; color: var(--site-text); }
.dan-form__input--captcha { max-width: 160px; }
.dan-form__captcha-refresh {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--site-text-muted);
    background: var(--site-main-bg);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.dan-form__captcha-refresh:hover { color: var(--site-primary); border-color: var(--site-primary); }

.dan-form__privacy {
    font-size: 13px;
    color: var(--site-text-muted);
    line-height: 1.6;
    margin: 20px 0 24px 0;
}
.dan-form__privacy a { color: var(--site-primary); text-decoration: none; }
.dan-form__privacy a:hover { text-decoration: underline; }

.dan-form__actions { margin-top: 8px; }
.dan-form__submit {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--site-radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.dan-form__submit:hover { transform: translateY(-1px); }

/* ========== zeroModal 弹窗风格（与全站设计语言一致） ========== */
.zeromodal-overlay {
    opacity: 0.4;
    background-color: rgba(0, 0, 0, 0.45);
}
.zeromodal-container {
    background-color: var(--site-card-bg);
    box-shadow: var(--site-shadow);
    border-radius: var(--site-radius);
    border: 1px solid var(--site-border);
    padding: 24px 24px;
}
.zeromodal-header {
    color: var(--site-text);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}
.zeromodal-body {
    color: var(--site-text);
    font-size: 14px;
}
.zeromodal-line {
    border: none;
    border-top: 1px solid var(--site-border);
}
.zeromodal-btn {
    border-radius: var(--site-radius-sm);
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 8px 16px;
}
.zeromodal-btn:hover {
    box-shadow: none;
}
.zeromodal-btn-primary {
    background-color: var(--site-primary);
    color: #fff;
    border: none;
}
.zeromodal-btn-primary:hover {
    background-color: var(--site-primary-hover);
}
.zeromodal-btn-default {
    background-color: var(--site-main-bg);
    color: var(--site-text-muted);
    border: 1px solid var(--site-border);
}
.zeromodal-btn-default:hover {
    color: var(--site-text);
    border-color: var(--site-text-muted);
}
.zeromodal-title1 {
    color: var(--site-text);
    font-size: 20px;
    font-weight: 700;
}
.zeromodal-title2 {
    color: var(--site-text-muted);
    font-size: 14px;
}
/* 关闭/最大化/最小化：去掉图片，用文字图标 */
.zeromodal-close,
.zeromodal-max,
.zeromodal-min {
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--site-text-muted);
    opacity: 0.8;
}
.zeromodal-close:hover,
.zeromodal-max:hover,
.zeromodal-min:hover {
    color: var(--site-text);
    opacity: 1;
}
.zeromodal-close::before { content: "×"; }
.zeromodal-max::before { content: "□"; font-size: 14px; }
.zeromodal-min::before { content: "−"; font-size: 16px; }
.zeromodal-progress-content {
    color: var(--site-primary);
}
