/* ============================================================
   新三星 (New Sanhe) 内页设计系统 inner.css
   与首页 base.css 视觉统一：配色 / 字体 / 容器 / 间距
   适用：product / news / sales / company / contact / message 等内页
   ============================================================ */

:root {
    --primary: #1a1a1a;          /* 主深色（导航/标题/按钮） */
    --primary-dark: #000000;
    --accent: #b8895a;           /* 点缀金（按钮/链接 hover） */
    --accent-soft: #fbf6f0;      /* 金色浅底 */
    --text: #333333;
    --text-light: #666666;
    --gray: #999999;
    --line: #ececec;
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --bg-dark: #1a1a1a;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --shadow-hover: 0 18px 44px rgba(0,0,0,.12);
    --maxw: 1480px;
    --pad: clamp(20px, 5.2vw, 100px);
    --font-body: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-title: 'Baskervville', 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, 'Times New Roman', serif;
    --font-en: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

/* ============ Reset（轻量，不覆盖 base.css 全局） ============ */
/* 内页为白底，覆盖 base.css 首页遗留的 body 白色文字 */
body { color: #1a1a1a; }
/* 内页只加载 base/inner/reveal，没有 home.css 的 overflow-x 防护，
   加这层避免 sticky 侧栏 / 固定宽度元素在窄屏导致横向滚动 */
body, .inner-page { overflow-x: hidden; }
.inner-page a { text-decoration: none; color: inherit; }
.inner-page img { max-width: 100%; height: auto; display: block; }
.inner-page ul { list-style: none; }
.inner-page * { box-sizing: border-box; }

/* ============ 容器 ============ */
.inner-page .container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ============ 内页 Banner 标题区 ============ */
.page-banner {
    position: relative;
    background: transparent;
    color: #fff;
    padding: clamp(289px, 13vw, 180px) 0 clamp(36px, 4vw, 60px);
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* banner 大图直接作为背景呈现（不做淡入），恢复原本显示方式。 */
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/static/web/img/banner-about.jpg') center / cover no-repeat;
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20,20,20,.22) 0%, rgba(20,20,20,.45) 100%);
    pointer-events: none;
}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner__title {
    font-family: var(--font-title);
    font-size: clamp(28px, 5vw, 60px);
    line-height: 1.1;
    font-weight: 400;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-banner__inner { animation: fadeUp .7s ease both; }
@keyframes fadeUpSm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.inner-page .wrap {
    animation: fadeUpSm .6s ease both;
    padding-top: clamp(40px, 4vw, 60px);
}
@media (max-width: 768px) {
    .page-banner {
        padding: clamp(120px, 30vw, 180px) 0 clamp(28px, 6vw, 44px);
        min-height: 0;
    }
    .page-banner__title { font-size: clamp(26px, 9vw, 40px); }
}
@media (max-width: 480px) {
    .page-banner { padding: clamp(100px, 34vw, 150px) 0 24px; }
    .page-banner__title { font-size: clamp(24px, 10vw, 34px); }
}

/* ============ 面包屑 ============ */
.crumb {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px var(--pad) 0;
    font-size: 13px;
    color: var(--gray);
    font-family: var(--font-body);
}
.crumb a { color: var(--gray); transition: color .2s; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { margin: 0 8px; color: #ccc; }

/* ============ 子菜单（Company / Vision 切换） ============ */
.subnav {
    max-width: var(--maxw);
    margin: 18px auto 0;
    padding: 0 var(--pad);
    display: flex;
    gap: clamp(20px, 3vw, 36px);
    border-bottom: 1px solid var(--line);
}
.subnav__item {
    position: relative;
    display: inline-block;
    padding: 13px 2px;
    font-size: 15px;
    font-family: var(--font-title);
    letter-spacing: .02em;
    color: var(--text-light);
    transition: color .2s ease;
}
.subnav__item::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.subnav__item:hover { color: var(--text); }
.subnav__item:hover::after { transform: scaleX(1); }
.subnav__item.is-active { color: var(--primary); font-weight: 600; }
.subnav__item.is-active::after { transform: scaleX(1); background: var(--primary); }

/* ============ 主体布局 ============ */
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 34px var(--pad) 80px;
}
.layout {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ============ 侧边栏 ============ */
.side {
    width: 240px;
    flex: none;
    position: sticky;
    top: 20px;
}
.side__title {
    font-family: var(--font-title);
    font-size: 23px;
    color: var(--primary);
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.side-menu { display: flex; flex-direction: column; }
.side-menu a {
    display: block;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    transition: all .25s;
}
.side-menu a:hover { color: var(--accent); padding-left: 24px; }
.side-menu a.on {
    background: var(--primary);
    color: #fff;
    border-bottom-color: var(--primary);
}

/* ============ 内容主区 ============ */
.main { flex: 1; min-width: 300px; }
.detail { background: #fff; }

/* ============ 侧边栏布局：移动端折叠 ============
   .layout 默认是 240px 固定侧栏 + flex 主区，.side 还是 sticky。
   在窄屏（≤900px）侧栏会硬占 240px，挤压主列表甚至造成横向溢出。
   这里在平板/手机上改为纵向堆叠：侧栏占满整行、去 sticky、菜单横向滚动。 */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
        gap: 24px;
    }
    .side {
        width: 100%;
        position: static;
        top: auto;
    }
    .side-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 16px;
    }
    .side-menu a {
        padding: 10px 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        font-size: 14px;
    }
    .side-menu a.on {
        border-color: var(--primary);
    }
    .main { min-width: 0; }
}
.detail h1 {
    font-family: var(--font-title);
    font-size: clamp(24px, 3vw, 34px);
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 18px;
    padding-bottom: 16px;
    position: relative;
}
.detail h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    background: var(--primary);
}
.detail .content {
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-light);
}
.detail .content p { margin-bottom: 16px; }
.detail .content img { margin: 18px 0; border-radius: var(--radius); }
.detail--full { width: 100%; }

