@charset "utf-8";
/* =========================================================
   家教家风专题 · 样式（湖北省总工会）
   设计基准：1920 画布 / 1200 内容容器（左右各 360）
   实测纵向节奏：banner 510 → 导航 60 → 简介 160 → 活动动态 →
   十大案例 → 文字类/影像类/手工实物类/其他类（四块白色面板连续堆叠）→ 页脚
   主题：中国红 + 宣纸米白 + 描金；楷体展示字 + 雅黑正文
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
    /* 主色：取自设计图导航条 #BF2F26、深红压条 #811015 */
    --red: #bf2f26;
    --red-deep: #811015;
    --red-dark: #6a0d12;
    --red-soft: #c44e42;

    /* 纸色：设计图正文底色 #FFF7E7、卡片白 #FFFFFF */
    --paper: #fff7e7;
    --paper-2: #faf4e6;
    --paper-3: #f2ecdd;
    --white: #ffffff;

    /* 金 / 棕：边框与描金 #C58C58、#CC925F、#BE7330 */
    --gold: #c58c58;
    --gold-2: #cc925f;
    --gold-deep: #be7330;
    --gold-light: #f0dab5;

    /* 文字：主色取设计图正文深棕，非纯黑 */
    --ink: #2b1410;
    --ink-2: #4a332a;
    --ink-3: #806455;
    --ink-mute: #a89184;

    /* 尺寸 */
    --w: 1200px;

    /* 动效 */
    --ease: cubic-bezier(.16, 1, .3, 1);
    --dur-fast: 180ms;
    --dur-base: 320ms;
    --dur-slow: 640ms;

    /* 阴影：暖调环境色，不用纯黑 */
    --shadow-1: 0 2px 8px rgba(93, 42, 20, .07);
    --shadow-2: 0 8px 26px rgba(93, 42, 20, .12);
    --shadow-3: 0 22px 56px rgba(93, 42, 20, .17);

    /* 字体：楷体做展示字，雅黑做正文 */
    --font-display: "FZKai-Z03S", "STKaiti", "KaiTi", "楷体", "Songti SC", serif;
    --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-2);
    background: var(--paper);
    /* 宣纸底：极淡的双径向暖光，避免纯色平铺 */
    background-image:
        radial-gradient(70rem 40rem at 6% 0%, rgba(191, 47, 38, .05), transparent 62%),
        radial-gradient(58rem 34rem at 98% 18%, rgba(197, 140, 88, .08), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* 用 clip 而非 hidden：hidden 会让 body 成为滚动容器，
       导致吸顶导航失效；clip 只裁剪溢出，不破坏 position: sticky */
    overflow-x: clip;
}

img { display: block; max-width: 100%; border: 0; }
ul, ol, li { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* 键盘可达：可见焦点圈 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap { width: 100%; position: relative; }

/* 纸张颗粒：极低透明度叠加，替代纯色平底 */
.wrap::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* =========================================================
   HEADER
   ========================================================= */
/* .header 不生成盒子（display: contents），让内部的吸顶导航以整页为参照，
   否则 sticky 会被 header 自身高度限制，滚动过 banner 后就失效。
   语义上用 role="banner" 保留页头地标（见 index.html） */
.header { display: contents; }

.header h1 {
    background: none;
}

/* 横幅：设计图实测 0..510，背景为 bg.png(1920x509) */
.banner {
    position: relative;
    height: 510px;
    background: #fdf7e4 url("../images/bg.png") center top / 100% 100% no-repeat;
    overflow: hidden;
}

/* 底部向纸色过渡，避免横幅与正文出现硬边 */
.banner::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 247, 231, 0), var(--paper));
    pointer-events: none;
}

.banner-inner {
    position: relative;
    width: var(--w);
    margin: 0 auto;
    height: 100%;
        display: flex;
    justify-content: center;
}

/* 主标题切片 932x372，设计图中位于容器左侧、纵向约 128 起 */
.logo {
    padding-top: 50px;
    /* animation: logoIn 900ms var(--ease) both; */
}

.logo img {
    width: 100%;
    height: auto;
    /* 深红描金艺术字，加暖色投影从纸底浮起 */
    /* filter: drop-shadow(0 6px 18px rgba(120, 40, 16, .16)); */
}

@keyframes logoIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

/* 导航：设计图实测 60px 高红条（510..570），吸顶 */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 60px;
    background: var(--red);
    background-image: linear-gradient(to bottom, #c63f2b 0%, #bf2f26 46%, #a12915 100%);
    box-shadow: 0 2px 0 rgba(129, 16, 21, .5);
}

