/* =====================================================
   Rottboter 官网样式 — 深空蓝科技风（匹配白色 LOGO）
   响应式 H5，兼顾欧洲/东南亚/中东浏览习惯
   ===================================================== */
:root {
    --bg: #0a0f1e;
    --bg-alt: #0d1528;
    --panel: #111c33;
    --border: #1e2c4a;
    --text: #e8eef8;
    --text-dim: #9aa9c4;
    --accent: #2f7bff;
    --accent-2: #29d3ff;
    --accent-dark: #1a54d8;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(0, 10, 40, .45);
    --glow: 0 0 22px rgba(47, 123, 255, .35);
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(6, 10, 22, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.main-nav > a { color: var(--text-dim); font-weight: 500; font-size: 15px; padding: 6px 0; }
.main-nav > a:hover, .main-nav > a.active { color: #fff; }
.main-nav > a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta {
    background: var(--accent); color: #fff !important; padding: 8px 18px !important;
    border-radius: 6px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch {
    border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px;
    color: var(--text-dim); font-size: 13px; font-weight: 600;
}
.lang-switch:hover { border-color: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* 导航下拉子菜单（关于我们） */
.nav-item { position: relative; }
.nav-item .nav-parent {
    color: var(--text-dim); font-weight: 500; font-size: 15px; padding: 6px 0;
    display: flex; align-items: center; gap: 7px;
}
.nav-item:hover .nav-parent, .nav-item.active .nav-parent { color: #fff; }
.nav-item.active .nav-parent { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-item .caret {
    width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg); margin-top: -3px; transition: transform .2s;
}
.nav-item:hover .caret { transform: rotate(-135deg); margin-top: 3px; }
.nav-dd {
    position: absolute; top: 100%; left: -14px; min-width: 190px;
    background: #0b1224; border: 1px solid var(--border); border-radius: 10px;
    padding: 8px; display: none; flex-direction: column; z-index: 70;
    box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
/* 隐形桥接区：防止鼠标从导航项移向菜单时 hover 中断 */
.nav-dd::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .nav-dd, .nav-item:focus-within .nav-dd { display: flex; }
.nav-dd a { color: var(--text-dim); font-size: 14px; padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.nav-dd a:hover { color: #fff; background: rgba(41,211,255,.09); }
@media (max-width: 640px) {
    .nav-dd::before { display: none; }
    .nav-dd {
        position: static; display: flex; min-width: 0; background: transparent;
        border: 0; border-left: 1px solid var(--border); border-radius: 0;
        box-shadow: none; margin: 0 0 6px 14px; padding: 2px 0 2px 8px;
    }
    .nav-dd a { padding: 8px 10px; }
}

/* ===== Hero ===== */
.hero { position: relative; height: 560px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity .8s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,9,22,.9) 0%, rgba(7,14,36,.6) 55%, rgba(10,20,50,.28) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content h1 { font-size: 44px; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-content p { font-size: 18px; color: #d5dde5; margin-bottom: 28px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots button.active { background: var(--accent); }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: rgba(47,123,255,.14); color: var(--accent-2); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-block { display: block; width: 100%; margin-top: 10px; }

/* ===== Stats ===== */
.stats { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px; gap: 16px; }
.stat-item { text-align: center; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--accent); text-shadow: 0 0 18px rgba(47,123,255,.5); }
.stat-label { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head h2 { font-size: 32px; color: #fff; position: relative; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; box-shadow: var(--glow); }
.section-head p { color: var(--text-dim); margin-top: 12px; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 32px; }
.section-more { text-align: center; margin-top: 40px; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); border-color: rgba(47,123,255,.55); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #070c18; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-region {
    position: absolute; top: 12px; left: 12px; background: rgba(26,84,216,.92);
    color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-tag { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card-body h3 { font-size: 18px; }
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--text-dim); font-size: 14px; flex: 1; }
.card-body time { color: var(--text-dim); font-size: 13px; }
.card-more { font-size: 14px; font-weight: 600; margin-top: 6px; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-item {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 22px; text-align: center; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-item:hover { transform: translateY(-4px); border-color: rgba(47,123,255,.55); box-shadow: var(--glow); }
.feature-icon { font-size: 34px; margin-bottom: 12px; }
.feature-item h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.feature-item p { color: var(--text-dim); font-size: 14px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-weight: 600; color: #fff;
    list-style: none; position: relative; padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 18px; color: var(--text-dim); font-size: 15px; }

/* ===== Page hero & breadcrumb ===== */
.page-hero {
    background:
        radial-gradient(ellipse 60% 90% at 85% 10%, rgba(47,123,255,.16) 0%, transparent 60%),
        linear-gradient(120deg, #0c1631 0%, #0a0f1e 100%);
    border-bottom: 1px solid var(--border);
    padding: 52px 0 36px;
}
.page-hero h1 { font-size: 34px; color: #fff; }
.breadcrumb { margin-top: 10px; color: var(--text-dim); font-size: 14px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* ===== Detail pages ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.detail-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.lead { font-size: 17px; color: var(--text); background: linear-gradient(90deg, rgba(47,123,255,.1), var(--panel)); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 24px; }
.detail-main h2 { font-size: 24px; color: #fff; margin: 30px 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.rich { color: var(--text-dim); font-size: 15px; }
.rich p, .rich ul, .rich ol { margin-bottom: 14px; }
.rich ul, .rich ol { padding-left: 24px; }
.rich img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; }
.rich a { text-decoration: underline; }
.rich table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.rich th, .rich td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.rich th { background: var(--panel); color: #fff; white-space: nowrap; }
.specs { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px; }
.detail-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-size: 17px; color: #fff; margin-bottom: 10px; }
.side-box p { color: var(--text-dim); font-size: 14px; }
.side-list { list-style: none; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--text); font-size: 14px; }

/* ===== Article ===== */
.article { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.article-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.article-cta { text-align: center; margin-top: 34px; }

/* ===== About ===== */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
/* 关于我们：banner 下锚点标签 */
.about-anchor-tabs { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.about-anchor-tabs .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
.about-anchor-tabs a {
    color: var(--text-dim); font-size: 14px; font-weight: 500;
    padding: 8px 20px; border: 1px solid var(--border); border-radius: 999px;
    transition: all .2s;
}
.about-anchor-tabs a:hover { color: var(--accent); border-color: var(--accent); background: rgba(41,211,255,.08); }
/* 简介双栏 */
.about-intro {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
}
.about-content { font-size: 16px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.about-content h3 { color: #fff; font-size: 19px; margin: 22px 0 10px; padding-left: 12px; border-left: 3px solid var(--accent); }
.about-content h3:first-child { margin-top: 0; }
.about-intro-photo img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 14px 44px rgba(0,0,0,.4);
}
.about-facts { margin-top: 0; }
.facts-section { border-top: 1px solid var(--border); }
@media (max-width: 900px) {
    .about-intro { grid-template-columns: 1fr; }
    .about-intro-photo { order: -1; }
}

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 26px; color: #fff; margin-bottom: 14px; }
.contact-info p { color: var(--text-dim); margin-bottom: 20px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--text-dim); font-size: 15px; }
.contact-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); padding: 12px 14px; font-size: 15px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-msg { text-align: center; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--accent-2); }
.form-msg.err { color: #e5534b; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, #1a54d8 0%, #2f7bff 55%, #1e8fe0 100%); padding: 54px 0; box-shadow: inset 0 0 80px rgba(0,20,80,.35); }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; font-size: 26px; margin-bottom: 22px; }

/* ===== Footer ===== */
.site-footer { background: #070b16; border-top: 1px solid var(--border); padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; }
.footer-col p { color: var(--text-dim); font-size: 14px; }
.contact-line { margin-bottom: 8px; }
.footer-cta { color: var(--accent) !important; font-weight: 600; margin-top: 8px; }
/* 底部社交图标（类似截图：深色圆角方块 + 白色图标） */
.footer-social { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px; padding: 0 !important;
    background: #1b2333; border: 1px solid var(--border); color: #e8edf6;
    transition: background .2s, border-color .2s, transform .2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social svg { display: block; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-dim); font-size: 13px; }

/* ===== WhatsApp float ===== */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Pagination ===== */
.pagination { text-align: center; margin-top: 34px; }
.pagination a, .pagination span { display: inline-block; padding: 7px 14px; margin: 0 4px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); font-size: 14px; }
.pagination span, .pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .card-grid, .card-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { height: 460px; }
    .hero-content h1 { font-size: 34px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .main-nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: #070b16; border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; padding: 14px 20px; gap: 4px;
    }
    .main-nav.open { display: flex; }
    .main-nav > a { padding: 12px 0; }
    .nav-toggle { display: block; }
    .hero { height: 400px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    .card-grid, .card-grid.grid-3 { grid-template-columns: 1fr; }
    .feature-grid, .contact-layout, .form-row { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .section-head h2 { font-size: 25px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { justify-content: center; text-align: center; }
    .stats-grid { padding: 24px 20px; }
}

/* 核心团队（关于我们）：创始人 CEO + 国际销售总监 */
.leaders-section { border-top: 1px solid var(--border); }
.leaders-head { text-align: center; margin-bottom: 40px; }
.section-title {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    font-size: 32px;
    color: #fff;
    position: relative;
    padding-bottom: 14px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    box-shadow: var(--glow);
}
.leaders-head .section-title { margin-bottom: 10px; }
.leaders-desc { color: var(--text-dim); font-size: 15px; }

.leader-card {
    display: flex;
    gap: 44px;
    align-items: center;
    background: var(--panel, rgba(255,255,255,.04));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 32px;
}
.leader-card.leader-reverse { flex-direction: row-reverse; }
.leader-photo { flex: 0 0 320px; }
.leader-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.leader-info h3 { font-size: 24px; color: #fff; margin: 10px 0 16px; line-height: 1.4; }
.leader-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(41,211,255,.12);
    border: 1px solid rgba(41,211,255,.4);
    color: #29d3ff;
    font-size: 14px;
    font-weight: 600;
}
.leader-info p { color: var(--text-dim); margin-bottom: 12px; line-height: 1.85; }
.leader-info p + p { margin-bottom: 0; }
@media (max-width: 860px) {
    .leader-card, .leader-card.leader-reverse { flex-direction: column; padding: 24px; gap: 24px; }
    .leader-photo { flex: none; width: 100%; max-width: 380px; }
    .leader-info h3 { font-size: 20px; text-align: center; }
    .leader-badge { display: block; text-align: center; }
}

/* 全球客户拜访（关于我们）：照片卡片网格 */
.visits-section { border-top: 1px solid var(--border); }
.visits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.visit-card {
    margin: 0;
    background: var(--panel, rgba(255,255,255,.04));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.visit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(41,211,255,.55);
    box-shadow: 0 16px 44px rgba(0,0,0,.4);
}
.visit-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.visit-card figcaption { padding: 18px 22px 22px; }
.visit-card figcaption strong {
    display: block;
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}
.visit-card figcaption strong::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f7bff, #29d3ff);
    margin-right: 10px;
    vertical-align: middle;
}
.visit-card figcaption span { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) {
    .visits-grid { grid-template-columns: 1fr; }
    .visit-card img { height: 210px; }
}

/* 联系页照片墙 */
.gallery-section .section-title { text-align: center; margin-bottom: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; background: var(--panel); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }

/* 前台分类筛选标签页 */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-tabs a { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); font-size: 14px; transition: all .2s; }
.filter-tabs a:hover { border-color: #29d3ff; color: #29d3ff; }
.filter-tabs a.active { background: linear-gradient(135deg, #2f7bff, #29d3ff); color: #fff; border-color: transparent; }

/* 后台富文本编辑器（wangEditor） */
.rich-wrap { border: 1px solid var(--border, #2a3b5c); border-radius: 8px; background: #fff; overflow: hidden; }
.rich-wrap .rich-toolbar { border-bottom: 1px solid #e3eaf2; }
.rich-wrap .rich-area { height: 380px; overflow-y: auto; }
.rich-source[hidden] { display: none; }
.rich-wrap .w-e-toolbar { background: #f6f8fb !important; }