/* About / Company page editorial content (from admin article) */
.detail--full .content {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.9;
    color: #4a4a4a;
}
.detail--full .content > h2 {
    font-family: "Baskervville", "Times New Roman", serif;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 clamp(18px, 2vw, 28px);
    padding-bottom: 18px;
    position: relative;
}
.detail--full .content > h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 2px;
    background: #b8895a;
}
.detail--full .content p {
    margin: 0 0 clamp(16px, 1.5vw, 24px);
    max-width: 920px;
}
.detail--full .content p:last-child { margin-bottom: 0; }

/* Small uppercase label shared by About / Vision sections on company page */
.company-section-label,
.company-vision-simple__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8895a;
    margin-bottom: 12px;
}

/* ============ 产品网格 ============ */
.grid { display: grid; gap: 26px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

.card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--bg-soft);
    padding: 24px;
    transition: transform .4s;
}
.card:hover img { transform: scale(1.05); }
.card .body { padding: 18px 20px 22px; }
.card .body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    min-height: 44px;
    transition: color .2s;
}
.card:hover .body h3 { color: var(--accent); }
.card .price {
    margin-top: 10px;
    font-family: var(--font-en);
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
}

/* ============ 产品详情 ============ */
.goods-detail { display: flex; gap: 44px; flex-wrap: wrap; }
.goods-detail__img {
    width: 440px; flex: none;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 34px;
    min-height: 420px;
    display: flex; align-items: center; justify-content: center;
}
.goods-detail__img img { width: 100%; max-height: 360px; object-fit: contain; }
.goods-detail__info { flex: 1; min-width: 300px; }
.goods-detail__info h1 {
    font-family: var(--font-title);
    font-size: 30px; color: var(--primary); font-weight: 400;
    margin-bottom: 14px;
}
.goods-detail__price {
    font-family: var(--font-en); font-size: 24px; color: var(--primary);
    font-weight: 600; margin-bottom: 18px;
}
.goods-detail__info .content { font-size: 15px; line-height: 1.9; color: var(--text-light); }
.goods-detail__info .content p { margin-bottom: 14px; }

