/* =========================================================
   矗鑫拍卖 · 首页 V2  ——  参照 rzpm.com 结构重做（深蓝 + 描金美化）
   结构：顶部条 → 头部 → 主导航 → 轮播 →
        [三栏：公告Tab列表 | 企业简介 | 最新公告详情] →
        拍卖实录图片长廊 → 友情链接 → 页脚
   独立样式，仅复用 /js/main.js 的数据接口，不改动现有页面/后台
   ========================================================= */
:root {
    --ink: #12233f;
    --ink-2: #1b3358;
    --ink-soft: #2a4368;
    --gold: #c8a45c;
    --gold-light: #e3c98a;
    --gold-dark: #a9853f;
    --paper: #ffffff;
    --cream: #f7f4ee;
    --line: #e6e0d4;
    --text: #22303f;
    --text-light: #6b7787;
    --shadow: 0 4px 18px rgba(18, 35, 63, 0.10);
    --shadow-lg: 0 14px 40px rgba(18, 35, 63, 0.16);
    --radius: 8px;
    --max-width: 1160px;
    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text); background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased;
    min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; transition: color .2s, background .2s; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--ink); color: #cdd6e4; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { display: flex; align-items: center; justify-content: flex-end; gap: 20px; height: 36px; }
.topbar a { color: #cdd6e4; }
.topbar a:hover { color: var(--gold-light); }
.topbar .sep { color: rgba(255,255,255,.25); }

/* ---------- 头部 ---------- */
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 13px; }
.logo-icon {
    width: 50px; height: 50px; flex: none; display: grid; place-items: center;
    font-size: 27px; font-weight: 700; color: var(--gold-light);
    background: linear-gradient(135deg, var(--ink), var(--ink-soft)); border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(200,164,92,.5);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.logo-text .brand { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: 3px; line-height: 1.15; }
.logo-text .sub { font-size: 11px; color: var(--text-light); letter-spacing: 4px; text-transform: uppercase; }

/* ---------- 主导航 ---------- */
.mainnav { background: linear-gradient(180deg, var(--ink-2), var(--ink)); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.mainnav .container { display: flex; align-items: stretch; justify-content: space-between; }
.nav { display: flex; }
.nav a { position: relative; padding: 0 22px; line-height: 52px; color: #dfe6f0; font-size: 16px; letter-spacing: 1px; }
.nav a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 11px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold-light); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 14px 6px; }
.menu-toggle span { width: 24px; height: 2px; background: #dfe6f0; }

/* ---------- 轮播 Banner ---------- */
.carousel { position: relative; overflow: hidden; background: var(--ink); }
.slides { position: relative; height: 400px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,35,63,.82) 0%, rgba(18,35,63,.42) 48%, rgba(18,35,63,.12) 100%); }
.slide-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.slide-content .kicker { align-self: flex-start; font-size: 13px; letter-spacing: 4px; color: var(--gold-light); border: 1px solid rgba(227,201,138,.5); border-radius: 30px; padding: 5px 16px; margin-bottom: 16px; }
.slide-content h2 { font-size: 40px; line-height: 1.25; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide-content p { font-size: 17px; max-width: 540px; color: #e6ebf2; margin-bottom: 24px; }
.slide-btn { align-self: flex-start; background: var(--gold); color: var(--ink); font-weight: 600; padding: 12px 30px; border-radius: 6px; letter-spacing: 1px; box-shadow: 0 6px 18px rgba(200,164,92,.4); }
.slide-btn:hover { background: var(--gold-light); }

/* ---------- 三栏主区 ---------- */
.main-row { padding: 26px 0 8px; }
.main-row .container { display: grid; grid-template-columns: 1.05fr 1.15fr 0.95fr; gap: 20px; align-items: stretch; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 46px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.panel-title { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.panel-title .bar { width: 4px; height: 17px; background: var(--gold); border-radius: 2px; }
.panel-more { font-size: 13px; color: var(--gold-light); }
.panel-more:hover { color: #fff; }

/* Tabs（左栏：拍卖公告/最新资讯/精选案例） */
.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--cream); }
.tabs button { flex: 1; border: none; background: transparent; cursor: pointer; padding: 12px 4px; font-size: 15px; color: var(--text-light); position: relative; transition: color .2s, background .2s; }
.tabs button.active { color: var(--gold-dark); background: var(--paper); font-weight: 600; }
.tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
/* 欢迎滚动条 */
.ticker { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; background: #fffdf7; border-bottom: 1px dashed var(--line); overflow: hidden; font-size: 13px; color: var(--gold-dark); }
.ticker .horn { flex: none; }
.ticker .track { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker .track span { display: inline-block; padding-left: 100%; animation: ticker 16s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.notice-list { list-style: none; padding: 6px 0; min-height: 236px; flex: 1; }
.notice-list li { border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { display: flex; align-items: center; gap: 9px; padding: 10px 16px; font-size: 14px; color: var(--text); }
.notice-list a:hover { background: var(--cream); color: var(--gold-dark); }
.notice-list .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.notice-list .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list .date { font-size: 12px; color: var(--text-light); flex: none; }
.notice-empty { padding: 40px 16px; text-align: center; color: var(--text-light); font-size: 14px; }

/* 企业简介（中栏） */
.about-body { padding: 18px 18px 20px; flex: 1; }
.about-body .intro { font-size: 14px; color: var(--text-light); }
.about-body .intro p { margin-bottom: 10px; }
.about-body .intro p:last-child { margin-bottom: 0; }
.about-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--gold-dark); font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.about-more:hover { color: var(--ink); }

/* 最新公告详情（右栏） */
.featured-body { padding: 18px; flex: 1; }
.featured-body .f-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 8px; }
.featured-body .f-date { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.featured-body .f-text { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.featured-body .f-link { display: inline-block; margin-top: 14px; color: var(--gold-dark); font-weight: 600; font-size: 14px; }
.featured-body .f-link:hover { color: var(--ink); }

/* ---------- 我们的服务 ---------- */
.services { padding: 40px 0 44px; }
.services-head { text-align: center; margin-bottom: 30px; }
.services-head h2 { font-size: 26px; color: var(--ink); font-weight: 700; }
.services-head .rule { width: 56px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 2px; }
.services-head p { color: var(--text-light); font-size: 14px; margin-top: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card .icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--cream); border: 1px solid var(--line); }
.service-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-light); }

/* ---------- 精选案例 ---------- */
.cases { padding: 26px 0 6px; }
.cases .panel { padding: 0; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 46px; border-bottom: 1px solid var(--line); }
.gallery-head .panel-title { color: var(--ink); }
.cases-scroller { overflow: hidden; padding: 18px 0; }
.cases-track { display: flex; gap: 16px; width: max-content; padding: 0 18px; animation: cases-scroll 32s linear infinite; }
.cases-scroller:hover .cases-track { animation-play-state: paused; }
@keyframes cases-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.case-card { display: block; flex: none; width: 240px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card .cover { width: 100%; height: 150px; object-fit: cover; display: block; }
.case-card .cover-fallback { display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--gold-dark); font-size: 2rem; }
.case-card .meta { padding: 10px 12px; }
.case-card .meta h4 { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-card .meta .d { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #b9c3d2; margin-top: auto; }
.footer-simple { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 0 30px; text-align: center; }
.fs-lockup { display: flex; align-items: center; gap: 12px; }
.fs-logo { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--gold-light); background: linear-gradient(135deg, var(--ink-2), var(--ink-soft)); border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(200,164,92,.5); }
.fs-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.fs-brand { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 3px; }
.fs-sub { font-size: 12px; color: #8b96a6; letter-spacing: 2px; }
.fs-sub .dot { color: var(--gold); margin: 0 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: 13px; color: #8b96a6; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom .beian-icon { display: inline-block; height: 16px; width: auto; vertical-align: -3px; margin-right: 5px; }

/* ---------- 回到顶部 ---------- */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; background: var(--gold); color: var(--ink); font-size: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .main-row .container { grid-template-columns: 1fr 1fr; }
    .col-featured { grid-column: 1 / -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .slides { height: 340px; } .slide-content h2 { font-size: 30px; }
}
@media (max-width: 680px) {
    .menu-toggle { display: flex; }
    .mainnav .container { position: relative; }
    .nav { position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; background: var(--ink); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .nav.open { max-height: 420px; box-shadow: var(--shadow-lg); }
    .nav a { line-height: 48px; border-top: 1px solid rgba(255,255,255,.06); }
    .nav a::after { display: none; }
    .main-row .container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .slides { height: 300px; } .slide-content h2 { font-size: 24px; } .slide-content p { font-size: 15px; }
}
