/* ===== 基础重置与全局变量 ===== */
:root {
    --primary: #b3523c;
    --primary-dark: #8e3e2c;
    --primary-light: #d48a6e;
    --accent: #f0a080;
    --bg: #fdf8f2;
    --bg-card: #ffffff;
    --text-main: #2d2a26;
    --text-secondary: #5e4a3e;
    --text-light: #9b7b6b;
    --border: #f0dac8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
    --nav-bg: rgba(255,248,240,.92);
    --footer-bg: #2e2620;
    --footer-text: #e0d2c5;
    --footer-link: #d9b9a5;
    --banner-gradient: linear-gradient(135deg, #fae3d1 0%, #f5d5c0 40%, #eec3a8 100%);
    --glass-bg: rgba(255,255,255,.7);
    --glass-border: rgba(255,255,255,.4);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #c46a4e;
        --primary-dark: #a04e36;
        --primary-light: #e8987a;
        --accent: #f0b090;
        --bg: #1e1b18;
        --bg-card: #2c2621;
        --text-main: #e7ddd3;
        --text-secondary: #cbb9a8;
        --text-light: #9b7b6b;
        --border: #3e342c;
        --shadow-sm: 0 2px 8px rgba(0,0,0,.2);
        --shadow-md: 0 4px 16px rgba(0,0,0,.3);
        --shadow-lg: 0 8px 30px rgba(0,0,0,.4);
        --nav-bg: rgba(30,27,24,.92);
        --footer-bg: #171412;
        --footer-text: #cbb9a8;
        --footer-link: #d9b9a5;
        --banner-gradient: linear-gradient(135deg, #2c2621 0%, #3e342c 40%, #4a3f38 100%);
        --glass-bg: rgba(44,38,33,.7);
        --glass-border: rgba(255,255,255,.1);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== 导航栏 ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 20px rgba(0,0,0,.05);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 1;
    transition: transform .3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: var(--primary-light);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    position: relative;
    padding: 6px 2px;
    transition: color .3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width .3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-btn:hover {
    background: rgba(179,82,60,.1);
    transform: rotate(90deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    backdrop-filter: blur(20px);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 12px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(179,82,60,.08);
    color: var(--primary);
    padding-left: 14px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.95rem;
    margin: 24px 0 12px;
    color: var(--text-light);
    align-items: center;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
}

/* ===== 站内搜索 ===== */
.search-box {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(179,82,60,.12);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(179,82,60,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(179,82,60,.4);
}

/* ===== Banner轮播 ===== */
.banner {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 48px 48px;
    background: var(--banner-gradient);
    margin-bottom: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,.08);
}

.slides {
    display: flex;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    padding: 100px 40px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.slide::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(179,82,60,.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.slide h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(255,255,255,.3);
    animation: fadeInUp .8s ease both;
    position: relative;
    z-index: 1;
}

.slide p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.8;
    animation: fadeInUp .8s ease .2s both;
    position: relative;
    z-index: 1;
}

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

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(179,82,60,.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp .8s ease .4s both;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179,82,60,.4);
    color: #fff;
}

.btn:active {
    transform: translateY(-1px);
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(179,82,60,.2);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,.6);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(179,82,60,.5);
}

.dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

/* ===== 数字统计 ===== */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 48px 24px;
    border-radius: var(--radius-xl);
    margin: 48px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
}

.stat-item {
    text-align: center;
    padding: 12px 24px;
    flex: 1;
    min-width: 150px;
}

.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== 区块标题 ===== */
.section {
    margin: 72px 0;
}

.sec-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-main);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    position: relative;
}

.sec-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 3px;
}

/* ===== 卡片网格 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.card strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 文章卡片 ===== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.article-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 5px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.article-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.article-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}

.article-item:hover::after {
    transform: scaleX(1);
}

.article-item .date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.article-item h4 {
    font-size: 1.15rem;
    margin: 8px 0 12px;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 600;
}

.article-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.read-more::after {
    content: '→';
    transition: transform .3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.faq-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.faq-q {
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1.05rem;
    user-select: none;
    transition: var(--transition);
}

.faq-q:hover {
    color: var(--primary);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .4s cubic-bezier(.4,0,.2,1);
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-item.open .faq-a {
    max-height: 400px;
    padding-bottom: 20px;
}

.faq-item.open .faq-q::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-q::after {
    content: "+";
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform .4s ease;
    margin-left: 16px;
    line-height: 1;
}

.faq-item.open {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(179,82,60,.1);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer h5 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer li:hover {
    transform: translateX(4px);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,.6);
    background: rgba(0,0,0,.2);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    border: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(179,82,60,.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(179,82,60,.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

/* ===== 滚动动画 ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 卡片悬停特效 ===== */
.grid-2 .card:nth-child(odd) {
    transform: rotate(-0.5deg);
}

