:root {
    --accent: #ff5a3c;
    --accent-strong: #ff3d27;
    --accent-soft: rgba(255, 90, 60, 0.14);
    --page: #08090d;
    --page-bg: #08090d;
    --surface: #101116;
    --surface-strong: #17181f;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f6f7fb;
    --muted: #9195a3;
    --header: rgba(8, 9, 13, 0.88);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --brand-logo-bg: #f56600;
    --brand-logo-mark: #ffffff;
}

html[data-home-theme="orange"] {
    --accent: #f56600;
    --accent-strong: #dc5600;
    --accent-soft: rgba(245, 102, 0, 0.14);
    --page: #fff5eb;
    --page-bg: linear-gradient(180deg, #fffaf5 0%, #fff1e1 32%, #fff8f0 66%, #fff0df 100%);
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #fff0e2;
    --line: rgba(41, 50, 68, 0.12);
    --text: #1c2330;
    --muted: #667085;
    --header: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(25, 35, 52, 0.16);
    --brand-logo-bg: #f56600;
    --brand-logo-mark: #ffffff;
}

html[data-home-theme="orange"] body {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--page-bg) no-repeat;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    letter-spacing: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 0 30px;
    border-top: 3px solid var(--accent);
    border-bottom: 1px solid var(--line);
    background: var(--header);
    backdrop-filter: blur(18px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: transparent;
}

.brand-icon {
    display: block;
    width: 36px;
    height: 36px;
}

.brand-icon-bg,
.brand-icon-mark {
    transition: fill 0.3s ease;
}

.brand-icon-bg {
    fill: var(--brand-logo-bg);
}

.brand-icon-mark {
    fill: var(--brand-logo-mark);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 16px;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    min-width: 84px;
    padding: 10px 18px;
    border-radius: 7px;
    color: var(--muted);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--surface-strong);
}

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 9px 22px rgba(245, 102, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-login:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff7914, #d94d00);
    box-shadow: 0 12px 28px rgba(245, 102, 0, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-login:active { transform: translateY(0); }
.nav-login i { font-size: 15px; }

.theme-switch {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 102px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.3s ease;
}

.theme-switch:hover {
    border-color: var(--accent);
}

.theme-switch-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 42px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    color: var(--muted);
    background: var(--surface-strong);
    font-size: 10px;
}

.theme-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.25s ease;
}

html[data-home-theme="orange"] .theme-switch-thumb {
    transform: translateX(20px);
}

.theme-switch-label {
    width: 30px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 465px;
    padding: 28px 0 18px;
}

.hero::before {
    position: absolute;
    top: -160px;
    left: 50%;
    width: 1000px;
    height: 460px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, var(--accent-soft), transparent 67%);
    content: "";
    pointer-events: none;
}

.hero-kicker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
}

.hero-kicker span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.carousel {
    position: relative;
    width: min(calc(100% - 64px), 1880px);
    height: 335px;
    margin: 0 auto;
}

.carousel-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 12px;
    left: 50%;
    overflow: hidden;
    width: min(66vw, 1160px);
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-50%) scale(0.84);
    box-shadow: var(--shadow);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, filter 0.45s ease;
}

.hero-slide.is-active {
    z-index: 3;
    top: 0;
    height: 325px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.hero-slide.is-prev,
.hero-slide.is-next {
    z-index: 1;
    opacity: 0.58;
    filter: brightness(0.5) saturate(0.8);
    pointer-events: none;
}

.hero-slide.is-prev {
    transform: translateX(-114%) scale(0.84);
}

.hero-slide.is-next {
    transform: translateX(14%) scale(0.84);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 8, 12, 0.9) 0%, rgba(7, 8, 12, 0.64) 44%, rgba(7, 8, 12, 0.06) 78%);
}

.slide-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(28px, 5vw, 72px);
    width: min(70%, 570px);
    transform: translateY(-50%);
    color: #fff;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(8, 9, 13, 0.52);
    font-size: 11px;
    font-weight: 700;
}

.slide-tag i {
    color: var(--accent);
    font-size: 7px;
}

.slide-content h1,
.slide-content h2 {
    margin: 20px 0 10px;
    font-size: clamp(26px, 2.4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.slide-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
}

.slide-content a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 11px 18px;
    border-radius: 6px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.slide-content a:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
}