.nav-inner {
    width: var(--w);
    margin: 0 auto;
    height: 100%;
}
.nav li a:hover,.nav li a.current {
    background-color: unset;
        height: auto;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    background-color: unset;
}

.nav li { height: 100%; }

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 44px;
    font-size: 19px;
    letter-spacing: .06em;
    color: rgba(255, 244, 224, .92);
    white-space: nowrap;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

/* 悬停：底部金线由中间向两侧展开 */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 6px;
    width: 0; height: 2px;
    background: #daa86d;
    transform: translateX(-50%);
    transition: width var(--dur-base) var(--ease);
}

.nav a:hover { color: #fff; }
.nav a:hover::after { width: calc(100% - 34px); }

/* 当前项：设计图实测为 40px 高描金圆角块（#DAA86D，圆角 4px）+ 白字，
   用 ::before 画内嵌色块，不改变导航 60px 的整条高度 */
.nav a.current {
    color: #fff;
    font-weight: 700;
    z-index: 1;
}

.nav a.current::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: -1;
    height: 40px;
    margin-top: -20px;
    background: #daa86d;
    border-radius: 4px;
}

.nav a.current::after { display: none; }

/* =========================================================
   CONTENT
   ========================================================= */
.content {
    position: relative;
    width: var(--w);
    margin: 0 auto;
}

.grid { position: relative; }

/* 区块标题条：切片图 + 查看更多 */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-title {
    position: relative;
    font-size: 0;
    line-height: 0;
}

.sec-title img {
    height: 46px;
    width: auto;
}
.p7 .sec-title img {
    height: 70px;
    width: auto;
}

/* 标题左侧朱漆竖条 */

/* 查看更多：全站统一为棕金加粗文字 + 细箭头（设计图实测 #cc8747 / 16px 加粗） */
.more,
.more--red {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: auto;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    color: #cc8747;
    white-space: nowrap;
    flex: 0 0 auto;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: color var(--dur-base) var(--ease);
}

/* 底部"查看更多"按钮：白底 + 棕边圆角矩形，居中置于每个区块底部 */
.more--bottom {
    position: relative;
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #cc8747;
    background: #FFF8EC;
    border: 1px solid #cc8747;
    border-radius: 4px;
    box-shadow: none;
    text-align: center;
    transition: background-color var(--dur-base) var(--ease),
                color var(--dur-base) var(--ease);
}

.more--bottom:hover {
    color: #fff;
    background: #cc8747;
    border-color: #cc8747;
}

.more:hover i { transform: translateX(3px); }

/* ---------- 轮播通用（Swiper） ---------- */

/* 箭头用描边画出，保持设计图的细线 “›” */
.more i {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
        right: 15%;
    top: 38%;
    margin-top: -1px;
    font-size: 0;
    line-height: 1;
    transition: transform var(--dur-base) var(--ease);
}

.more i::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    margin-top: -3px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.more:hover,
.more--red:hover {
    /* color: var(--gold-deep); */
    /* background: none; */
    border: 0;
    box-shadow: none;
    border: 1px solid #fff;
}

.more:hover i { transform: translateX(3px); }

/* ---------- 轮播通用（Swiper） ---------- */
.carousel { position: relative; }

.carousel-slide { width: 100%; }

/* 左右切换按钮：所有轮播统一（设计图 p2-left / p2-right 切图，常显） */
.car-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    font-size: 0;
    color: transparent;
    background: center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    opacity: 1;
    transition: opacity var(--dur-fast) ease;
}

.car-arrow.prev { background-image: url("../images/p2-left.png"); }
.car-arrow.next { background-image: url("../images/p2-right.png"); }

.car-arrow:hover { opacity: .8; }

.car-arrow.swiper-button-disabled {
    opacity: .38;
    cursor: default;
}

/* 活动动态：按钮压在图片上 */
.carousel .car-arrow.prev { left: 12px; }
.carousel .car-arrow.next { right: 12px; }

.carousel-dots {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 5;
}

.carousel-dots .dot-item {
    width: 22px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, .5);
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--dur-fast) ease, width var(--dur-base) var(--ease);
}

.carousel-dots .dot-item.active {
    width: 34px;
    background: #f0dab5;
}

/* =========================================================
   P1 · 活动简介（设计图 614..774，高 160）
   ========================================================= */
.p1 { padding: 44px 0 28px; }

.intro {
    position: relative;
    min-height: 160px;
    padding: 5px 30px 5px 0;
    background: url("../images/p0-bg.png") left center / 100% 100% no-repeat;
    border: 0;
    box-shadow: none;
}

/* 左上 / 右下描金直角括号 */
.intro::before,
.intro::after {
    display: none;
}

