/* 幽默笑话大全 (43quan.cn) - 全本地化响应式样式表 */
:root {
    --bg: #faf8f5;
    --surface: #ffffff;
    --surface-soft: #f5f2ec;
    --border: #e8e1d8;
    --border-strong: #d7cdc0;
    --ink: #1e242b;
    --ink-2: #3d4652;
    --muted: #6c7684;
    --orange: #e86a0c;
    --orange-hover: #cc5805;
    --orange-soft: #fff2e6;
    --blue: #0f62a5;
    --blue-sky: #299ad4;
    --blue-soft: #edf5fc;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(30, 36, 43, 0.045);
    --shadow-md: 0 8px 24px rgba(30, 36, 43, 0.07);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

button, input, textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--orange);
    background: var(--orange-soft);
}

.nav-link.is-active {
    color: var(--orange);
    background: var(--orange-soft);
    font-weight: 600;
}

.nav-link-accent {
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 600;
}

.nav-link-accent:hover,
.nav-link-accent.is-active {
    color: #fff;
    background: var(--blue);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 4px 3px 14px;
    width: 210px;
    flex-shrink: 0;
}

.header-search:focus-within {
    border-color: var(--orange);
    background: #fff;
}

.header-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13.5px;
    color: var(--ink);
    min-width: 0;
}

.header-search button {
    border: 0;
    background: var(--orange);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.header-search button:hover {
    background: var(--orange-hover);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
}

.mobile-drawer {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 14px 0 18px;
    box-shadow: var(--shadow-md);
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
}

.mobile-search button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav-grid a {
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--surface-soft);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    text-align: center;
}

.mobile-nav-grid a:hover {
    background: var(--orange-soft);
    color: var(--orange);
}

/* 首页顶部通栏公告 */
.announce-bar {
    background: linear-gradient(90deg, #fff5e8 0%, #fff0dd 55%, #eef6fd 100%);
    border-bottom: 1px solid #f0dec6;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    font-size: 14px;
    color: #5c3a14;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.announce-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.announce-action:hover {
    color: var(--orange);
}

/* Main */
.site-main {
    padding: 24px 0 48px;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

.hero-spotlight {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf4 100%);
    border: 1px solid var(--border);
    border-top: 4px solid var(--orange);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.hero-top-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-pill {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.hero-cat {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 3px 10px;
    border-radius: 999px;
}

.hero-vibe {
    font-size: 12px;
    color: var(--muted);
    background: var(--surface-soft);
    padding: 3px 10px;
    border-radius: 999px;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.38;
    font-weight: 700;
    color: var(--ink);
}

.hero-title a:hover {
    color: var(--orange);
}

.hero-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-2);
    margin-bottom: 16px;
    flex: 1;
}

.hero-body p {
    margin: 0 0 10px;
}

.hero-body p:last-child {
    margin-bottom: 0;
}

.hero-punchline {
    background: var(--blue-soft);
    border-left: 3px solid var(--blue);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: #0c4474;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: var(--ink-2);
    border: 1px solid var(--border-strong);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    padding: 6px 4px;
}

.btn-link:hover {
    color: var(--orange);
}

/* Hero Right Panel */
.hero-side-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.panel-head h2 {
    margin: 0;
    font-size: 17px;
    color: var(--ink);
}

.panel-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}

.panel-sub {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
}

.mini-riddle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-riddle-item {
    background: var(--surface-soft);
    border-radius: 10px;
    padding: 10px 12px;
}

.mini-riddle-q {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.riddle-reveal summary {
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--orange);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.riddle-reveal summary::-webkit-details-marker {
    display: none;
}

.riddle-reveal[open] summary {
    color: var(--blue);
    margin-bottom: 6px;
}

.riddle-ans {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
    border: 1px solid var(--border);
}

.riddle-ans a {
    font-size: 12px;
    color: var(--blue);
    white-space: nowrap;
}

/* Category Strip */
.category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.cat-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    box-shadow: var(--shadow-sm);
}

.cat-tile:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cat-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-tile:nth-child(even) .cat-tile-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.cat-tile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cat-tile-info strong {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.3;
}

.cat-tile-info small {
    font-size: 12px;
    color: var(--muted);
}

/* Content 2-Column Layout */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.main-col {
    min-width: 0;
}

.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.section-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    padding-left: 12px;
}

.section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--orange);
}

.section-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tab-chip {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
}