/* 副标题 */
.goods-detail__subtitle { color: #666; font-size: 17px; margin: 6px 0 12px; }

/* Product Details 表格 */
.goods-finishes { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.goods-finishes th, .goods-finishes td { padding: 10px 16px; text-align: left; border-bottom: 1px solid #e7eaef; }
.goods-finishes th { background: #f6f7f9; font-weight: 600; color: var(--text); width: 60%; }
.goods-finishes td { color: var(--text-light); font-family: var(--font-en); }
.goods-finishes tbody tr:hover { background: #fafbfc; }

/* ============ 文章列表 ============ */
.list-item {
    display: flex;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
    background: #fff;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.list-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.list-item img {
    width: 200px; height: 140px; flex: none;
    object-fit: cover; border-radius: var(--radius-sm);
}
.list-item h3 { font-size: 18px; color: var(--text); font-weight: 600; margin-bottom: 8px; transition: color .2s; }
.list-item:hover h3 { color: var(--accent); }
.list-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.list-item .date { margin-top: 10px; font-size: 13px; color: var(--gray); font-family: var(--font-en); }

/* ============ 文章详情 ============ */
.article-detail h1 {
    font-family: var(--font-title); font-size: clamp(26px,3vw,36px);
    color: var(--primary); font-weight: 400;
    margin-bottom: 18px; padding-bottom: 16px; position: relative;
}
.article-detail h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    background: var(--primary);
}
.article-meta { font-size: 13px; color: var(--gray); margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-family: var(--font-en); }
.article-detail .content { font-size: 15.5px; line-height: 1.95; color: var(--text-light); }
.article-detail .content p { margin-bottom: 18px; }
.article-detail .content img { margin: 20px 0; border-radius: var(--radius); }
.article-nav { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.article-nav a { color: var(--text-light); transition: color .2s; }
.article-nav a:hover { color: var(--accent); }
.related { margin-top: 44px; }
.related__title { font-family: var(--font-title); font-size: 22px; color: var(--primary); margin-bottom: 18px; padding-left: 12px; border-left: 3px solid var(--primary); }
.related .grid .list-item { margin-bottom: 0; }

/* ============ 分页 ============ */
.pager { text-align: center; margin: 40px 0 10px; color: var(--gray); }
.pager a, .pager span { display: inline-block; padding: 8px 16px; margin: 0 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; transition: all .2s; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ 空状态 ============ */
.empty-tip { text-align: center; color: var(--gray); padding: 60px 0; font-size: 15px; }

/* ============ 搜索结果 ============ */
.search-summary { color: var(--gray); margin-bottom: 26px; font-size: 15px; }
.search-summary strong { color: var(--primary); font-weight: 600; }
.search-section { margin-top: 28px; }
.search-section__title {
    font-family: var(--font-title);
    font-size: 20px; color: var(--primary);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.search-list { list-style: none; padding: 0; margin: 0; }
.search-list li {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: background .2s;
}
.search-list li:last-child { border-bottom: 0; }
.search-list .search-list__link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #1a1a1a !important;
    font-size: 15px;
    font-weight: 500;
    transition: color .2s, transform .2s;
}
.search-list .search-list__link:hover { color: var(--accent) !important; }
.search-list__meta { font-family: var(--font-en); font-size: 13px; color: var(--gray); white-space: nowrap; }

/* ============ 联系我们（复刻 haizhou 两段式） ============ */
.contact-section { padding: clamp(70px, 7vw, 110px) 0; background: #fff; }
.contact-container { max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 90px); }
.contact-header { text-align: center; margin-bottom: 54px; }
.contact-header h2 { font-family: var(--font-title); font-size: clamp(30px, 3.4vw, 52px); font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.contact-header p { font-size: clamp(15px, 1.1vw, 18px); color: var(--gray); max-width: 720px; margin: 0 auto; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 64px); align-items: stretch; }

/* 左侧联系方式卡片（卡片均分高度，与右侧表单卡整体等高、上下齐平） */
.contact-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card { flex: 1; display: flex; flex-direction: column; justify-content: center; background: var(--bg-soft); padding: 28px 30px; border-radius: 12px; transition: transform .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card-icon {
    width: 48px; height: 48px; background: var(--primary); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.contact-card-icon svg { width: 24px; height: 24px; fill: #fff; }
.contact-card-label { font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-family: var(--font-en); }
.contact-card-value { font-size: 17px; color: var(--primary); font-weight: 500; line-height: 1.6; }
.contact-card-value a { color: var(--primary); text-decoration: none; transition: color .2s; }
.contact-card-value a:hover { color: var(--accent); }

/* 右侧表单卡片（替代地图，与左侧卡片对齐的浅灰风格） */
.contact-form-card {
    background: var(--bg-soft); border-radius: 16px; padding: clamp(30px, 3.6vw, 44px);
    box-shadow: 0 4px 20px rgba(10,22,40,.06);
}
.contact-form-title { font-family: var(--font-title); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.contact-form-sub { font-size: 14px; color: var(--gray); margin-bottom: 26px; line-height: 1.6; }
.contact-form { width: 100%; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px 18px; font-size: 15px;
    border: 1px solid var(--line); background: #fff;
    border-radius: 10px; color: var(--text); outline: none; transition: all .25s ease;
    font-family: var(--font-body);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #aaa; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,26,26,.1); }
.contact-form textarea { min-height: 140px; resize: vertical; margin-bottom: 22px; }
.contact-form .btn-submit {
    display: inline-flex; align-items: center; gap: 12px; padding: 15px 44px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 50px; font-size: 15px; font-weight: 600; letter-spacing: 1px;
    cursor: pointer; transition: all .3s ease; text-transform: uppercase; font-family: var(--font-en);
}
.contact-form .btn-submit svg { width: 20px; height: 20px; fill: #fff; transition: transform .3s ease; }
.contact-form .btn-submit:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(184,137,90,.3); }
.contact-form .btn-submit:hover svg { transform: translateX(6px); }

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { flex: none; }
}
@media (max-width: 768px) {
    .contact-card { padding: 24px; }
    .contact-form-card { padding: 28px 24px; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 16px; }
    .contact-form input, .contact-form textarea { padding: 14px 16px; }
}
@media (max-width: 480px) {
    .contact-form .btn-submit { width: 100%; justify-content: center; }
}

/* ============ 留言表单（通用，message 页复用） ============ */
.message-form { width: 100%; }
.form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.form-row .form-item { flex: 1; min-width: 200px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.form-item label .req { color: var(--accent); margin-left: 2px; }
.form-item input, .form-item textarea {
    width: 100%; padding: 13px 15px; font-size: 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font-body); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form-item input:focus, .form-item textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,137,90,.12); }
.form-item textarea { resize: vertical; }
.btn {
    display: inline-block;
    background: var(--primary); color: #fff; padding: 14px 44px;
    border: 0; border-radius: var(--radius-sm); cursor: pointer; font-size: 15px;
    font-family: var(--font-en); letter-spacing: 1px; transition: background .25s, transform .15s, color .25s;
    text-decoration: none;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn--outline {
    background: transparent; color: var(--primary);
    border: 1px solid var(--line);
}
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--accent {
    background: var(--accent);
    color: #fff !important;
}
.btn--accent:hover { background: #a07448; transform: translateY(-2px); }
.notice { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; margin: 10px 0 22px; color: var(--text-light); font-size: 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ============ 区块小标题 ============ */
.section-head { text-align: center; margin: 60px 0 34px; }
.section-head__en { font-family: var(--font-en); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); }
.section-head__title { font-family: var(--font-title); font-size: clamp(26px,3vw,38px); color: var(--primary); font-weight: 400; margin-top: 8px; }

/* ============ 产品列表页：复用首页 product-card 样式 ============ */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.8vw, 28px);
}

/* 列表页卡片高度随内容自适应，避免描述文字过长时溢出覆盖分页 */
.product-list-grid .product-card {
    aspect-ratio: auto;
    min-height: auto;
}

/* 列表页（含详情页"相关产品"）badge 排版最终方案：文字"围绕"圆形 badge。
   关键约束：围绕必须让 badge 与首行在同一水平带，因此首行不可能 100% 全宽——
   这是 CSS 物理限制，不是 padding 或字号能解决的。
   用户最终选择"围绕感"优先，所以把 badge 作为 body 子元素、放在 <h3> 之前，
   用 float:right + shape-outside: circle(50%) 让标题文字从首行起绕圆弧排版。
   - shape-outside 圆形半径 = badge 宽度的 50%（48px badge → 24px），与 SVG 圆背景对齐。
   - margin-left: 12px 给 badge 与被环绕文字之间留气口。
   - display: flow-root 让 body 形成 BFC 容纳浮动，防止 body 不撑高。 */
.product-list-grid .product-card__body {
    display: flow-root;
}

.product-list-grid .product-card__title {
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.2;
}

.product-list-grid .product-card__media {
    /* 正方形产品图：让图片区变成 1:1，图像像联系表一样撑满 */
    flex: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: auto;
}

.product-list-grid .product-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-list-grid .product-card__badge {
    /* 覆盖 base.css 的绝对定位，让 badge 进入文档流 */
    position: static;
    right: auto;
    bottom: auto;
    /* 浮到右上角，shape-outside 让标题从首行起避让圆形 */
    float: right;
    shape-outside: circle(50%);
    /* badge 与被环绕文字之间的视觉气口 */
    margin-left: 12px;
    /* 维持原尺寸（与 base.css 一致） */
    width: clamp(34px, 2.5vw, 48px);
    height: clamp(34px, 2.5vw, 48px);
    line-height: 0;
}

/* ============ 相关阅读（新闻） ============ */
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 20px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--text);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.related-item__date { font-family: var(--font-en); font-size: 13px; color: var(--gray); white-space: nowrap; min-width: 88px; }
.related-item__title { flex: 1; font-size: 16px; font-weight: 500; transition: color .2s; }
.related-item:hover .related-item__title { color: var(--accent); }
.related-item__arrow { font-size: 20px; color: var(--gray); transition: color .2s, transform .2s; }
.related-item:hover .related-item__arrow { color: var(--primary); transform: translateX(3px); }

@media (max-width: 900px) {
    .product-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .goods-detail { flex-direction: column; }
    .goods-detail__img { width: 100%; min-height: 340px; }
    .related-item { flex-wrap: wrap; gap: 8px 18px; }
    .related-item__date { min-width: auto; }
    .related-item__title { width: 100%; order: 3; }
}
@media (max-width: 560px) {
    .product-list-grid { grid-template-columns: minmax(0, 1fr); }
    .goods-detail__img { min-height: 280px; padding: 24px; }
    .goods-detail__info h1 { font-size: 24px; }
    .goods-detail__price { font-size: 20px; }
    .related-item { padding: 14px 16px; }
}

/* ============================================================
   Company page — Vision block (hard-coded, mirrors home page)
   View More buttons reuse .about__view-more (defined below).
   ============================================================ */

/* View More button (border + black arrow square, matches home design) */
.about__view-more {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(12px, 0.85vw, 16px);
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

.about__view-more > span:first-child {
    padding: clamp(10px, 1.0vw, 18px) clamp(18px, 1.8vw, 30px) clamp(10px, 1.0vw, 18px) clamp(14px, 1.3vw, 22px);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.about__view-more-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    width: clamp(28px, 1.8vw, 38px);
    height: clamp(28px, 1.8vw, 38px);
    aspect-ratio: 1 / 1;
    align-self: center;
    margin: clamp(4px, 0.5vw, 8px) clamp(4px, 0.5vw, 8px) clamp(4px, 0.5vw, 8px) 0;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.about__view-more-arrow svg {
    width: clamp(10px, 0.7vw, 14px);
    height: clamp(10px, 0.7vw, 14px);
}

.about__view-more:hover {
    background: #1a1a1a;
    color: #fff;
}

.about__view-more:hover .about__view-more-arrow {
    background: #fff;
    color: #1a1a1a;
}

/* Vision section */
.vision {
    position: relative;
    width: 100%;
    background: #ffffff;
    color: #111111;
    padding: clamp(64px, 7vw, 112px) 0 clamp(48px, 6vw, 96px);
    overflow: hidden;
}

.vision__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 4fr;
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: clamp(32px, 4vw, 56px);
}

.vision__circle {
    position: absolute;
    top: -160px;
    left: -260px;
    width: 740px;
    height: 740px;
    pointer-events: none;
    z-index: 0;
}

.vision__circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.35;
}

.vision__title {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    font-family: 'Georgia', 'Times New Roman', 'Songti SC', serif;
    font-weight: 400;
    font-size: clamp(56px, 7.4vw, 110px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: #0a0a0a;
    margin: 0 0 clamp(20px, 2.4vw, 40px);
}

.vision__top {
    position: relative;
    z-index: 1;
    grid-column: 2 / -1;
    margin-bottom: 0;
}

.vision__lead {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.55vw, 28px);
    line-height: 1.55;
    color: #1a1a1a;
    margin: 0;
    max-width: 1072px;
    text-align: justify;
}

.vision__middle {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 4fr;
    align-items: end;
    gap: clamp(16px, 2vw, 32px);
}

.vision__caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 1vw, 16px);
    padding-bottom: clamp(16px, 2vw, 32px);
}

.vision__caption-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 0.8vw, 12px);
}

.vision__plus {
    font-family: 'Georgia', 'Times New Roman', 'Songti SC', serif;
    font-size: clamp(20px, 1.6vw, 28px);
    line-height: 1;
    color: #0a0a0a;
}

.vision__caption-text {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.55;
    color: #111111;
    margin: 0;
}

.vision__view-more {
    flex-shrink: 0;
}

.vision__products {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 1.4vw, 28px);
}

.vision__product {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.vision__product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vision__bottom {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    margin-top: 0;
}

.vision__bottom .about__view-more.vision__view-more {
    align-self: flex-end;
    flex: 0 0 auto;
}

.vision__bottom-title {
    font-family: 'Georgia', 'Times New Roman', 'Songti SC', serif;
    font-weight: 400;
    font-size: clamp(40px, 5.6vw, 74px);
    line-height: 1.15;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Vision responsive: stack to single column on narrow screens */
@media (max-width: 900px) {
    .vision__inner,
    .vision__middle {
        grid-template-columns: 1fr;
    }
    .vision__top {
        grid-column: 1 / -1;
    }
    .vision__caption {
        padding-bottom: 0;
    }
    .vision__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* ==================== Company page: simplified Vision (text-only) ==================== */
/* Clean editorial layout that matches the Company Profile block above. */
.company-vision-simple {
    margin-top: 0;
    padding-top: 0;
}
.company-vision-simple__title {
    font-family: "Baskervville", "Times New Roman", serif;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 clamp(18px, 2vw, 28px);
    padding-bottom: 18px;
    position: relative;
}
.company-vision-simple__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 2px;
    background: #b8895a;
}
.company-vision-simple__lead {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.9;
    color: #4a4a4a;
    margin: 0 0 clamp(28px, 3vw, 40px);
    max-width: 920px;
}


/* ==================== Factory 车间厂房图片列表 ==================== */
.factory-empty {
    padding: 60px 0;
    text-align: center;
    color: var(--gray);
    font-size: 15px;
}
.factory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.8vw, 28px);
}
.main .factory-grid { margin-top: 0; }
@media (max-width: 992px) {
    .factory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .factory-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
    }
    .factory-card__title {
        padding: 13px 14px;
        font-size: 14px;
    }
}
.factory-card {
    margin: 0;
    cursor: pointer;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.factory-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.factory-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}
.factory-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.factory-card:hover .factory-card__thumb img { transform: scale(1.05); }
.factory-card__title {
    padding: 16px 18px;
    font-size: 15px;
    color: var(--text);
    text-align: center;
    line-height: 1.5;
}

/* Factory lightbox */
.factory-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.factory-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.factory-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
}
.factory-lightbox__stage {
    position: relative;
    z-index: 2;
    max-width: 88vw;
    max-height: 88vh;
    text-align: center;
}
.factory-lightbox__stage img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.factory-lightbox__title {
    margin: 18px 0 0;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-title);
    letter-spacing: .02em;
}
.factory-lightbox__close,
.factory-lightbox__nav {
    position: absolute;
    z-index: 3;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color .2s;
}
.factory-lightbox__close:hover,
.factory-lightbox__nav:hover { color: var(--accent); }
.factory-lightbox__close {
    top: 18px;
    right: 24px;
    font-size: 42px;
    line-height: 1;
}
.factory-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    padding: 12px;
}
.factory-lightbox__prev { left: 16px; }
.factory-lightbox__next { right: 16px; }

