/* Warm Paper Design System (amao-design / WPDS)
   Style-only replacement: page copy and JavaScript content remain unchanged. */

:root {
    color-scheme: light;
    --warm-25: #fefcf9;
    --warm-50: #fdf8f0;
    --warm-100: #f7efe2;
    --warm-200: #eadfc9;
    --warm-300: #d9cbaf;
    --warm-400: #b8a58a;
    --warm-500: #a08d72;
    --warm-600: #7f6d55;
    --warm-700: #5c4f3e;
    --warm-800: #3f362a;
    --warm-900: #2a241c;
    --warm-950: #1a1611;
    --coral-400: #fb923c;
    --coral-500: #f97316;
    --coral-600: #ea580c;
    --coral-700: #c2410c;
    --page: var(--warm-50);
    --surface: var(--warm-25);
    --surface-soft: rgba(254, 252, 249, 0.76);
    --line: rgba(185, 165, 133, 0.42);
    --line-soft: rgba(217, 203, 175, 0.36);
    --heading: var(--warm-800);
    --text: var(--warm-900);
    --body: var(--warm-600);
    --muted: var(--warm-500);
    --accent: var(--coral-500);
    --accent-hover: var(--coral-600);
    --accent-pressed: var(--coral-700);
    --accent-soft: rgba(249, 115, 22, 0.09);
    --shadow-sm: 0 1px 3px rgba(42, 36, 28, 0.06);
    --shadow: 0 2px 8px rgba(42, 36, 28, 0.06), 0 1px 2px rgba(42, 36, 28, 0.04);
    --shadow-lg: 0 8px 24px rgba(42, 36, 28, 0.07), 0 2px 4px rgba(42, 36, 28, 0.04);
    --shadow-card: 0 20px 40px -15px rgba(42, 36, 28, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(42, 36, 28, 0.12);
    --ease-paper: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
    color-scheme: dark;
    --page: var(--warm-950);
    --surface: var(--warm-900);
    --surface-soft: rgba(42, 36, 28, 0.78);
    --line: rgba(92, 79, 62, 0.78);
    --line-soft: rgba(92, 79, 62, 0.48);
    --heading: var(--warm-50);
    --text: var(--warm-50);
    --body: var(--warm-400);
    --muted: var(--warm-400);
    --accent: var(--coral-400);
    --accent-hover: var(--coral-500);
    --accent-pressed: var(--coral-600);
    --accent-soft: rgba(251, 146, 60, 0.12);
    --shadow-sm: 0 1px 3px rgba(10, 8, 6, 0.18);
    --shadow: 0 2px 8px rgba(10, 8, 6, 0.22), 0 1px 2px rgba(10, 8, 6, 0.18);
    --shadow-lg: 0 8px 28px rgba(10, 8, 6, 0.28), 0 2px 4px rgba(10, 8, 6, 0.18);
    --shadow-card: 0 20px 44px -15px rgba(10, 8, 6, 0.34);
    --shadow-xl: 0 25px 55px -12px rgba(10, 8, 6, 0.42);
}

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

html {
    min-width: 320px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--page);
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 88px;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 4%, rgba(249, 115, 22, 0.11), transparent 28rem),
        radial-gradient(circle at 92% 14%, rgba(251, 146, 60, 0.10), transparent 24rem),
        radial-gradient(circle at 56% 92%, rgba(217, 203, 175, 0.22), transparent 34rem),
        var(--page);
    font-family: "Geist", "figmaSans Fallback", "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 15px;
    letter-spacing: -0.14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 99;
    content: "";
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

html.dark body::before { opacity: 0.04; }

button,
input {
    font: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.24);
    outline-offset: 3px;
}

button,
.fun-card {
    -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

/* Floating warm-paper navigation */
.fixed-nav {
    position: fixed;
    top: 14px;
    right: 0;
    left: 0;
    z-index: 20;
    height: 60px;
    padding: 0 22px;
    pointer-events: none;
}

.nav-inner {
    display: flex;
    width: min(100%, 1180px);
    height: 100%;
    margin: 0 auto;
    padding: 0 12px 0 10px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--heading);
    background: rgba(253, 248, 240, 0.76);
    border: 1px solid rgba(217, 203, 175, 0.48);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    pointer-events: auto;
}