.grid-2 .card:nth-child(even) {
    transform: rotate(0.5deg);
}

.grid-2 .card:hover {
    transform: rotate(0deg) translateY(-6px);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .slide {
        padding: 80px 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .mobile-menu.open {
        display: flex;
        animation: slideDown .3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .slide {
        padding: 60px 16px;
    }
    
    .slide h2 {
        font-size: 1.8rem;
    }
    
    .slide p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .stats {
        padding: 32px 16px;
        gap: 16px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 8px;
    }
    
    .stat-num {
        font-size: 2rem;
    }
    
    .sec-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 24px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        padding: 12px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .slide {
        padding: 48px 12px;
    }
    
    .slide h2 {
        font-size: 1.5rem;
    }
    
    .stats {
        padding: 24px 12px;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-num {
        font-size: 1.6rem;
    }
    
    .footer-cols {
        grid-template-columns: 1fr;
    }
    
    .banner {
        border-radius: 0 0 32px 32px;
    }
    
    .faq-item {
        padding: 0 16px;
    }
    
    .faq-q {
        font-size: 0.95rem;
        padding: 16px 0;
    }
}

/* ===== 暗色模式优化 ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg);
        color: var(--text-main);
    }
    
    .nav {
        background: var(--nav-bg);
        border-bottom-color: var(--border);
    }
    
    .card, .article-item, .faq-item, .stats {
        background: var(--bg-card);
        color: var(--text-main);
        box-shadow: var(--shadow-md);
    }
    
    .card p, .article-item p, .stat-label, .faq-a {
        color: var(--text-secondary);
    }
    
    .slide p {
        color: var(--text-secondary);
    }
    
    .slide h2 {
        color: var(--text-main);
        text-shadow: 0 2px 20px rgba(0,0,0,.3);
    }
    
    .btn {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        box-shadow: 0 4px 15px rgba(196,106,78,.3);
    }
    
    .footer {
        background: var(--footer-bg);
    }
    
    .footer h5 {
        color: #fff;
    }
    
    .footer a {
        color: var(--footer-link);
    }
    
    .footer a:hover {
        color: #fff;
    }
    
    .search-box input {
        background: var(--bg-card);
        color: var(--text-main);
        border-color: var(--border);
    }
    
    .search-box input:focus {
        border-color: var(--primary);
    }
    
    .breadcrumb span {
        color: var(--text-light);
    }
    
    .faq-q {
        color: var(--text-main);
    }
    
    .faq-q:hover {
        color: var(--primary);
    }
    
    .card::before {
        background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
    }
    
    .article-item {
        border-left-color: var(--primary-light);
    }
    
    .article-item:hover {
        border-left-color: var(--primary);
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

/* ===== 选中文本样式 ===== */
::selection {
    background: var(--primary);
    color: #fff;
    text-shadow: none;
}

/* ===== 焦点可见性 ===== */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== HowTo 教程卡片 ===== */
#howto .card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(179,82,60,.05) 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

#howto .card::before {
    content: '📖';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(15deg);
    pointer-events: none;
}

#howto .card h3 {
    color: var(--primary);
    font-size: 1.3rem;
}

#howto .card p {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

#howto .card p::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ===== 客户评价卡片 ===== */
.grid-2 > .card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(179,82,60,.03) 100%);
}

.grid-2 > .card p {
    font-style: italic;
    position: relative;
    padding: 8px 0;
}

.grid-2 > .card p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* ===== 品牌卡片特殊效果 ===== */
#about .card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(179,82,60,.04) 100%);
}

#about .card:first-child {
    border-top: 3px solid var(--primary);
}

#about .card:last-child {
    border-top: 3px solid var(--primary-light);
}

/* ===== 产品卡片图标 ===== */
#products .card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

#products .card h3::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

#products .card:nth-child(1) h3::before {
    content: '💗';
}

#products .card:nth-child(2) h3::before {
    content: '🌆';
}

#products .card:nth-child(3) h3::before {
    content: '🏢';
}

#products .card:nth-child(4) h3::before {
    content: '📱';
}

/* ===== Schema 隐藏 ===== */
.schema-holder {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}