/* 竖排“活动简介”朱印 */
.intro-seal {
    display: none;
}

.intro-text {
    margin-left: 120px;
    padding: 4px 0;
}

.intro-text p {
    font-size: 19px;
    line-height: 1.8;
    letter-spacing: .02em;
    color: #333;
    text-align: justify;
    text-indent: 2em;
    /* font-weight: bold; */
}


/* =========================================================
   P2 · 活动动态（标题 802，内容 880..1168）
   ========================================================= */
.p2 { padding: 0 0 20px; }

.p2 .sec-head { margin-bottom: 30px; }

.dyn {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

/* 左：主图 */
.photo {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--paper-3);
}

.photo img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform 700ms var(--ease), filter var(--dur-base) ease;
}

.photo:hover img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

/* 图上标题压条 */
.photo-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 32px 18px 13px;
    font-size: 14px;
    line-height: 1.5;
    color: #fff8ea;
    background: linear-gradient(to top, rgb(163 24 0 / 90%), rgba(43, 20, 16, .52) 55%, transparent);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* 右：动态列表（设计图实测：每行 60px 米色块 #F5F0E3，行间 9px，无圆点无日期）
   默认不高亮，悬停 / 触摸时才变为红底白字 + 左侧描金竖条 */
.dyn-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: auto;
    padding: 0;
    background: none;
    border: 0;
}

.dyn-list li {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    background: #f5f0e3;
}

.dyn-list a {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0 18px 0 30px;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--dur-fast) ease;
}

/* 左侧描金竖条：仅高亮时出现 */
.dyn-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: #daa86d;
    opacity: 0;
    transition: opacity var(--dur-fast) ease;
}

.dyn-list .t {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #2d2f2c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--dur-fast) ease;
}

/* 设计图未使用圆点与日期 */
.dyn-list .dot,
.dyn-list .d { display: none; }

/* 触摸 / 悬停才高亮：红底白字 + 金色竖条 */
.dyn-list a:hover,
.dyn-list a:active,
.dyn-list a:focus-visible { background: var(--red); }

.dyn-list a:hover .t,
.dyn-list a:active .t,
.dyn-list a:focus-visible .t { color: #fff; }

.dyn-list a:hover::before,
.dyn-list a:active::before,
.dyn-list a:focus-visible::before { opacity: 1; }

/* =========================================================
   P3 · 十大优秀案例（设计图实测）
   选项卡条 810×56（3×270，居中，#FFF1D7），「查看更多」同一行贴右；
   下方 1200×352 米色描边外框（p2-bg.png：红虚线 + 竖排“十大优秀案例”）；
   卡片 285×264（图 212 + 标题条 52），间距 40，左侧空出 184；
   左右翻页为 40×50 金色方块（#BA7133），常显。
   ========================================================= */
.p3 {
    padding: 0 0 30px;
}

/* 选项卡行：选项卡居中，查看更多贴容器右侧 */
.p3-tabs-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 42px 0 38px;
}

.p3-tabs-row .tabs { margin: 0; }

.p3-tabs-row .more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 选项卡：整条米色底 + 等宽选中红块（设计图统一样式）
   设计实测：每条 270×56，居中；选中项白字红底 + 底部 14×6 小三角 */
.tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin: 24px auto 40px;
    padding: 0;
    background: #fff2d8;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tabs a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 270px;
    width: 270px;
    min-height: 56px;
    padding: 0 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--red);
    border-radius: 0;
    white-space: nowrap;
    transition: color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}

.tabs a:hover { color: var(--red-deep); }

.tabs a.current {
    color: #fff;
    background: var(--red);
}

/* 选中项底部指示三角 */
.tabs a.current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 6px solid var(--red);
}

/* 选项卡面板：每个选项各有一份轮播，切换时整块显隐（隐藏的用绝对定位，避免撑高） */
.tab-panes { position: relative; }

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease);
}

.tab-pane.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* 案例区：外框即 p2-bg.png（1200×352），卡片整体右移 184、上移 47 */
.case-wrap {
    position: relative;
    height: 352px;
    padding: 47px 80px 0 184px;
    background: url("../images/p2-bg.png") left top / 100% 100% no-repeat;
}

/* 案例区轮播容器：由 Swiper 控制翻页 */
.carousel--multi { width: 100%; }

.case-card {
    flex: 0 0 285px;
    width: 285px;
    display: flex;
    flex-direction: column;
    background: none;
    border: 0;
    box-shadow: none;
}

.case-img {
    display: block;
    height: 212px;
    overflow: hidden;
    background: var(--paper-3);
}

.case-img img {
    width: 100%;
    height: 212px;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}