html.dark .nav-inner { background: rgba(42, 36, 28, 0.76); }

.nav-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    color: #fefcf9;
    background: linear-gradient(135deg, var(--coral-400), var(--coral-600));
    border: 1px solid rgba(254, 252, 249, 0.34);
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-title {
    overflow: hidden;
    color: var(--heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-meta {
    color: var(--muted);
    font-family: "Geist Mono", "figmaMono Fallback", "SF Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 34px 22px 78px;
}

.home-wrap.hide { display: none; }

/* Hero */
.main-header {
    position: relative;
    max-width: 920px;
    padding: 70px 0 34px;
    text-align: left;
}

.main-header::before,
.main-header::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border-radius: 999px;
    filter: blur(1px);
}

.main-header::before {
    top: 28px;
    right: 7%;
    width: 154px;
    height: 154px;
    background: rgba(249, 115, 22, 0.08);
    box-shadow: -86px 78px 0 -38px rgba(217, 203, 175, 0.25);
    animation: paperFloat 18s var(--ease-paper) infinite alternate;
}

.main-header::after {
    top: 66px;
    right: 11%;
    width: 94px;
    height: 94px;
    border: 1px solid rgba(249, 115, 22, 0.24);
    box-shadow: 18px 20px 0 -13px rgba(249, 115, 22, 0.14);
    animation: paperFloat 24s var(--ease-paper) -7s infinite alternate-reverse;
}

@keyframes paperFloat {
    from { transform: translate3d(0, 0, 0) rotate(-4deg); }
    to { transform: translate3d(18px, -12px, 0) rotate(5deg); }
}

.eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 13px;
    align-items: center;
    gap: 9px;
    color: var(--accent-pressed);
    background: var(--accent-soft);
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 50px;
    font-family: "Geist Mono", "figmaMono Fallback", "SF Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.10);
}

.main-header h1 {
    position: relative;
    z-index: 1;
    max-width: none;
    color: var(--heading);
    font-size: clamp(2.8rem, 5.4vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.08;
    white-space: nowrap;
}

.main-header p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin-top: 28px;
    color: var(--body);
    font-size: clamp(1rem, 1.8vw, 1.14rem);
    line-height: 1.9;
}

.hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    margin-top: 27px;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    display: inline-flex;
    padding: 7px 12px;
    align-items: center;
    gap: 7px;
    color: var(--body);
    background: rgba(254, 252, 249, 0.64);
    border: 1px solid var(--line-soft);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    font-weight: 550;
}

.hero-meta span::before {
    width: 5px;
    height: 5px;
    content: "";
    background: var(--accent);
    border-radius: 999px;
}

html.dark .hero-meta span { background: rgba(42, 36, 28, 0.68); }

.tips-text {
    position: relative;
    display: flex;
    margin: 8px 0 36px;
    padding: 19px 22px 19px 25px;
    align-items: flex-start;
    color: var(--body);
    background: linear-gradient(110deg, rgba(254, 252, 249, 0.92), rgba(249, 115, 22, 0.055));
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow);
    font-size: 14px;
    line-height: 1.8;
}

.tips-text::before {
    width: 4px;
    align-self: stretch;
    margin-right: 15px;
    content: "";
    background: linear-gradient(var(--coral-400), var(--coral-600));
    border-radius: 999px;
}

.tips-text strong { color: var(--heading); }

/* Major browser */
.home-tools {
    display: flex;
    margin: 44px 0 20px;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
}

.section-kicker {
    color: var(--accent-pressed);
    font-family: "Geist Mono", "figmaMono Fallback", "SF Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-heading {
    margin-top: 6px;
    color: var(--heading);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.15;
}

.search-box {
    position: relative;
    width: min(100%, 320px);
}

.search-box label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.search-box::before {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 12px;
    height: 12px;
    z-index: 1;
    content: "";
    border: 1.8px solid var(--warm-500);
    border-radius: 999px;
    transform: translateY(-58%);
    pointer-events: none;
}