@media (max-width: 900px) {
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-lightbox__prev { left: 6px; }
    .factory-lightbox__next { right: 6px; }
}
@media (max-width: 560px) {
    .factory-grid { grid-template-columns: 1fr; }
}

/* ==================== Pagination ==================== */
.pager {
    position: relative;
    z-index: 10;
    margin: clamp(48px, 6vw, 84px) 0 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination li {
    display: inline-flex;
    flex-shrink: 0;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all .2s ease;
}

.pagination li a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination li.active span {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg);
}

.pagination li.disabled span {
    opacity: .45;
    cursor: not-allowed;
}

/* ============ 验证码（留言 / 联系表单） ============ */
.captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.captcha-row input[type="text"] {
    flex: 1 1 140px;
    min-width: 140px;
    width: auto;
}
.captcha-img {
    width: 120px;
    height: auto;
    align-self: stretch;
    object-fit: fill;
    flex: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f4f5f7;
    cursor: pointer;
    display: block;
    transition: border-color .2s ease;
}
.captcha-img:hover {
    border-color: var(--accent);
}
@media (max-width: 480px) {
    .captcha-row input[type="text"] { flex-basis: 100%; order: 1; }
    .captcha-img { width: 110px; }
}

/* ============ 产品推荐标签 + 相册画廊（1.9.33 前台增量） ============ */
.tag {
    display: inline-block;
    font-size: 12px; font-weight: 600; line-height: 1;
    padding: 4px 8px; border-radius: 4px;
    color: #fff; white-space: nowrap;
    vertical-align: 3px; margin-left: 6px;
}
.tag--hot   { background: #e4393c; }
.tag--promo { background: #ff8c00; }
.tag--new   { background: #2fa84f; }

/* 列表卡片标签行：clear 让 float 型 badge 的「文字环绕」排版不被破坏 */
.product-card__body .card__tags {
    clear: both;
    margin: 8px 0 0; line-height: 1;
}
.card__tags .tag { font-size: 11px; padding: 3px 6px; margin: 0 4px 0 0; vertical-align: 0; }

/* 相册：点击缩略图切换主图 */
.goods-album {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 12px;
}
.goods-album__item {
    width: 76px; height: 76px; flex: none;
    object-fit: cover; border-radius: 6px;
    background: #f5f5f5; cursor: pointer;
    border: 2px solid #e5e5e5;
    transition: border-color .2s ease;
}
.goods-album__item:hover { border-color: #f3a3a6; }
.goods-album__item.is-active { border-color: var(--accent); }
@media (max-width: 576px) {
    .goods-album { gap: 8px; }
    .goods-album__item { width: 62px; height: 62px; }
}

/* 详情页主图容器是「居中 flex」，且 .goods-detail__img img 带 width:100%：
   相册必须独占一行，缩略图必须用更高特异性覆盖上述 img 规则，否则会被撑变形 */
.goods-detail__img { flex-wrap: wrap; }
.goods-detail__img .goods-album { flex-basis: 100%; justify-content: center; }
.goods-detail__img .goods-album__item { width: 76px; height: 76px; max-height: 76px; }
@media (max-width: 576px) {
    .goods-detail__img .goods-album__item { width: 62px; height: 62px; max-height: 62px; }
}