.carousel-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(8, 9, 13, 0.48);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
    color: #fff;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 78%, transparent);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 34px;
}

.carousel-next {
    right: 34px;
}

.carousel-dots {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 28px;
}

.carousel-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--muted);
    opacity: 0.42;
    cursor: pointer;
    transition: width 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.carousel-dots button.is-active {
    width: 30px;
    background: var(--accent);
    opacity: 1;
}

html[data-home-theme="orange"] .hero-kicker {
    color: #743000;
    font-weight: 600;
}

.header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

html[data-home-theme="orange"] .hero {
    border-bottom: 1px solid rgba(245, 102, 0, 0.3);
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.52), transparent 30%),
        linear-gradient(112deg, #fff0df 0%, #ffc98f 48%, #f47b28 100%);
    background-size: 100% 100%, 100% 100%;
}

html[data-home-theme="orange"] .hero-kicker span {
    box-shadow: 0 0 10px rgba(237, 108, 0, 0.65);
}

html[data-home-theme="orange"] .hero::before {
    top: -70px;
    width: min(92vw, 1460px);
    height: 280px;
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    border-bottom: 1px solid rgba(245, 102, 0, 0.16);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 246, 235, 0.28), rgba(245, 102, 0, 0));
}

html[data-home-theme="orange"] .carousel-dots button {
    background: rgba(237, 108, 0, 0.32);
    opacity: 1;
}

html[data-home-theme="orange"] .carousel-dots button.is-active {
    background: var(--accent);
}

html[data-home-theme="orange"] .site-header {
    box-shadow: 0 8px 30px rgba(25, 35, 52, 0.08);
}

/* 橙色主题：导航胶囊改为白色浮起 + 橙色高亮，去掉厚重的米黄块 */
html[data-home-theme="orange"] .nav-link {
    border: 1px solid transparent;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-home-theme="orange"] .nav-link:hover {
    color: #c45100;
    background: #fff3e9;
}

html[data-home-theme="orange"] .nav-link.active {
    color: #c45100;
    border-color: rgba(245, 102, 0, 0.2);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(25, 35, 52, 0.09);
}

/* 橙色主题：轮播保持明亮，图片不再被黑色遮罩压暗。 */
html[data-home-theme="orange"] .hero-slide {
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 72px rgba(25, 35, 52, 0.22);
}

html[data-home-theme="orange"] .slide-shade {
    background: linear-gradient(90deg, rgba(255, 248, 239, 0.86) 0%, rgba(255, 248, 239, 0.46) 44%, rgba(255, 255, 255, 0.04) 82%);
}

html[data-home-theme="orange"] .hero-slide.is-prev,
html[data-home-theme="orange"] .hero-slide.is-next {
    opacity: 0.7;
    filter: brightness(1) saturate(1) !important;
}

html[data-home-theme="orange"] .slide-content {
    color: #5c2600;
}

html[data-home-theme="orange"] .slide-content h1,
html[data-home-theme="orange"] .slide-content h2 {
    color: #5c2600;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.7);
}

html[data-home-theme="orange"] .slide-content p {
    color: #6f4a2e;
}

html[data-home-theme="orange"] .slide-tag {
    border-color: rgba(245, 102, 0, 0.35);
    color: #8b3a00;
    background: rgba(255, 255, 255, 0.72);
}

html[data-home-theme="orange"] .slide-tag i {
    color: #ed6c00;
}

.tool-section {
    width: calc(100% - 64px);
    max-width: none;
    margin: 0 auto 70px;
    padding: 20px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tool-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 46px;
    padding: 0 4px 14px;
}

