/* ==================== 基础 ==================== */
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #171717;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.8rem; line-height: 1.4; }
h4 { font-size: 1.25rem; line-height: 1.5; }
p  { font-size: 1rem; line-height: 1.6; }

footer { font-size: 18px; }
footer h3 { font-size: 1.5rem !important; }
footer a,
footer p,
footer li { font-size: 1.2rem !important; }

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ==================== 主题色强制覆盖 ==================== */
/* 背景 */
.bg-blue-600 { background-color: #4236fa !important; }
.hover\:bg-blue-700:hover { background-color: #57509d !important; }
.bg-blue-50 { background-color: #f5f3ff !important; }

/* 文字 */
.text-blue-600 { color: #4236fa !important; }
.text-blue-500 { color: #5528d7 !important; }
.text-blue-400 { color: #5528d7 !important; }
.hover\:text-blue-700:hover { color: #57509d !important; }
.hover\:text-blue-300:hover { color: #57509d !important; }
.text-blue-100 { color: #c4b5fd !important; }

/* 边框 */
.border-blue-500 { border-color: #5528d7 !important; }
.border-blue-600 { border-color: #4236fa !important; }

/* 焦点 */
.focus\:ring-blue-500:focus { --tw-ring-color: #4236fa !important; }
.focus\:border-blue-500:focus { border-color: #4236fa !important; }

/* 渐变 */
.from-blue-600 { --tw-gradient-from: #4236fa !important; }
.to-indigo-600 { --tw-gradient-to: #5528d7 !important; }


/* ============================================================
   筛选栏折叠
   ============================================================ */

.filter-content {
    display: none;
}

.filter-group.open .filter-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.filter-group.open .filter-toggle i {
    transform: rotate(180deg);
}

.filter-toggle i {
    transition: transform 0.2s ease;
}

.filter-toggle:hover {
    color: #2563eb;   /* 悬停变蓝 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   文章正文排版（.article-content）—— 项目未装 typography 插件，
   这里手写一套，保证详情页富文本（含编辑器输出的内联样式）显示美观
   ============================================================ */
.article-lead {
    position: relative;
    margin: 0 0 26px;
    padding: 16px 22px;
    background: #faf6ee;
    border: 1px solid #f0e8d8;
    border-left: 4px solid #C6A15B;
    border-radius: 0 12px 12px 0;
    color: #6b6154;
    font-size: 15.5px;
    line-height: 1.9;
}

.article-content {
    font-size: 16.5px;
    line-height: 1.95;
    color: #3f3a33;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content > *:first-child { margin-top: 0 !important; }
.article-content > *:last-child { margin-bottom: 0 !important; }

.article-content p {
    margin: 0 0 1.15em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: justify;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
    margin: 1.8em 0 .75em;
    padding-left: 13px;
    border-left: 4px solid #C6A15B;
    color: #1B1611;
    font-weight: 700;
    line-height: 1.5;
}
.article-content h1 { font-size: 1.5rem; }
.article-content h2 { font-size: 1.35rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content h4,
.article-content h5 { font-size: 1.05rem; }

.article-content ul,
.article-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.5em;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin: .4em 0; line-height: 1.85; }

.article-content img,
.article-content video,
.article-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.article-content img {
    display: block;
    margin: 1.4em auto;
}
.article-content figure { margin: 1.4em 0; }
.article-content figure img { margin: 0 auto; }
.article-content figcaption {
    margin-top: .6em;
    text-align: center;
    font-size: 13px;
    color: #9a9186;
}

.article-content a {
    color: #A9843D;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover { color: #8a6c2f; }

.article-content strong,
.article-content b { color: #1B1611; font-weight: 700; }

.article-content blockquote {
    margin: 1.4em 0;
    padding: 14px 20px;
    background: #faf6ee;
    border-left: 4px solid #C6A15B;
    border-radius: 0 10px 10px 0;
    color: #6b6154;
    font-size: inherit;
}

.article-content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    font-size: 15px;
}
.article-content table th,
.article-content table td {
    padding: 10px 14px;
    border: 1px solid #eee6d6;
    line-height: 1.7;
}
.article-content table th {
    background: #faf7f1;
    color: #1B1611;
    font-weight: 600;
    text-align: left;
}
.article-content table tr:nth-child(even) td { background: #fdfbf7; }

.article-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px dashed #e6ddc9;
}

/* 富文本可能带内联字号，适度收敛 */
.article-content font[size="1"],
.article-content font[size="2"] { font-size: 14px !important; }

@media (max-width: 768px) {
    .article-content { font-size: 15.5px; line-height: 1.9; }
    .article-content p { text-align: left; }
    .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ============================================================
   首页 Banner 轮播（.wc-hero）
   ============================================================ */
.wc-hero {
    position: relative;
    overflow: hidden;
    background: #120F0B;
    min-height: 500px;
    display: flex;
    align-items: center;
}
@media (min-width: 1024px) {
    .wc-hero { min-height: 660px; }
}

/* 背景图轮播层（z-index 最低，文案层在上） */
.wc-hero-bg { position: absolute; inset: 0; z-index: 0; }
.wc-hero > .container { position: relative; z-index: 3; }
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s ease;
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 8s ease-out;
    will-change: transform;
}
.banner-slide.is-active .banner-img { transform: scale(1.13); } /* 缓慢推近 Ken Burns */
.banner-mask {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(90deg,
        rgba(18, 15, 11, .9) 0%,
        rgba(18, 15, 11, .7) 38%,
        rgba(18, 15, 11, .26) 66%,
        rgba(18, 15, 11, .52) 100%);
}
/* 底部渐隐，和下一个区块衔接 */
.wc-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(18, 15, 11, 0) 0%, rgba(18, 15, 11, .62) 100%);
    pointer-events: none;
}
@media (max-width: 1023px) {
    .banner-mask {
        background: linear-gradient(180deg,
            rgba(18, 15, 11, .58) 0%,
            rgba(18, 15, 11, .84) 56%,
            rgba(18, 15, 11, .95) 100%);
    }
}

/* 内容栅格 */
.wc-hero-inner {
    position: relative;
    z-index: 3;
    padding: 84px 0 118px;
}
@media (min-width: 1024px) {
    .wc-hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 336px;
        align-items: center;
        gap: 56px;
        padding: 116px 0 140px;
    }
}

/* 文案 */
.wc-hero-copy { position: relative; }
.banner-copy { display: none; }
.banner-copy.is-active {
    display: block;
    animation: wcFadeUp .85s cubic-bezier(.22, .7, .28, 1) both;
}
@keyframes wcFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wc-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: #D4B273;
}
.wc-hero-kicker::before {
    content: "";
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #D4B273, rgba(212, 178, 115, 0));
}
.wc-hero-title {
    margin: 0 0 18px;
    font-size: clamp(26px, 3.7vw, 48px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.5px;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.wc-hero-sub {
    max-width: 30em;
    margin: 0 0 34px;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.75;
    color: rgba(255, 255, 255, .8);
}
.wc-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* 通用按钮（首页 hero / 模块 CTA 共用） */
.wc-btn-gold,
.wc-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background-color .25s ease, border-color .25s ease;
}
.wc-btn-gold {
    background: linear-gradient(135deg, #D4B273 0%, #A9843D 100%);
    color: #24190B;
    box-shadow: 0 16px 32px -18px rgba(198, 161, 91, .9);
}
.wc-btn-gold:hover {
    color: #24190B;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 36px -16px rgba(198, 161, 91, 1);
}
.wc-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(6px);
}
.wc-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}
/* 白底区块里的金色按钮（不需要负投影那么重） */
.wc-btn-gold-dark { padding: 13px 28px; font-size: 14px; }

/* 右侧玻璃数据卡 */
.wc-hero-card { display: none; }
@media (min-width: 1024px) {
    .wc-hero-card {
        display: block;
        padding: 24px 24px 18px;
        border-radius: 20px;
        border: 1px solid rgba(212, 178, 115, .3);
        background: linear-gradient(155deg, rgba(27, 22, 17, .72) 0%, rgba(27, 22, 17, .5) 100%);
        backdrop-filter: blur(18px);
        box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .85);
    }
}
.wc-hero-card-title {
    margin: 0 0 16px;
    font-size: 12.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #D4B273;
}
.wc-hero-card ul { margin: 0; padding: 0; list-style: none; }
.wc-hero-card li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.wc-hero-card li:first-child { border-top: 0; padding-top: 0; }
.wc-hero-card li b {
    flex-shrink: 0;
    min-width: 84px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    color: #D4B273;
}
.wc-hero-card li b span { font-size: 12.5px; font-weight: 600; }
.wc-hero-card li > span {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

/* 左右箭头（桌面端） */
.wc-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(27, 22, 17, .38);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}
@media (min-width: 1024px) { .wc-hero-arrow { display: flex; } }
.wc-hero-arrow:hover {
    background: linear-gradient(135deg, #D4B273, #A9843D);
    border-color: transparent;
    color: #24190B;
}
.wc-hero-prev { left: 24px; }
.wc-hero-next { right: 24px; }

/* 底部：计数 + 进度条 + 圆点 */
.wc-hero-bar-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 4;
}
.wc-hero-count {
    flex-shrink: 0;
    font-size: 12.5px;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .6);
}
.wc-hero-count b { color: #D4B273; font-weight: 700; }
.wc-hero-track {
    flex: 1;
    max-width: 220px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    overflow: hidden;
}
.wc-hero-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #D4B273, #A9843D);
}
.wc-hero-dots { display: flex; gap: 9px; margin-left: auto; flex-shrink: 0; }
.wc-hero-dots .banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 99px;
    border: 0;
    background: rgba(255, 255, 255, .32);
    cursor: pointer;
    transition: all .3s ease;
}
.wc-hero-dots .banner-dot:hover { background: rgba(255, 255, 255, .62); }
.wc-hero-dots .banner-dot.is-active {
    width: 32px;
    border-color: transparent;
    background: linear-gradient(90deg, #D4B273, #A9843D);
}

@media (max-width: 640px) {
    .wc-hero-track { flex: 0 0 auto; width: 92px; max-width: none; }
    .wc-hero-dots { gap: 7px; }
    .wc-hero-dots .banner-dot { width: 10px; height: 10px; background: rgba(255, 255, 255, .38); }
    .wc-hero-dots .banner-dot.is-active { width: 24px; }
    .wc-hero-inner { padding: 76px 0 112px; }
}

/* ============================================================
   首页「设计亮点」模块（.wc-hl-*）
   ============================================================ */
.wc-hl-frame { position: relative; }
.wc-hl-frame::before,
.wc-hl-frame::after {
    content: "";
    position: absolute;
    width: 104px;
    height: 104px;
    border-color: #C6A15B;
    opacity: .75;
    pointer-events: none;
}
.wc-hl-frame::before {
    left: -16px;
    top: -16px;
    border-top: 2px solid #C6A15B;
    border-left: 2px solid #C6A15B;
    border-radius: 26px 0 0 0;
}
.wc-hl-frame::after {
    right: -16px;
    bottom: -16px;
    border-bottom: 2px solid #C6A15B;
    border-right: 2px solid #C6A15B;
    border-radius: 0 0 26px 0;
}
.wc-hl-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 30px 60px -34px rgba(27, 22, 17, .55);
}
@media (min-width: 1024px) { .wc-hl-img { height: 470px; } }
.wc-hl-badge {
    position: absolute;
    right: 14px;
    bottom: 16px;
    z-index: 3;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #f0e8d8;
    box-shadow: 0 18px 36px -22px rgba(27, 22, 17, .5);
    backdrop-filter: blur(6px);
}
.wc-hl-badge-num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #A9843D;
}
.wc-hl-badge-label { margin-top: 5px; font-size: 11.5px; color: #8A8172; }

.wc-hl-item {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid #f2ebdd;
}
.wc-hl-item:first-child { border-top: 0; padding-top: 0; }
.wc-hl-num {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    font-size: 19px;
    color: #A9843D;
    background: linear-gradient(135deg, #fdf9f1 0%, #f5ebd8 100%);
    border: 1px solid #efe3cd;
    transition: all .35s ease;
}
.wc-hl-item:hover .wc-hl-num {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #D4B273 0%, #A9843D 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -16px rgba(169, 132, 61, .9);
}
.wc-hl-body { min-width: 0; }
.wc-hl-body h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #1B1611;
}
.wc-hl-index {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #C6A15B;
}
.wc-hl-body p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.85;
    color: #6b6154;
}
.wc-hl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-hl-tags span {
    padding: 4px 12px;
    font-size: 12px;
    color: #A9843D;
    background: #faf6ee;
    border: 1px solid #f0e8d8;
    border-radius: 999px;
}
@media (max-width: 1023px) {
    .wc-hl-item { gap: 14px; padding: 18px 0; }
    .wc-hl-num { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; }
    .wc-hl-body h3 { font-size: 16.5px; }
}

/* ============================================================
   全站细节精修（交互 / 焦点 / 卡片 / 过渡）
   ============================================================ */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(198, 161, 91, .3); color: #1B1611; }
img { -webkit-user-drag: none; }

/* 页面进入过渡 */
body.wc-anim main { animation: wcPageIn .5s cubic-bezier(.22, .7, .28, 1) both; }
@keyframes wcPageIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 滚动后头部投影加深 */
header.wc-scrolled {
    box-shadow: 0 12px 30px -20px rgba(27, 22, 17, .45);
    border-bottom: 1px solid #f2ebdd;
}

/* 金色渐变按钮统一悬浮反馈 */
a.wc-gradient-gold,
button.wc-gradient-gold {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
a.wc-gradient-gold:hover,
button.wc-gradient-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(169, 132, 61, .9);
    filter: brightness(1.05);
}
a.wc-gradient-gold:active,
button.wc-gradient-gold:active { transform: translateY(0); }

/* 卡片悬浮（产品 / 案例 / 资讯卡片均使用 a.group + rounded-*） */
main a.group[class*="rounded"] {
    transition: transform .35s cubic-bezier(.22, .7, .28, 1), box-shadow .35s ease, border-color .35s ease;
}
main a.group[class*="rounded"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -28px rgba(27, 22, 17, .42);
}

/* 移动端底部快捷栏占位与安全区 */
@media (max-width: 1023px) {
    body { padding-bottom: env(safe-area-inset-bottom); }
}

/* 键盘可达性 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(198, 161, 91, .65);
    outline-offset: 2px;
    border-radius: 6px;
}

/* 前台表单控件：统一焦点环 */
main input[type="text"],
main input[type="tel"],
main input[type="email"],
main input[type="number"],
main select,
main textarea {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
main input[type="text"]:focus,
main input[type="tel"]:focus,
main input[type="email"]:focus,
main input[type="number"]:focus,
main select:focus,
main textarea:focus {
    border-color: #C6A15B !important;
    box-shadow: 0 0 0 4px rgba(198, 161, 91, .16);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.wc-anim main,
    .banner-copy.is-active { animation: none; }
    .banner-img,
    .banner-slide.is-active .banner-img { transform: none; transition: none; }
    main a.group[class*="rounded"]:hover { transform: none; }
}