.search-box::after {
    position: absolute;
    top: calc(50% + 7px);
    left: 28px;
    width: 6px;
    height: 1.8px;
    z-index: 1;
    content: "";
    background: var(--warm-500);
    border-radius: 999px;
    transform: rotate(45deg);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 43px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50px;
    box-shadow: var(--shadow);
    outline: 0;
    transition: border-color 0.3s var(--ease-paper), box-shadow 0.3s var(--ease-paper), transform 0.3s var(--ease-paper);
}

.search-box input::placeholder { color: var(--warm-400); }

.search-box input:hover {
    border-color: rgba(249, 115, 22, 0.34);
    transform: translateY(-1px);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10), var(--shadow-lg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.fun-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 232px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text);
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease-paper), border-color 0.3s var(--ease-paper), box-shadow 0.3s var(--ease-paper);
}

.fun-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    content: "";
    background: radial-gradient(circle at 100% 0, rgba(249, 115, 22, 0.10), transparent 68%);
    pointer-events: none;
}

.fun-card:hover {
    z-index: 1;
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.fun-card:active { transform: translateY(-1px) scale(0.985); }

.card-icon {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    margin-bottom: 25px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    color: var(--accent-pressed);
    background: var(--accent-soft);
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 13px;
    font-family: "Geist Mono", "figmaMono Fallback", "SF Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.card-title {
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.35;
}

.card-desc {
    min-width: 0;
    margin: 0;
    flex: 1;
    color: var(--body);
    font-size: 12.5px;
    line-height: 1.7;
}

.card-btn {
    display: inline-flex;
    min-height: 36px;
    margin-top: 18px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    color: var(--accent-pressed);
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: color 0.3s var(--ease-paper), background 0.3s var(--ease-paper), border-color 0.3s var(--ease-paper), transform 0.3s var(--ease-paper);
}

.card-btn:hover {
    color: #fefcf9;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Full-width guide card */
.fun-card.notice-card {
    grid-column: 1 / -1;
    min-height: 274px;
    padding: 44px 46px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #fefcf9;
    text-align: left;
    background:
        radial-gradient(circle at 84% 20%, rgba(254, 252, 249, 0.17), transparent 12rem),
        linear-gradient(135deg, #f97316 0%, #ea580c 54%, #c2410c 100%);
    border: 1px solid rgba(254, 252, 249, 0.22);
    border-radius: 26px;
    box-shadow: 0 24px 52px -18px rgba(194, 65, 12, 0.42);
}

.fun-card.notice-card::before {
    top: auto;
    right: -40px;
    bottom: -65px;
    width: 260px;
    height: 260px;
    background: transparent;
    border: 1px solid rgba(254, 252, 249, 0.13);
    border-radius: 999px;
    box-shadow: -42px -56px 0 -34px rgba(254, 252, 249, 0.14);
}

.fun-card.notice-card::after {
    position: absolute;
    right: 24%;
    bottom: 34px;
    width: 72px;
    height: 8px;
    content: "";
    background: rgba(254, 252, 249, 0.72);
    border-radius: 999px;
    box-shadow: 18px 18px 0 rgba(254, 252, 249, 0.18);
    transform: rotate(-7deg);
    pointer-events: none;
}

.fun-card.notice-card:hover {
    border-color: rgba(254, 252, 249, 0.34);
    box-shadow: 0 30px 64px -20px rgba(194, 65, 12, 0.52);
    transform: translateY(-3px);
}

.fun-card.notice-card .notice-left {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 660px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.fun-card.notice-card .notice-left .card-icon {
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0 0 5px;
    padding: 7px 11px;
    color: #fefcf9;
    background: rgba(254, 252, 249, 0.13);
    border-color: rgba(254, 252, 249, 0.20);
    border-radius: 50px;
}

.fun-card.notice-card .notice-left .card-title {
    margin: 0;
    color: #fefcf9;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.05;
}

.fun-card.notice-card .notice-left .card-desc {
    max-width: 580px;
    margin: 3px 0 8px;
    color: rgba(254, 252, 249, 0.82);
    font-size: 14px;
    line-height: 1.75;
}

.fun-card.notice-card .notice-left .card-btn {
    min-height: 42px;
    margin-top: 4px;
    padding: 0 20px;
    color: #fefcf9;
    background: rgba(254, 252, 249, 0.14);
    border-color: rgba(254, 252, 249, 0.28);
    backdrop-filter: blur(10px);
}

.fun-card.notice-card .notice-left .card-btn:hover {
    color: var(--coral-700);
    background: #fefcf9;
    border-color: #fefcf9;
}

.fun-card.notice-card .notice-badge {
    position: relative;
    z-index: 1;
    display: grid;
    width: 132px;
    height: 132px;
    margin-left: 30px;
    place-items: center;
    flex: 0 0 auto;
    color: #fefcf9;
    background: rgba(254, 252, 249, 0.10);
    border: 1px solid rgba(254, 252, 249, 0.22);
    border-radius: 999px;
    box-shadow: inset 0 0 0 12px rgba(254, 252, 249, 0.055), 0 18px 38px rgba(124, 45, 18, 0.20);
    transform: rotate(7deg);
    backdrop-filter: blur(10px);
}

.fun-card.notice-card .notice-badge::before,
.fun-card.notice-card .notice-badge::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(254, 252, 249, 0.16);
    border-radius: 999px;
}

.fun-card.notice-card .notice-badge::before { inset: 12px; }
.fun-card.notice-card .notice-badge::after { inset: -12px; }

.notice-badge-mark {
    font-family: "Geist Mono", "figmaMono Fallback", "SF Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

/* Footer */
.site-footer {
    margin-top: 44px;
}

.site-footer-inner {
    display: flex;
    min-height: 66px;
    padding: 16px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.footer-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--heading);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.footer-heading .bi {
    color: var(--accent);
    font-size: 18px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 22px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s var(--ease-paper), transform 0.25s var(--ease-paper);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent-hover);
    outline: none;
    transform: translateY(-1px);
}

.footer-links a .bi {
    font-size: 11px;
}
/* Detail pages */
.module-box { display: none; }
.module-box.active { display: block; }

.split-line {
    height: 1px;
    margin-bottom: 30px;
    background: var(--line-soft);
}

.fade-page {
    display: none;
    animation: fadeUp 0.42s var(--ease-paper) both;
}

.fade-page.show { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-btn {
    appearance: none;
    display: inline-flex;
    min-height: 44px;
    margin: 0 0 22px;
    padding: 0 16px;
    align-items: center;
    gap: 8px;
    color: var(--accent-pressed);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: gap 0.3s var(--ease-paper), color 0.3s var(--ease-paper), border-color 0.3s var(--ease-paper), transform 0.3s var(--ease-paper), box-shadow 0.3s var(--ease-paper);
}

.back-btn:hover {
    gap: 11px;
    color: var(--accent-hover);
    border-color: rgba(249, 115, 22, 0.34);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.back-btn:active { transform: scale(0.98); }

.title-tip {
    display: block;
    width: fit-content;
    margin-bottom: 24px;
    padding-bottom: 12px;
    color: var(--heading);
    border-bottom: 3px solid var(--accent);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.15;
}

.tab-btn-group {
    display: flex;
    margin: 18px 0 22px;
    flex-wrap: wrap;
    gap: 9px;
}

.tab-btn {
    min-height: 44px;
    padding: 0 18px;
    color: var(--body);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.3s var(--ease-paper);
}

.tab-btn.active {
    color: #fefcf9;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    border-color: var(--coral-500);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.20);
}

.tab-btn:hover:not(.active) {
    color: var(--accent-pressed);
    background: var(--accent-soft);
    border-color: rgba(249, 115, 22, 0.28);
    transform: translateY(-1px);
}

.tab-btn:active { transform: scale(0.98); }

.tab-content {
    display: none;
    animation: fadeUp 0.36s var(--ease-paper) both;
}

.tab-content.show { display: block; }

.info-content {
    padding: 30px;
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.info-item { margin-bottom: 30px; }
.info-item:last-child { margin-bottom: 0; }

.info-title {
    display: flex;
    margin-bottom: 13px;
    padding-bottom: 12px;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.info-title::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    content: "";
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(45deg);
}

.list-item {
    padding: 10px 0;
    color: var(--body);
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    line-height: 1.78;
}

.list-item:last-child { border-bottom: 0; }

/* Tables */
.table-wrap {
    margin-top: 8px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

th,
td {
    padding: 12px 10px;
    text-align: center;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

th:last-child,
td:last-child { border-right: 0; }

th {
    color: var(--heading);
    background: var(--warm-100);
    font-weight: 700;
    white-space: nowrap;
}

html.dark th { background: rgba(92, 79, 62, 0.40); }

td {
    color: var(--body);
    background: var(--surface);
    vertical-align: middle;
}

tr:nth-child(even) td { background: rgba(247, 239, 226, 0.50); }
html.dark tr:nth-child(even) td { background: rgba(63, 54, 42, 0.56); }
tr:last-child td { border-bottom: 0; }

/* Notice detail grid */
.notice-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.notice-content-grid .info-item {
    margin-bottom: 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease-paper), border-color 0.3s var(--ease-paper), box-shadow 0.3s var(--ease-paper);
}

.notice-content-grid .info-item:hover {
    border-color: rgba(249, 115, 22, 0.24);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.notice-content-grid .info-item[style*="grid-column"] { grid-column: 1 / -1; }
.notice-content-grid .info-item .info-title { font-size: 15px; }

.notice-content-grid .info-item ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.notice-content-grid .info-item ul li {
    color: var(--body);
    font-size: 14px;
    line-height: 1.85;
}

.notice-content-grid .info-item ul li::marker { color: var(--accent); }

.empty-state {
    grid-column: 1 / -1;
    padding: 38px 20px;
    color: var(--muted);
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--warm-300);
    border-radius: 18px;
}

@media (max-width: 980px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .main-header::before { right: 2%; }
    .main-header::after { right: 7%; }
}

@media (max-width: 760px) {
    body { padding-top: 76px; }
    .fixed-nav { top: 10px; height: 54px; padding: 0 12px; }
    .nav-inner { padding-right: 8px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
    .nav-title { font-size: 14px; }
    .nav-meta { display: none; }
    .container { padding: 18px 16px 58px; }
    .site-footer { margin-top: 34px; }
    .site-footer-inner { padding: 15px 17px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .footer-links { justify-content: flex-start; }
    .main-header { padding: 48px 0 28px; }
    .main-header::before { top: 18px; right: -22px; width: 110px; height: 110px; }
    .main-header::after { top: 47px; right: 2px; width: 68px; height: 68px; }
    .main-header h1 { font-size: clamp(1.6rem, 7.8vw, 3.5rem); }
    .home-tools { margin-top: 38px; align-items: stretch; flex-direction: column; gap: 17px; }
    .search-box { width: 100%; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .fun-card.notice-card { align-items: flex-start; flex-direction: column; padding: 34px 28px; }
    .fun-card.notice-card .notice-badge { display: none; }
    .notice-content-grid { grid-template-columns: 1fr; }
    .notice-content-grid .info-item[style*="grid-column"] { grid-column: auto; }
}

@media (max-width: 480px) {
    .container { padding-right: 13px; padding-left: 13px; }
    .nav-title { max-width: 230px; }
    .main-header { padding-top: 42px; }
    .main-header h1 { font-size: clamp(1.6rem, 7.8vw, 2.35rem); }
    .main-header p { margin-top: 22px; font-size: 0.96rem; }
    .hero-meta { gap: 7px; }
    .hero-meta span { padding: 6px 9px; font-size: 11px; }
    .tips-text { padding: 17px; font-size: 13px; }
    .tips-text::before { margin-right: 11px; }
    .card-grid { gap: 9px; }
    .fun-card { min-height: 220px; padding: 16px 14px; border-radius: 16px; }
    .card-icon { min-width: 38px; height: 38px; margin-bottom: 20px; padding: 0 9px; border-radius: 12px; }
    .card-title { font-size: 15px; }
    .card-desc { font-size: 11.5px; line-height: 1.62; }
    .card-btn { min-height: 34px; margin-top: 14px; padding: 0 11px; font-size: 11px; }
    .fun-card.notice-card { grid-column: 1 / -1; min-height: 235px; padding: 28px 20px; border-radius: 22px; }
    .fun-card.notice-card .notice-left .card-title { font-size: 2rem; }
    .fun-card.notice-card .notice-left .card-desc { font-size: 13px; }
    .info-content { padding: 18px; border-radius: 20px; }
    .notice-content-grid .info-item { padding: 18px; }
    .title-tip { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* Bootstrap Icons integration */
.bi {
    display: inline-block;
    flex: 0 0 auto;
    line-height: 1;
}

.nav-inner {
    justify-content: flex-start;
}

.brand-mark .bi {
    font-size: 18px;
}

.section-heading {
    margin-top: 0;
}

.search-box::before,
.search-box::after {
    display: none;
}

.search-box > .bi {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 1;
    color: var(--warm-500);
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.3s var(--ease-paper), transform 0.3s var(--ease-paper);
}

.search-box:focus-within > .bi {
    color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}

.card-icon .bi {
    color: inherit;
    font-size: 19px;
}

.fun-card:hover > .card-icon .bi {
    transform: scale(1.08) rotate(-3deg);
}

.card-icon .bi,
.card-btn .bi,
.back-btn .bi,
.tab-btn .bi {
    transition: transform 0.3s var(--ease-paper);
}

.card-btn {
    gap: 7px;
}

.card-btn:hover .bi {
    transform: translateX(3px);
}

.back-btn .bi {
    font-size: 15px;
}

.back-btn:hover .bi {
    transform: translateX(-3px);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tab-btn .bi {
    font-size: 14px;
}

.fun-card.notice-card .notice-left .card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    margin-bottom: 6px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
}

.fun-card.notice-card .notice-left .card-icon .bi {
    font-size: 22px;
}

.fun-card.notice-card .notice-badge > .bi {
    color: #fefcf9;
    font-size: 38px;
}

@media (max-width: 480px) {
    .card-icon .bi {
        font-size: 17px;
    }

    .fun-card.notice-card .notice-left .card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}

/* Search interaction */
.search-area {
    width: min(100%, 360px);
}

.search-area .search-box {
    width: 100%;
}

.search-box input {
    padding-right: 48px;
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: var(--warm-500);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s var(--ease-paper), background-color 0.2s var(--ease-paper), transform 0.2s var(--ease-paper);
}

.search-clear[hidden] {
    display: none;
}

.search-clear:hover,
.search-clear:focus-visible {
    color: var(--accent-hover);
    background: var(--accent-soft);
    outline: none;
}

.search-clear:active {
    transform: translateY(-50%) scale(0.94);
}

.search-summary {
    min-height: 20px;
    margin: 8px 14px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.major-card.is-filtered {
    display: none;
}

.search-match {
    display: -webkit-box;
    width: 100%;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--accent-hover);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-match[hidden] {
    display: none;
}

.empty-state {
    display: flex;
    min-height: 260px;
    padding: 36px 24px;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.48);
    border: 1px dashed var(--line);
    border-radius: 24px;
}

.empty-state > .bi {
    margin-bottom: 4px;
    color: var(--warm-400);
    font-size: 28px;
}

.empty-state strong {
    color: var(--heading);
    font-size: 17px;
}

.empty-state span {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.7;
}

.empty-clear-btn {
    min-height: 38px;
    margin-top: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.18);
    transition: background-color 0.2s var(--ease-paper), transform 0.2s var(--ease-paper);
}

.empty-clear-btn:hover,
.empty-clear-btn:focus-visible {
    background: var(--accent-hover);
    outline: none;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .search-area {
        width: 100%;
    }

    .search-summary {
        margin-left: 12px;
    }
}