.tool-heading h2 {
    display: inline;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.tool-heading p {
    display: inline;
    margin: 0 0 0 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

/* 分类标签暂时隐藏（产品要求），恢复时删除本条规则即可 */
.tool-tabs {
    display: none;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--page);
}

.tool-tabs button {
    padding: 8px 14px;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tool-tabs button span {
    margin-left: 3px;
    opacity: 0.68;
}

.tool-tabs button.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 18px var(--accent-soft);
}

.tool-count {
    justify-self: end;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.tool-scroller-wrap {
    position: relative;
    padding: 8px 0 10px;
}

.tool-scroller {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    padding: 3px 4px 6px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
}

.tool-scroller::-webkit-scrollbar {
    display: none;
}

.tool-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 126px;
    flex: 0 0 clamp(190px, 12vw, 240px);
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: #fff;
    background: #161922;
    isolation: isolate;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card::before,
.tool-card::after {
    position: absolute;
    z-index: -1;
    content: "";
}

.tool-card::before {
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 9, 15, 0.94) 8%, rgba(7, 9, 15, 0.54) 70%, transparent);
}

.tool-card::after {
    top: -58px;
    right: -30px;
    width: 145px;
    height: 145px;
    border: 18px solid var(--card-tone);
    border-radius: 50%;
    opacity: 0.28;
    box-shadow: 0 0 40px var(--card-tone);
}

