:root {
    --primary: #2dd4bf;
    --primary-dark: #14b8a6;
    --primary-light: #ccfbf1;
    --primary-rgb: 45, 212, 191;
    --bg: #f6f9fb;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 顶部导航 ===== */
.navbar-custom {
    background: #fff;
    box-shadow: var(--shadow);
    padding: .6rem 0;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.navbar-brand .logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.nav-link-cat {
    color: var(--text) !important;
    font-weight: 500;
    padding: .4rem .8rem !important;
    border-radius: 8px;
    transition: all .2s;
}
.nav-link-cat:hover, .nav-link-cat.active {
    color: var(--primary-dark) !important;
    background: var(--primary-light);
}
.search-box .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}
.search-box .btn {
    border-radius: 0 20px 20px 0;
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.search-box .btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ===== 主内容 ===== */
main { flex: 1 0 auto; padding: 1.8rem 0; }

.hero {
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
    border-radius: var(--radius);
    padding: 2.2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.8rem;
}
.hero h1 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
}
.hero p { color: var(--text-muted); margin: 0 auto; max-width: 600px; }

/* ===== 分类区块 ===== */
.category-section { margin-bottom: 2rem; }
.category-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.category-title .cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.category-title .more-link {
    margin-left: auto;
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
}
.category-title .more-link:hover { color: var(--primary-dark); }

/* ===== 工具卡片网格 ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}
.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.tool-card .tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.tool-card .tool-name { font-weight: 600; font-size: .98rem; }
.tool-card .tool-desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 面包屑(胶囊标签风格) ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1.2rem;
    background: transparent;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: .85rem;
}
.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    padding: .4rem 1rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.breadcrumb-item a:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: #eef4ff;
    transform: translateY(-1px);
}
.breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
    padding: .4rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 2px 8px rgba(79, 108, 255, .3);
}
.breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
    margin-left: -.2rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    color: var(--text-muted);
    font-size: .7rem;
    padding: 0 .35rem;
}

/* ===== 弹窗广告 ===== */
.popup-ad-dialog { max-width: 480px; }
.popup-ad-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    position: relative;
}
.popup-ad-content .popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0,0,0,.4);
    border-radius: 50%;
    padding: .4rem;
    opacity: .8;
}
.popup-ad-content .popup-close:hover { opacity: 1; }
.popup-ad-img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* ===== 弹窗公告 ===== */
.notice-ad-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}
.notice-ad-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.notice-ad-header .btn-close { filter: invert(1); }
.notice-ad-header .modal-title { font-weight: 600; }
.notice-ad-content .modal-body {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
}

/* ===== 广告位 ===== */
.ad-banner {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: center;
    font-size: .9rem;
}
.ad-banner a { color: var(--primary-dark); text-decoration: none; font-weight: 500; }
.ad-sidebar {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-size: .85rem;
    margin-bottom: 1rem;
}

/* ===== 工具操作区 ===== */
.tool-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.tool-panel h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .3rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.tool-panel .tool-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.2rem; }
.tool-label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.tool-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .7rem .9rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .9rem;
    resize: vertical;
    min-height: 120px;
}
.tool-textarea:focus, .tool-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.console-output {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .72rem;
    line-height: 1.15;
    color: #00ff66;
    overflow-x: auto;
    max-height: 520px;
    white-space: pre;
    text-shadow: 0 0 4px currentColor;
    margin: 0;
}
.tool-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .55rem .8rem;
    font-size: .9rem;
}
.btn-tool {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: .5rem 1.2rem;
    border-radius: 9px;
    font-weight: 500;
    transition: all .2s;
}
.btn-tool:hover { background: var(--primary-dark); color: #fff; }
.btn-tool.btn-outline {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--primary);
}
.btn-tool.btn-outline:hover { background: var(--primary-light); }
.result-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .8rem 1rem;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: .9rem;
    word-break: break-all;
    min-height: 50px;
    white-space: pre-wrap;
}