.tab-chip:hover,
.tab-chip.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* Joke Cards */
.joke-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.joke-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.joke-card:hover {
    border-color: #dfcab2;
    box-shadow: var(--shadow-md);
}

.joke-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cat-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 3px 10px;
    border-radius: 999px;
}

.cat-pill:hover {
    background: var(--blue);
    color: #fff;
}

.vibe-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--orange);
    background: var(--orange-soft);
    padding: 3px 9px;
    border-radius: 999px;
}

.joke-hot {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--muted);
}

.joke-hot svg {
    color: #ef6c4d;
}

.joke-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--ink);
}

.joke-title a:hover {
    color: var(--orange);
}

.joke-body {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ink-2);
    word-break: break-word;
}

.joke-body p {
    margin: 0 0 8px;
}

.joke-body p:last-child {
    margin-bottom: 0;
}

.punchline-box {
    margin-top: 12px;
    background: #f3f8fe;
    border: 1px dashed #b4d2ee;
    border-radius: 10px;
    padding: 10px 14px;
}

.punchline-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 2px;
}

.punchline-answer {
    font-size: 15px;
    font-weight: 600;
    color: #143f66;
}

.joke-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0ebe4;
}

.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.scene-tag {
    font-size: 12.5px;
    color: var(--muted);
    background: var(--surface-soft);
    padding: 3px 9px;
    border-radius: 6px;
}

.scene-tag:hover {
    color: var(--orange);
    background: var(--orange-soft);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--ink-2);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-soft);
}

.btn-fav.is-saved {
    background: var(--orange-soft);
    border-color: var(--orange);
    color: var(--orange);
}

.btn-detail {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    padding: 5px 4px;
}

.btn-detail:hover {
    color: var(--orange);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.side-tool-promo {
    background: linear-gradient(155deg, #fff8ef 0%, #ffffff 55%, #f0f7fd 100%);
    border-color: #ecd7be;
}

.side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.side-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.side-more {
    font-size: 12.5px;
    color: var(--blue);
    font-weight: 600;
}

.side-promo-desc {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
}

.quick-scene-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.quick-chip {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink-2);
}

.quick-chip:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rank-num.is-top {
    background: var(--orange);
    color: #fff;
}

.rank-link {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rank-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
}

.rank-link:hover .rank-title {
    color: var(--orange);
}

.rank-meta {
    font-size: 12px;
    color: var(--muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--ink-2);
    border: 1px solid transparent;
}

.cloud-tag em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--muted);
    margin-left: 2px;
}

.cloud-tag:hover {
    background: var(--orange-soft);
    border-color: #f4c69f;
    color: var(--orange);
}

.guide-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-mini-list li a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.guide-mini-list li a:hover {
    background: var(--blue-soft);
}

.guide-mini-list strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.45;
    margin-bottom: 4px;
}

.guide-mini-list span {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.side-clear-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.side-clear-btn:hover {
    color: var(--orange);
}

.fav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fav-empty {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.fav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface-soft);
    font-size: 13px;
}

.fav-item a {
    color: var(--ink);
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-item a:hover {
    color: var(--orange);
}

.fav-remove {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
}

/* Breadcrumb & Banner */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.page-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--orange);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.page-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-banner h1 {
    margin: 0 0 4px;
    font-size: 23px;
    color: var(--ink);
}

.page-banner p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-2);
}

/* Detail Page */
.detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
}

.detail-title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.38;
    color: var(--ink);
}

.detail-body {
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink-2);
}

.detail-body p {
    margin: 0 0 14px;
}

.tip-box {
    margin-top: 20px;
    background: #fff9f0;
    border: 1px solid #f2dac0;
    border-radius: 12px;
    padding: 15px 18px;
}

.tip-box-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: #b54d04;
    margin-bottom: 6px;
}

.tip-box p {
    margin: 0;
    font-size: 14.5px;
    color: #5c3a14;
    line-height: 1.75;
}

.detail-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--muted);
}

.adj-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.adj-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.adj-item:hover:not(.is-disabled) {
    border-color: var(--orange);
}

.adj-item small {
    font-size: 12px;
    color: var(--muted);
}

.adj-item strong {
    font-size: 14.5px;
    color: var(--ink);
}

.adj-next {
    text-align: right;
}

.adj-item.is-disabled {
    opacity: 0.6;
}

.related-block {
    margin-top: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-sm);
}

.related-card h3 {
    margin: 0;
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.45;
}

.related-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

/* Ranked */
.ranked-wrap {
    position: relative;
}