.case-card:hover .case-img img { transform: scale(1.05); }

/* 底部米色标题条：案例① 丨 标题，单行居中 */
.case-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 10px;
    background: #faedd6;
    font-size: 16px;
    line-height: 1;
    color: #2d2f2c;
}

.case-tag {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
    letter-spacing: 0;
    color: inherit;
    background: none;
    border: 0;
    white-space: nowrap;
}

/* 分隔符“丨” */
.case-tag::after {
    content: "丨";
    margin: 0 8px;
}

.case-title {
    display: block;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 设计图标题条只有一行，描述不展示 */
.case-desc { display: none; }

/* 翻页按钮落在案例外框内的左右留白处 */
.case-wrap .car-arrow.prev { left: 122px; }
.case-wrap .car-arrow.next { right: 16px; }

/* =========================================================
   P4 / P5 / P6 / P7 · 连续白色面板（设计图 1780..3560 无缝堆叠）
   ========================================================= */
.p4, .p5, .p6, .p7 {
    width: var(--w);
    margin: 0 auto;
    background: var(--white);
    /* border-top: 1px solid rgba(197, 140, 88, .4); */
    box-shadow: var(--shadow-1);
}

/* 面板内统一左右留白 44，内容与标题对齐 */
.p4 > .sec-head, .p5 > .sec-head, .p6 > .sec-head, .p7 > .sec-head {
    margin-left: 44px;
    margin-right: 44px;
}

/* 标题与内容间距（各面板实测值不同，此处统一为视觉等距） */
.p4 { background: url(../images/p3-p6-bg.png) #fff top center no-repeat;padding: 53px 0 25px 0; }
.p5 { padding: 40px 0 0; }
.p6 { padding: 46px 0 0; }
.p7 { padding: 40px 0 20px 0; }

.p4 > .sec-head, .p5 > .sec-head, .p6 > .sec-head, .p7 > .sec-head {
    margin-bottom: 16px;
}

/* ---------- P4 文字类：Swiper 轮播（牛皮纸底 1080×379，3 张 280×281 书法卡） ---------- */
.text-swiper {
    position: relative;
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
    padding: 49px 80px;
    background: url("../images/p3-bg_new.png") center / 100% 100% no-repeat;
}

.text-grid { width: 920px; max-width: 100%; }

/* 卡片即 p3-icon.png 切片：上部作品区 + 虚线下标题条 */
.text-panel {
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 281px;
    padding: 22px 22px 0;
    background: url("../images/p3-icon.png") center / 100% 100% no-repeat;
    transition: transform var(--dur-base) var(--ease);
}

.text-panel:hover { transform: translateY(-5px); }

/* 作品区（虚线上方） */
.text-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 193px;
    overflow: hidden;
}

.text-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 标题条（虚线下方） */
.text-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0px;
    line-height: 20px;
    text-align: justify;
    color: #8d3524;
}

/* 左右切换：设计图 p2-left / p2-right 切图，压在牛皮纸上 */
.text-arrow {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    background: center / 100% 100% no-repeat;
    border: 0;
    cursor: pointer;
    transition: opacity var(--dur-fast) ease;
}

.text-arrow.prev { left: 6px; background-image: url("../images/p2-left.png"); }
.text-arrow.next { right: 6px; background-image: url("../images/p2-right.png"); }

.text-arrow:hover { opacity: .8; }

.text-arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

/* ---------- P5 影像类：Swiper 轮播（3 张 220 宽卡片，整体 740） ---------- */
.video-swiper {
    position: relative;
    width: 1132px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 34px 36px;
}

.video-grid {  max-width: 100%; }

.video {
    display: block;
    width: 330px;
}

.video-img {
    position: relative;
    display: block;
    height: 175px;
    overflow: hidden;
    background: #1a1410;
}

.video-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease), opacity var(--dur-base) ease;
}

.video:hover .video-img img {
    transform: scale(1.05);
    opacity: .88;
}

/* 标题条：使用设计图 p4-icon.png 橙色旗帜底 */
.video-cap {
    display: flex;
    align-items: center;
    min-height: 74px;
    margin-top: -4px;
    padding: 10px 20px 10px;
    font-size: 16px;
    line-height: 1.45;
    color: #fff8ea;
    background: url("../images/p4-icon.png") center / 100% 100% no-repeat;
    transition: filter var(--dur-fast) ease;
}

.video:hover .video-cap { filter: brightness(1.07); }

/* 左右切换按钮：设计图 p4-right.png 箭头，左侧镜像（影像类 / 手工实物类共用） */
.img-arrow {
    position: absolute;
    top: 77px;
    width: 24px;
    height: 41px;
    padding: 0;
    background: url("../images/p4-right.png") center / 100% 100% no-repeat;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity var(--dur-fast) ease;
}