/* ===== 单位换算工具 ===== */
.unit-result-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .5rem 0;
    overflow: hidden;
}
.unit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.unit-row:last-child { border-bottom: none; }
.unit-row:hover { background: #f0f4ff; }
.unit-name { color: var(--text-muted); font-size: .9rem; min-width: 100px; flex-shrink: 0; }
.unit-input {
    flex: 1;
    max-width: 280px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .4rem .7rem;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: .9rem;
    text-align: right;
    background: #fff;
}
.unit-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== 文本对照工具 ===== */
.diff-container {
    display: flex;
    gap: .5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.diff-pane { flex: 1; overflow-x: auto; min-width: 0; }
.diff-pane-header {
    background: #f1f5f9;
    padding: .5rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.diff-pane-body { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: .82rem; }
.diff-row {
    display: flex;
    align-items: flex-start;
    padding: .15rem .5rem;
    min-height: 1.6rem;
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}
.diff-num {
    color: #94a3b8;
    min-width: 2.2rem;
    text-align: right;
    padding-right: .5rem;
    user-select: none;
    flex-shrink: 0;
}
.diff-sign {
    min-width: 1rem;
    text-align: center;
    user-select: none;
    flex-shrink: 0;
    font-weight: 700;
}
.diff-text { flex: 1; white-space: pre-wrap; word-break: break-all; padding-left: .3rem; }
.diff-same { background: #fff; }
.diff-del { background: #fff5f5; }
.diff-del .diff-sign { color: #e03131; }
.diff-del .diff-text { color: #c92a2a; }
.diff-add { background: #f0fff4; }
.diff-add .diff-sign { color: #2f9e44; }
.diff-add .diff-text { color: #2b8a3e; }
.diff-empty { background: #f8fafc; color: #cbd5e1; }

/* ===== 页脚 ===== */
.footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
    margin-top: 2rem;
}
.footer a { color: var(--text-muted); text-decoration: none; margin: 0 .5rem; }
.footer a:hover { color: var(--primary-dark); }

/* ===== 解压小游戏 ===== */
.bubble-cell {
    cursor: pointer;
    transition: transform .1s;
    user-select: none;
}
.bubble-cell:hover:not(.popped) {
    transform: scale(1.15);
}
.bubble-cell:active:not(.popped) {
    transform: scale(0.85);
}
.bubble-cell.popped {
    cursor: default;
    opacity: .5;
}

/* ===== 今天吃什么 ===== */
.eat-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.2rem;
}
.eat-wheel {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b 0deg 45deg,
        #feca57 45deg 90deg,
        #48dbfb 90deg 135deg,
        #1dd1a1 135deg 180deg,
        #ff9ff3 180deg 225deg,
        #54a0ff 225deg 270deg,
        #5f27cd 270deg 315deg,
        #ff6b6b 315deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(45, 212, 191, .35), inset 0 0 0 6px #fff;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    position: relative;
}
.eat-wheel::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 4px 20px rgba(0,0,0,.08);
}
.eat-wheel-wrap {
    position: relative;
    margin-top: 10px;
    width: 280px;
    height: 280px;
}
.eat-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid #ff6b6b;
    z-index: 5;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.2));
}
.eat-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(45, 212, 191, .4);
    cursor: pointer;
    transition: transform .15s;
    text-align: center;
}
.eat-center:hover { transform: translate(-50%, -50%) scale(1.05); }
.eat-center:active { transform: translate(-50%, -50%) scale(0.96); }
.eat-center .eat-label { font-size: .8rem; font-weight: 500; opacity: .9; margin-top: 4px; }

.eat-flyer {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9;
    will-change: transform, opacity;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}

.eat-chat-log {
    width: 100%;
    max-width: 560px;
    margin-top: 1rem;
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    text-align: left;
    border: 1px solid var(--border);
    font-size: .88rem;
    line-height: 1.7;
    transition: color .3s, border-color .3s, background .3s;
}

@keyframes eatAppear {
    0% { opacity: 0; transform: translateY(20px) scale(.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes eatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.eat-result-card {
    animation: eatAppear .6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(45, 212, 191, .25);
}
.eat-result-emoji {
    font-size: 3rem;
    animation: eatPulse 1.2s ease-in-out infinite;
}
.eat-result-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: .3rem 0 .2rem;
}
.eat-result-region {
    display: inline-block;
    font-size: .8rem;
    padding: .15rem .7rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    margin-bottom: .8rem;
}
.eat-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: .8rem;
}
.eat-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .6rem .4rem;
}
.eat-stat .val {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}
.eat-stat .lbl {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.eat-chat-log .chat-line {
    opacity: 0;
    animation: eatAppear .4s forwards;
    margin-bottom: .35rem;
}
.eat-chat-log .chat-line .chat-emoji { margin-right: 6px; }
.eat-chat-log .chat-line strong { color: var(--primary-dark); }

.eat-custom-edit {
    width: 100%;
    max-width: 480px;
}
.eat-custom-edit textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .85rem;
    resize: vertical;
}
.eat-filter-row {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.eat-filter-row .chip {
    padding: .25rem .7rem;
    font-size: .78rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: all .2s;
}
.eat-filter-row .chip:hover { border-color: var(--primary); }
.eat-filter-row .chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero { padding: 1.5rem 1rem; }
    .hero h1 { font-size: 1.4rem; }
    .tool-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
    .tool-card { padding: .9rem; }
    .tool-panel { padding: 1rem; }
    .unit-row { flex-direction: column; align-items: stretch; padding: .6rem .8rem; gap: .3rem; }
    .unit-name { min-width: 0; font-size: .8rem; }
    .unit-input { max-width: 100%; text-align: left; }
}
/* ===== ¸úÎÒ˵Ðü¸¡°´ť ===== */
.feedback-fab {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: .7rem 1.2rem;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 6px 20px rgba(45, 212, 191, .45);
    cursor: pointer;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: all .3s;
    animation: feedbackPulse 2.5s ease-in-out infinite;
}
.feedback-fab:hover { transform: scale(1.08); }
@keyframes feedbackPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(45, 212, 191, .45); }
    50% { box-shadow: 0 6px 30px rgba(45, 212, 191, .7); }
}

.feedback-offcanvas { width: 340px; max-width: 90vw; }
.feedback-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.feedback-header .btn-close-white { filter: brightness(0) invert(1); }
.feedback-body .feedback-tip {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.feedback-body .form-label { font-weight: 600; font-size: .88rem; }

/* ===== ·ÖÏí¿¨Ƭ ===== */
.share-card {
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
    border: 1px solid var(--primary);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
}
.share-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: .3rem;
}
.share-card-desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .8rem;
    line-height: 1.5;
}
.share-card-url {
    background: #fff;
    border-radius: 8px;
    padding: .5rem .8rem;
    font-family: Consolas, monospace;
    font-size: .8rem;
    word-break: break-all;
    color: var(--text);
    border: 1px dashed var(--primary);
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ===== ¹¦ÄÜÃèÊö/˵Ã÷Çø¿é ===== */
.tool-info-section {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.tool-info-section h5 {
    font-weight: 700;
    margin-bottom: .8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.tool-info-section h5 i { color: var(--primary-dark); }
.tool-info-section .info-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: .8rem;
    border-left: 3px solid var(--primary);
    line-height: 1.7;
    font-size: .9rem;
}
.tool-info-section .info-block code {
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .85em;
    color: #be185d;
}
.tool-info-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin-top: .5rem;
}
.tool-info-section table th,
.tool-info-section table td {
    border: 1px solid var(--border);
    padding: .5rem .8rem;
    text-align: center;
}
.tool-info-section table thead th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}
.tool-info-section table tbody tr:hover { background: #f1f5f9; }

.tool-action-bar {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.tool-faq-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
    color: var(--primary-dark);
    text-decoration: none;
}
.tool-faq-link:hover { text-decoration: underline; }

/* ===== FAQ ҳÃæ ===== */
.faq-section { margin-bottom: 2rem; }
.faq-section h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: .6rem;
    overflow: hidden;
    transition: all .25s;
}
.faq-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.faq-item a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.1rem;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}
.faq-item a i:first-child { color: var(--primary-dark); }
.faq-item .faq-meta {
    margin-left: auto;
    font-size: .8rem;
    color: var(--text-muted);
}

.faq-detail h1 {
    font-weight: 700;
    margin-bottom: .5rem;
}
.faq-detail .faq-tool-link {
    display: inline-block;
    font-size: .85rem;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 1.2rem;
}
.faq-detail .faq-tool-link:hover { text-decoration: underline; }
.faq-detail .faq-content {
    line-height: 1.9;
    font-size: .95rem;
}
.faq-detail .faq-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: .6rem;
    padding-left: .7rem;
    border-left: 3px solid var(--primary);
}
.faq-detail .faq-content p { margin-bottom: .6rem; }
.faq-detail .faq-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #be185d;
    font-size: .88em;
}
.faq-detail .faq-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: .85rem;
    margin: .5rem 0;
}