.tool-card:hover {
    z-index: 2;
    border-color: var(--card-tone);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.tool-card strong {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 800;
}

.tool-card small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-icon {
    position: absolute;
    top: 20px;
    right: 18px;
    color: var(--card-tone);
    font-size: 26px;
    filter: drop-shadow(0 0 12px var(--card-tone));
}

.tool-hot,
.tool-new {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    background: var(--card-tone);
    font-size: 9px;
    font-weight: 700;
}

.tone-coral { --card-tone: #ff5b55; }
.tone-violet { --card-tone: #9b62ff; }
.tone-blue { --card-tone: #4285ff; }
.tone-green { --card-tone: #2dd4a7; }
.tone-orange { --card-tone: #ff8a1f; }
.tone-cyan { --card-tone: #25c9da; }
.tone-red { --card-tone: #ff3f6c; }
.tone-gold { --card-tone: #f5bd38; }

.tool-scroll {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(8, 9, 13, 0.52);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(9px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.tool-scroll:hover {
    color: #fff;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 76%, transparent);
    transform: translateY(-50%) scale(1.08);
}

.tool-scroll-prev { left: -10px; }
.tool-scroll-next { right: -10px; }

body.tool-video-modal-open { overflow: hidden; }

.tool-video-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(17, 22, 31, 0.72);
}

.tool-video-modal[hidden] {
    display: none;
}

.tool-video-modal-panel {
    overflow: hidden;
    width: min(960px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: #151a22;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.46);
}

.tool-video-modal-header {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 14px 0 20px;
    color: #fff;
}

.tool-video-modal-header h2 {
    margin: 0;
    font-size: 17px;
}

.tool-video-modal-hint {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.tool-video-modal-close {
    display: grid;
    width: 34px;
    height: 34px;
    margin-left: 14px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    place-items: center;
}

.tool-video-modal-close:hover,
.tool-video-modal-close:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    outline: none;
}

.tool-video-modal-player {
    display: block;
    width: 100%;
    max-height: calc(100vh - 130px);
    background: #000;
}

/* 橙色主题：使用明亮的橙白科技面板，工具图片作为卡片主视觉。 */
html[data-home-theme="orange"] .tool-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
    padding: 34px max(32px, calc((100% - 1940px) / 2)) 40px;
    border-width: 1px 0;
    border-color: rgba(245, 102, 0, 0.28);
    border-radius: 0;
    color: #2a211c;
    background: linear-gradient(115deg, #ffead5 0%, #ffc58f 48%, #f98a36 100%);
    box-shadow: 0 26px 62px rgba(177, 78, 0, 0.18);
}

html[data-home-theme="orange"] .tool-heading {
    position: relative;
    z-index: 1;
    padding-right: 4px;
    padding-left: 4px;
}

html[data-home-theme="orange"] .tool-heading h2 {
    display: inline-block;
    padding-bottom: 10px;
    color: #6d2c00;
    background: linear-gradient(90deg, #f56600, rgba(245, 102, 0, 0)) left bottom / 52px 3px no-repeat;
}

html[data-home-theme="orange"] .tool-heading p,
html[data-home-theme="orange"] .tool-count {
    color: #7b4b2b;
}

html[data-home-theme="orange"] .tool-scroller-wrap {
    z-index: 1;
}

html[data-home-theme="orange"] .tool-scroller {
    padding-right: 42px;
    padding-left: 42px;
}

html[data-home-theme="orange"] .tool-card {
    border-color: rgba(255, 255, 255, 0.78);
    color: #2b211c;
    background-color: #fff8f1;
    background-position: center;
    background-size: cover;
    box-shadow: 0 14px 30px rgba(132, 58, 0, 0.2);
}

html[data-home-theme="orange"] .tool-card[data-tool-image="1"] { background-image: url('/static/admin/images/1.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="2"] { background-image: url('/static/admin/images/2.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="3"] { background-image: url('/static/admin/images/3.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="4"] { background-image: url('/static/admin/images/4.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="5"] { background-image: url('/static/admin/images/5.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="6"] { background-image: url('/static/admin/images/6.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="7"] { background-image: url('/static/admin/images/7.jpg'); }
html[data-home-theme="orange"] .tool-card[data-tool-image="8"] { background-image: url('/static/admin/images/8.jpg'); }

html[data-home-theme="orange"] .tool-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 248, 240, 0.36) 42%, rgba(76, 36, 12, 0.48) 100%);
}

html[data-home-theme="orange"] .tool-card::after {
    border-color: rgba(255, 255, 255, 0.72);
    opacity: 0.22;
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.62);
}

html[data-home-theme="orange"] .tool-card strong,
html[data-home-theme="orange"] .tool-card small {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 8px rgba(31, 15, 5, 0.55);
}

html[data-home-theme="orange"] .tool-card small {
    color: rgba(255, 255, 255, 0.86);
}

html[data-home-theme="orange"] .tool-card:hover {
    border-color: var(--card-tone);
    box-shadow: 0 18px 40px rgba(132, 58, 0, 0.28);
    transform: translateY(-3px);
}

html[data-home-theme="orange"] .tool-scroll {
    border-color: rgba(255, 255, 255, 0.68);
    color: #8b3a00;
    background: rgba(255, 247, 238, 0.76);
}

/* 关于我们作为完整内容带衔接工具区与页脚，不再做悬浮卡片。 */
html[data-home-theme="orange"] .about-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    min-height: 260px;
    margin: 0;
    padding: 64px max(48px, calc((100% - 1400px) / 2));
    border-width: 0 0 1px;
    border-color: rgba(41, 50, 68, 0.12);
    border-radius: 0;
    background:
        repeating-linear-gradient(135deg, transparent 0 36px, rgba(245, 102, 0, 0.055) 36px 37px),
        linear-gradient(105deg, #fffdfb 0%, #fff5ea 54%, #ffe5cb 100%);
    box-shadow: none;
}

html[data-home-theme="orange"] .about-section::before {
    position: absolute;
    top: 0;
    left: 0;
    width: min(34%, 520px);
    height: 3px;
    background: linear-gradient(90deg, #f56600, #ff9a4f 56%, transparent);
    content: "";
}

html[data-home-theme="orange"] .about-heading h2 {
    background: linear-gradient(120deg, #3e281a 24%, #bb4800 74%, #7a2a00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-home-theme="orange"] .site-footer {
    min-height: 82px;
    border-top-color: rgba(41, 50, 68, 0.08);
    color: #7b4b2b;
    background: linear-gradient(180deg, #fffaf5, #fff0e1);
}

/* 橙色主题：登录按钮与轮播 CTA 用橙色渐变提升质感 */
html[data-home-theme="orange"] .nav-login {
    border-color: rgba(255, 255, 255, 0.42);
    background: linear-gradient(135deg, #ff861f 0%, #f56600 48%, #df5000 100%);
    box-shadow: 0 10px 24px rgba(223, 80, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html[data-home-theme="orange"] .nav-login:hover {
    background: linear-gradient(135deg, #ff922f 0%, #ef6000 52%, #cf4700 100%);
    box-shadow: 0 13px 30px rgba(223, 80, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-home-theme="orange"] .slide-content a {
    background: linear-gradient(135deg, #ff8a1f, #e05e00);
    box-shadow: 0 10px 26px rgba(237, 108, 0, 0.32);
}

html[data-home-theme="orange"] .slide-content a:hover {
    background: linear-gradient(135deg, #ff7d05, #d45d00);
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    align-items: center;
    gap: 52px;
    width: calc(100% - 64px);
    max-width: 1400px;
    min-height: 230px;
    margin: 0 auto 70px;
    padding: 44px 52px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-heading span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.about-heading h2 {
    margin: 10px 0 0;
    font-size: 27px;
}

.about-section > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.about-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 7px;
    color: var(--accent);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.about-action:hover {
    color: #fff;
    background: var(--accent);
    transform: translateX(3px);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 18px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.footer-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
}

.footer-meta a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.police-badge {
    display: block;
    width: 17px;
    height: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.site-footer a:hover {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 20px;
    }

    .hero-slide {
        width: 72vw;
    }

    .hero-slide.is-prev { transform: translateX(-108%) scale(0.82); }
    .hero-slide.is-next { transform: translateX(8%) scale(0.82); }

    .tool-heading {
        grid-template-columns: 1fr auto;
    }

    .tool-tabs {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-self: start;
    }

    .tool-count {
        grid-column: 2;
        grid-row: 1;
    }

    .about-section {
        grid-template-columns: 1fr 1.4fr auto;
    }
}

@media (max-width: 760px) {
    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        gap: 10px;
        min-height: 68px;
        padding: 8px 12px;
    }

    .brand-copy small,
    .theme-switch-label {
        display: none;
    }

    .nav-link {
        min-width: 0;
        padding: 8px 13px;
        font-size: 13px;
    }

    .nav-login {
        min-width: 82px;
        height: 40px;
        padding: 0 16px;
    }

    .theme-switch {
        min-width: 0;
        padding: 7px;
    }

    .hero {
        min-height: 415px;
        padding-top: 20px;
    }

    .hero-kicker {
        margin-bottom: 12px;
    }

    .carousel {
        height: 330px;
    }

    .hero-slide,
    .hero-slide.is-active {
        top: 0;
        width: calc(100vw - 32px);
        height: 310px;
    }

    .hero-slide.is-prev { transform: translateX(-151%) scale(0.9); }
    .hero-slide.is-next { transform: translateX(51%) scale(0.9); }

    .slide-content {
        left: 24px;
        width: calc(100% - 48px);
    }

    .slide-content h1,
    .slide-content h2 {
        margin-top: 16px;
        font-size: 25px;
    }

    .slide-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .carousel-arrow {
        top: auto;
        bottom: 32px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .carousel-prev { left: 24px; }
    .carousel-next { right: 24px; }

    .carousel-dots {
        z-index: 10;
        margin-top: -15px;
    }

    .tool-section {
        width: calc(100% - 24px);
        margin-bottom: 46px;
        padding: 16px 12px 12px;
    }

    html[data-home-theme="orange"] .tool-section {
        width: 100%;
        margin-bottom: 0;
        padding: 24px 16px 28px;
    }

    html[data-home-theme="orange"] .tool-scroller {
        padding-right: 4px;
        padding-left: 4px;
    }

    .tool-heading {
        display: block;
    }

    .tool-heading h2,
    .tool-heading p {
        display: block;
    }

    .tool-heading p {
        margin: 5px 0 13px;
    }

    .tool-tabs {
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .tool-tabs button {
        flex: 0 0 auto;
        padding: 8px 12px;
    }

    .tool-count {
        display: none;
    }

    .tool-scroller {
        width: 100%;
    }

    .tool-card { flex-basis: 78vw; }

    .tool-scroll {
        display: none !important;
    }

    .tool-video-modal {
        padding: 14px;
    }

    .tool-video-modal-header {
        min-height: 50px;
        padding-left: 14px;
    }

    .tool-video-modal-hint {
        font-size: 11px;
    }

    .about-section {
        display: block;
        width: calc(100% - 32px);
        margin-bottom: 46px;
        padding: 36px 8px;
    }

    html[data-home-theme="orange"] .about-section {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 44px 24px 48px;
    }

    .about-heading h2 {
        font-size: 24px;
    }

    .about-section > p {
        margin: 18px 0 22px;
    }

    .about-action {
        width: max-content;
    }

    .site-footer {
        padding: 16px 12px;
    }

    .footer-meta {
        gap: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