.rank-ribbon {
    display: inline-block;
    background: var(--ink-2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px 8px 0 0;
    margin-left: 16px;
}

.rank-ribbon.is-top {
    background: var(--orange);
}

/* Search Page */
.search-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
}

.search-hero h1 {
    margin: 0 0 14px;
    font-size: 22px;
}

.big-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.big-search-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 15px;
}

.big-search-form input:focus {
    outline: none;
    border-color: var(--orange);
}

.hot-search-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.hot-search-row a {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-2);
}

.hot-search-row a:hover {
    background: var(--orange-soft);
    color: var(--orange);
}

/* Random */
.random-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.random-box-head h1 {
    margin: 6px 0 0;
    font-size: 24px;
}

/* Tools Page */
.tool-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.tool-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.tool-head p {
    margin: 0 0 18px;
    font-size: 14.5px;
    color: var(--muted);
}

.tool-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.control-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.picker-chip {
    border: 1px solid var(--border-strong);
    background: var(--surface-soft);
    color: var(--ink-2);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.picker-chip:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.picker-chip.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    font-weight: 600;
}

.icebreaker-result {
    background: linear-gradient(135deg, #fffaf3 0%, #f3f8fe 100%);
    border: 1px solid #e5d5c1;
    border-radius: 14px;
    padding: 20px 22px;
}

.result-badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue);
    background: #fff;
    border: 1px solid #cce0f4;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.result-quote {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--ink);
}

.result-tip {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ink-2);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.riddle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.riddle-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.riddle-card-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 6px;
}

.riddle-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--ink);
}

.riddle-card-q {
    font-size: 14.5px;
    color: var(--ink-2);
    margin-bottom: 12px;
    flex: 1;
}

.riddle-card-q p {
    margin: 0 0 6px;
}

.riddle-reveal.is-card summary {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--border-strong);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.riddle-ans-full {
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}

.riddle-ans-full p {
    margin: 0 0 10px;
    font-size: 14.5px;
    color: var(--blue);
}

.riddle-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.formatter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.formatter-box label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.formatter-box textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 12px;
    font-size: 14.5px;
    line-height: 1.7;
    resize: vertical;
    background: #fff;
    color: var(--ink);
}

.formatter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Guides */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.guide-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.guide-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
}

.guide-card h2 a:hover {
    color: var(--orange);
}

.guide-card p {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--ink-2);
}

.guide-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0ebe4;
}

.guide-lead {
    font-size: 16px;
    color: var(--muted);
    background: var(--surface-soft);
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 22px;
}

.guide-article-body h2 {
    font-size: 20px;
    margin: 26px 0 10px;
    color: var(--ink);
}

.guide-article-body p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink-2);
    margin: 0 0 14px;
}

.guide-article-body blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--orange);
    background: var(--orange-soft);
    border-radius: 0 10px 10px 0;
    color: #6b3507;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.page-btn.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    font-weight: 700;
}

/* Empty & 404 */
.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
}

.empty-state h2,
.empty-state h1 {
    margin: 0 0 10px;
}

.empty-state p {
    color: var(--muted);
    margin: 0 0 20px;
}

.empty-state a:not(.btn-primary):not(.btn-outline) {
    color: var(--orange);
    font-weight: 600;
}

.code-404 {
    font-size: 56px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding-top: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-bottom: 12px;
}

.footer-desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-col h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--ink);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col li a {
    font-size: 13.5px;
    color: var(--muted);
}

.footer-col li a:hover {
    color: var(--orange);
}

.footer-bottom {
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.beian-link {
    color: var(--ink-2);
    font-weight: 500;
}

.beian-link:hover {
    color: var(--orange);
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: rgba(30, 36, 43, 0.94);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    max-width: calc(100vw - 32px);
    text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1060px) {
    .main-nav {
        display: none;
    }
    .header-search {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }
    .header-inner {
        min-height: 60px;
    }
    .brand-logo {
        height: 36px;
    }
    .announce-inner {
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .announce-action {
        display: none;
    }
    .hero-spotlight,
    .hero-side-panel,
    .joke-card,
    .detail-card,
    .tool-section {
        padding: 16px;
    }
    .hero-title {
        font-size: 20px;
    }
    .detail-title {
        font-size: 21px;
    }
    .riddle-grid,
    .formatter-grid,
    .related-grid,
    .adj-nav {
        grid-template-columns: 1fr;
    }
    .adj-next {
        text-align: left;
    }
    .big-search-form {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