.img-arrow.prev {
    left: 0;
    transform: translateY(-50%) scaleX(-1);
}

.img-arrow.next { right: 0; }

.img-arrow:hover { opacity: .75; }

.img-arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

/* ---------- P6 手工实物类：Swiper 轮播（4 张 250 宽卡，间距 20，整体 1060） ---------- */
.craft-swiper {
    position: relative;
    width: 1132px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 36px 32px;
}

.craft-grid { width: 1060px; max-width: 100%; }

/* 箭头纵向对准作品图中心（188/2 + 边框） */
.craft-swiper .img-arrow { top: 95px; }

.craft {
    display: flex;
    flex-direction: column;
    width: 250px;
    background: var(--white);
    transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.craft:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

.craft-img {
    display: block;
    overflow: hidden;
    background: var(--paper-3);
}

.craft-img img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}

.craft:hover .craft-img img { transform: scale(1.06); }

/* ---------- P7 其他类（设计图金色边框面板 p6-bg_new.png：左主图 + 右侧竖排缩略图） ---------- */
.other {
    display: flex;
    gap: 14px;
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
    padding: 38px 36px 44px 40px;
    background: url("../images/p6-bg_new.png") center / 100% 100% no-repeat;
}

/* 左：大图 790x443（由右侧缩略图轮播驱动） */
.other-main {
    width: 790px;
    height: 443px;
    margin: 0;
    overflow: hidden;
    background: #1a1410;
}

.other-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右：上箭头 + 3 张竖排缩略图 + 下箭头 */
.other-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.other-arrow {
    flex: 0 0 auto;
    width: 61px;
    height: 19px;
    padding: 0;
    background: center / 100% 100% no-repeat;
    border: 0;
    cursor: pointer;
    transition: opacity var(--dur-fast) ease;
}

.other-arrow.up { background-image: url("../images/p6-left.png"); }
.other-arrow.down { background-image: url("../images/p6-right.png"); }

.other-arrow:hover { opacity: .7; }

.other-arrow.swiper-button-disabled {
    opacity: .3;
    cursor: default;
}

/* 竖向 Swiper 必须有确定高度，否则 wrapper 的 height:100% 会退化为内容高度，
   循环撑开面板；此处 381 = 443（主图）- 19*2（上下箭头）- 12*2（间距），
   JS 会依据主图实际高度重新计算，这里仅作兜底 */
.other-thumbs {
    flex: 0 0 auto;
    width: 200px;
    height: 381px;
    margin: 0;
}

/* 缩略图：白色相框 + 选中项描金高亮 */
.other-thumb {
    display: block;
    padding: 4px;
    background: var(--white);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .72;
    transition: opacity var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.other-thumb:hover { opacity: 1; }

.other-thumb.swiper-slide-active {
    opacity: 1;
    border-color: var(--gold-deep);
}

.other-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   FOOTER（设计图 3568..4074：深红木纹底 + 浅米色文字）
   ========================================================= */

.footer .copyright {
    height: auto;
}

.footer img {
    display: inline-block;
    max-width: 100%;
    border: 0;
}


/* 左：页脚插画（设计图 1200x480 书法 / 家风意象） */


/* =========================================================
   返回顶部（common.js 注入）
   ========================================================= */
.backtop {
    position: fixed;
    right: 26px;
    bottom: 46px;
    z-index: 90;
    width: 44px;
    height: 44px;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    color: #fff4e0;
    background: linear-gradient(to bottom, #c63f2b, var(--red-deep));
    border: 1px solid rgba(240, 218, 181, .5);
    border-radius: 50%;
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease), visibility var(--dur-base);
}

.backtop.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.backtop:hover {
    background: linear-gradient(to bottom, #d24d38, var(--red));
    transform: translateY(-2px);
}

/* =========================================================
   滚动入场
   安全策略：元素默认完全可见，动画只是「加分项」。
   只有真正进入视口（被加上 .in）时才播放一次淡入上移动画，
   因此任何时候都不会出现内容被隐藏的风险。
   ========================================================= */
html.js .reveal.in {
    animation: revealIn 640ms var(--ease) both;
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* 所有入场动效整体关闭 */
    html.js .reveal,
    html.js .reveal.in {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .logo { animation: none; }

    .photo img,
    .case-img img,
    .video-img img,
    .craft-img img {
        transition: none !important;
    }

    .case-card:hover,
    .craft:hover,
    .backtop.show,
    .backtop:hover {
        transform: none !important;
    }
}
