/* ============================================================
   佛山市坚胜吴贸易有限公司 - 苹果风格主题样式（Apple Style）
   ============================================================ */

:root {
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --border: #d2d2d7;
    --border-light: #e8e8ed;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-dark: #0066cc;
    --danger: #ff3b30;
    --success: #34c759;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 980px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
        "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部细线 */
.hazard-stripe {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============ 顶部信息栏 ============ */
.top-bar {
    background: #fbfbfd;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-muted);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px;
}

.top-bar a {
    color: var(--text-muted);
}

.top-bar a:hover {
    color: var(--accent);
}

.top-bar .sep {
    margin: 0 8px;
    color: var(--border);
}

/* ============ 导航栏（毛玻璃） ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.brand .logo-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0071e3, #5ac8fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    border-radius: 9px;
}

.brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand .brand-cn {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand .brand-en {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links li a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all .2s ease;
}

.nav-links li a:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.04);
}

.nav-links li a.active {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
}

.nav-links li a.btn-nav {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
}

.nav-links li a.btn-nav:hover {
    background: var(--accent-hover);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0, 113, 227, 0.10), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(90, 200, 250, 0.12), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

.hero .container {
    position: relative;
    padding-top: 84px;
    padding-bottom: 84px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent);
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--radius-pill);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero h1 .accent {
    background: linear-gradient(120deg, #0071e3, #5ac8fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    color: var(--text-muted);
    font-size: 19px;
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-stat .num {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat .label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #e03026;
    color: #fff;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}

/* ============ 区块 ============ */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 6px;
}

.section-more {
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
}

.section-more:hover {
    color: var(--accent-hover);
}

/* ============ 产品卡片 ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.card-img {
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7c7cc;
    font-size: 40px;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
}

.card-img .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-body h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-body h3 a {
    color: var(--text);
}

.card-body h3 a:hover {
    color: var(--accent);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-meta span {
    background: var(--surface-2);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.card-body p {
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
}

/* ============ 博客卡片 ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.blog-card {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all .25s ease;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.blog-card .date-box {
    min-width: 64px;
    height: 64px;
    background: var(--surface-2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-card .date-box .day {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.blog-card .date-box .mon {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-card .info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.blog-card .info h3 a {
    color: var(--text);
}

.blog-card .info h3 a:hover {
    color: var(--accent);
}

.blog-card .info p {
    color: var(--text-muted);
    font-size: 14px;
}

.blog-card .tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-top: 10px;
}

/* ============ 分类标签 ============ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.category-tabs a {
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}

.category-tabs a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-tabs a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============ 页脚 ============ */
.footer {
    background: #fbfbfd;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    color: var(--text-muted);
}

.footer-main {
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.footer p,
.footer li {
    font-size: 14px;
    line-height: 2;
}

.footer ul {
    list-style: none;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ============ 面包屑 & 页面标题 ============ */
.page-head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
    padding: 44px 0;
}

.page-head h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .cur {
    color: var(--text);
}

/* ============ 分页 ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 36px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--text);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============ 文章/详情正文 ============ */
.article-body {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    line-height: 1.85;
    color: var(--text);
    font-size: 16px;
    overflow-wrap: break-word;
    box-shadow: var(--shadow-sm);
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: var(--text);
    margin: 1.2em 0 .5em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.article-body h3 {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.article-body p {
    margin-bottom: 1em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: var(--radius);
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 1em;
}

.article-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.article-body table td,
.article-body table th {
    border: 1px solid var(--border-light);
    padding: 8px 12px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
    padding: 12px 16px;
    margin: 1em 0;
    color: var(--text-muted);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

/* ============ 产品详情规格表 ============ */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-table td,
.spec-table th {
    border-bottom: 1px solid var(--border-light);
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.spec-table th {
    background: var(--surface-2);
    color: var(--text-muted);
    width: 120px;
    font-weight: 500;
}

/* ============ 表单 ============ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ============ 认证页面 ============ */
.auth-wrap {
    max-width: 440px;
    margin: 64px auto;
    padding: 0 24px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-card .sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-card .foot {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ============ 工厂/关于页面 ============ */
.factory-hero {
    background: linear-gradient(135deg, #ffffff, #f5f5f7);
    border-bottom: 1px solid var(--border-light);
    padding: 64px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-item .k {
    font-size: 13px;
    color: var(--text-muted);
}

.info-item .v {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.contact-list .ico {
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-list .k {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-list .v {
    font-size: 15px;
    color: var(--text);
}

/* ============ 空状态 ============ */
.empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}

.empty .ico {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ============ 提示信息 ============ */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.4);
    color: #1d7a37;
}

.alert-error {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.4);
    color: #d0342b;
}

/* ============ 后台布局 ============ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #fbfbfd;
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s ease;
}

.admin-sidebar .admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-weight: 600;
}

.admin-sidebar .admin-brand .logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0071e3, #5ac8fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 8px;
}

.admin-menu {
    list-style: none;
    padding: 12px 0;
}

.admin-menu .menu-group {
    padding: 14px 20px 6px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all .2s ease;
}

.admin-menu li a:hover {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.06);
}

.admin-menu li a.active {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.1);
    font-weight: 500;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    min-width: 0;
}

.admin-topbar {
    height: 60px;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-topbar .page-title {
    font-size: 17px;
    font-weight: 600;
}

.admin-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.admin-content {
    padding: 24px;
}

.admin-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
}

/* ============ 后台卡片/表格 ============ */
.panel {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 10px;
}

.panel-head h3 {
    font-size: 16px;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: var(--surface-2);
}

.table .thumb {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-2);
}

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(52, 199, 89, 0.12);
    color: #1d7a37;
}

.badge-muted {
    background: var(--surface-2);
    color: var(--text-muted);
}

.badge-accent {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent);
}

/* ============ 仪表盘统计卡 ============ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card .num {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* ============ CKEditor 容器 ============ */
.ckeditor-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ckeditor-wrapper .ck-editor__editable_inline {
    min-height: 320px;
    background: #fff;
    color: #1d1d1f;
}

.ckeditor-wrapper .ck-editor__editable_inline:focus {
    outline: none;
}

/* ============ 文件预览 ============ */
.file-preview {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 13px;
    margin-top: 8px;
}

/* ============ 工具类 ============ */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============ 响应式：平板 ============ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ 响应式：手机 ============ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fbfbfd;
        border-bottom: 1px solid var(--border-light);
        padding: 12px 20px;
        gap: 4px;
        box-shadow: var(--shadow);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links li a {
        display: block;
        width: 100%;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid,
    .blog-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .article-body {
        padding: 22px;
    }
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-toggle {
        display: block;
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-content {
        padding: 16px;
    }
    .table {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .hero .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero h1 {
        font-size: 30px;
    }
}
