/* ================================================================
 * 柔晶美软件工作室 - PC端公共样式表
 * 配色方案：主色#c97d8b(柔玫红) 文字#3d2c2e 背景#fdf8f6 边框#f0e8e4
 * 柔美温和色调，体现"柔晶美"品牌风格
 * 响应式断点：1200px / 992px / 768px / 480px
 * 最大宽度1200px，移动端适配
 * ================================================================ */

/* ====== CSS 变量定义 ====== */
:root {
    /* 主色系 - 柔玫红（dusty rose） */
    --color-primary: #c97d8b;
    --color-primary-dark: #b06a78;
    --color-primary-light: #fdf2f4;
    --color-primary-gradient: linear-gradient(135deg, #c97d8b 0%, #d4a0a8 50%, #e0c0c8 100%);
    --color-hero-gradient: linear-gradient(160deg, #3d2c2e 0%, #5c3a3f 40%, #7a4a50 70%, #5c4045 100%);
    /* 文字色 - 暖棕 */
    --color-text: #3d2c2e;
    --color-text-secondary: #8c7b78;
    --color-text-light: #b8a8a4;
    /* 背景色 - 暖奶油 */
    --color-bg: #fdf8f6;
    --color-bg-card: #ffffff;
    --color-bg-hover: #fef9f7;
    --color-bg-dark: #3d2c2e;
    /* 边框色 */
    --color-border: #f0e8e4;
    --color-border-light: #f8f2ef;
    /* 功能色 */
    --color-success: #7ca88d;
    --color-warning: #e0a86c;
    --color-danger: #d4787a;
    --color-accent: #d4a8a0;
    /* 圆角 */
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(201,125,139,0.15);
    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    /* 布局 */
    --max-width: 1200px;
    --header-height: 68px;
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; display: block; }
img[src^="http"] { opacity: 0; transition: opacity 0.4s; }
img[src^="http"].loaded { opacity: 1; }

ul { list-style: none; }

/* ====== 通用容器 ====== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== 顶部导航栏 ====== */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.main-nav ul { display: flex; gap: 2px; }

.main-nav li a {
    display: block;
    padding: 8px 20px;
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.25s ease;
}
.main-nav li a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.main-nav li a:hover::after { transform: translateX(-50%) scaleX(1); }
.main-nav li.active a { background: var(--color-primary); color: #fff; }
.main-nav li.active a::after { display: none; }

/* 移动端汉堡菜单按钮（窄屏显示） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}
/* 汉堡菜单激活态（变叉号） */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端导航遮罩层 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-overlay.show {
    display: block;
    opacity: 1;
}

/* ====== 主体内容区 ====== */
.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* ====== 页面标题 ====== */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

/* ====== 首页左右分栏布局 ====== */
.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 0 0 56px;
}

.home-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.home-section:hover { box-shadow: var(--shadow-hover); }

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.home-section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.home-section-header .more {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.home-section-body {
    padding: 16px 20px;
}

/* 首页文章列表项（简洁列表样式） */
.home-article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
}

.home-article-item:last-child { border-bottom: none; }

.home-article-item .thumb {
    width: 64px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-article-item .info { flex: 1; min-width: 0; }

.home-article-item .info h3 {
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.home-article-item .info h3 a { color: var(--color-text); }
.home-article-item .info h3 a:hover { color: var(--color-primary); }

.home-article-item .info .meta {
    font-size: 13px;
    color: var(--color-text-light);
}

/* 首页商品列表项（简洁列表样式） */
.home-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
}

.home-product-item:last-child { border-bottom: none; }

.home-product-item .thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-product-item .info { flex: 1; min-width: 0; }

.home-product-item .info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.home-product-item .info h3 a { color: var(--color-text); }
.home-product-item .info h3 a:hover { color: var(--color-primary); }

.home-product-item .price {
    color: var(--color-danger);
    font-weight: 600;
    font-size: 15px;
}

.home-product-item .price .original {
    color: var(--color-text-light);
    font-size: 13px;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

/* ====== 企业信息区 ====== */
.company-info-section {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 32px;
    margin-bottom: 32px;
}

.company-info-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-text);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.company-info-item {
    text-align: center;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.company-info-item .label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.company-info-item .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

/* ====== 卡片网格布局（文章/商品列表通用） ====== */
.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 文章卡片 */
.article-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.article-card .card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--color-bg);
}

.article-card .card-body {
    padding: 16px;
}

.article-card .card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    /* 标题最多两行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-body h3 a { color: var(--color-text); }
.article-card .card-body h3 a:hover { color: var(--color-primary); }

.article-card .card-summary {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-light);
}

/* 商品卡片 */
.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.product-card .card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--color-bg);
}

.product-card .card-body {
    padding: 16px;
}

.product-card .card-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-body h3 a { color: var(--color-text); }
.product-card .card-body h3 a:hover { color: var(--color-primary); }

.product-card .card-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-card .card-price .price {
    color: var(--color-danger);
    font-size: 18px;
    font-weight: 700;
}

.product-card .card-price .original {
    color: var(--color-text-light);
    font-size: 13px;
    text-decoration: line-through;
}

.product-card .card-sales {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* ====== 分类筛选栏 ====== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.filter-bar .filter-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-right: 4px;
}

.filter-bar a {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: all 0.2s;
}

.filter-bar a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.filter-bar a.active {
    background: var(--color-primary);
    color: #fff;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.search-box input {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    width: 200px;
}

.search-box input:focus { border-color: var(--color-primary); }

.search-box button {
    padding: 6px 18px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-box button:hover { background: var(--color-primary-dark); }

/* ====== 分页 ====== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-card);
    transition: all 0.2s;
}

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

.pagination .current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .disabled {
    color: var(--color-text-light);
    cursor: not-allowed;
}

/* ====== 文章详情页 ====== */
.article-detail {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.article-detail h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-tags .tag {
    padding: 2px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 12px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 22px; margin: 24px 0 12px; }
.article-content h3 { font-size: 18px; margin: 20px 0 10px; }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.article-content pre {
    background: #3d2c2e;
    color: #e8d8d4;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
}
.article-content code {
    background: var(--color-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.article-content pre code { background: none; padding: 0; }

/* 相关文章侧栏 */
.related-section {
    margin-top: 32px;
}

.related-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}

.related-item:hover { box-shadow: var(--shadow); }

.related-item .thumb {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-item .info { flex: 1; min-width: 0; }

.related-item .info h4 {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-item .info h4 a { color: var(--color-text); }
.related-item .info h4 a:hover { color: var(--color-primary); }

.related-item .info .date {
    font-size: 12px;
    color: var(--color-text-light);
}

/* ====== 商品详情页 ====== */
.product-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 32px;
}

/* 商品图片区 */
.product-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
}

.product-gallery .thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-gallery .thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-gallery .thumbs img:hover,
.product-gallery .thumbs img.active {
    border-color: var(--color-primary);
}

/* 商品信息区 */
.product-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-info .price-box {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.product-info .price-box .current-price {
    font-size: 32px;
    color: var(--color-danger);
    font-weight: 700;
}

.product-info .price-box .original-price {
    font-size: 16px;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-left: 12px;
}

.product-info .price-box .sales {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

.product-info .desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* 扫码购买引导 */
.buy-guide {
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    background: var(--color-primary-light);
}

.buy-guide h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.buy-guide .qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 14px;
    border: 1px solid var(--color-border);
}

.buy-guide p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.buy-guide .shop-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
}

.buy-guide .shop-link:hover { background: var(--color-primary-dark); color: #fff; }

/* ====== 订单查询页 ====== */
.order-query-page {
    max-width: 600px;
    margin: 0 auto;
}

.order-query-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.order-query-card h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.order-query-card .subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.order-query-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.order-query-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
}

.order-query-form input:focus { border-color: var(--color-primary); }

.order-query-form button {
    padding: 12px 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
    white-space: nowrap;
}

.order-query-form button:hover { background: var(--color-primary-dark); }
.order-query-form button:disabled { opacity: 0.6; cursor: not-allowed; }

/* 查询结果展示 */
.order-result {
    margin-top: 24px;
}

.order-result .result-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.order-result .result-card .status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-paid { background: #dcfce7; color: var(--color-success); }
.status-unpaid { background: #fef3c7; color: var(--color-warning); }
.status-refunded { background: #fee2e2; color: var(--color-danger); }

.order-result .result-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 14px;
}

.order-result .result-row:last-child { border-bottom: none; }

.order-result .result-row .label {
    width: 100px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.order-result .result-row .value {
    color: var(--color-text);
    font-weight: 500;
}

.order-result .download-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: var(--color-success);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
}

.order-result .download-btn:hover { opacity: 0.9; color: #fff; }

.order-result .error-msg {
    text-align: center;
    padding: 24px;
    color: var(--color-danger);
    font-size: 15px;
}

/* ====== 关于我们页 ====== */
.about-page {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.about-page h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.about-page .about-intro {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-license {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 32px;
}

.about-license h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.about-license-table {
    width: 100%;
    border-collapse: collapse;
}

.about-license-table th,
.about-license-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.about-license-table th {
    width: 160px;
    color: var(--color-text-secondary);
    font-weight: 500;
    background: var(--color-bg-card);
}

.about-license-table td {
    color: var(--color-text);
    font-weight: 500;
}

/* ====== 错误页 ====== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page .error-code {
    font-size: 72px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.error-page .error-msg {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.error-page .back-home {
    display: inline-block;
    padding: 10px 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
}

.error-page .back-home:hover { background: var(--color-primary-dark); color: #fff; }

/* ====== 空数据提示 ====== */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
    font-size: 15px;
}

/* ================================================================
 * 以下为管理后台样式
 * ================================================================ */

/* ====== 管理后台整体布局 ====== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

/* 侧边栏 */
.admin-sidebar {
    width: 220px;
    background: var(--color-bg-dark);
    color: #d8c8c4;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.admin-sidebar .sidebar-header h2 {
    font-size: 16px;
    color: #fff;
}

.admin-sidebar .sidebar-header p {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.admin-sidebar .sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.admin-sidebar .sidebar-nav a {
    display: block;
    padding: 12px 24px;
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-sidebar .sidebar-nav a:hover {
    background: #334155;
    color: #fff;
}

.admin-sidebar .sidebar-nav a.active {
    background: var(--color-primary);
    color: #fff;
}

.admin-sidebar .sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid #334155;
}

.admin-sidebar .sidebar-footer a {
    color: #94a3b8;
    font-size: 14px;
}

.admin-sidebar .sidebar-footer a:hover { color: #fff; }

/* 主内容区 */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-topbar {
    height: 56px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.admin-topbar .topbar-title {
    font-size: 18px;
    font-weight: 600;
}

.admin-topbar .topbar-user {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ====== 仪表盘统计卡片 ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* 快捷入口 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-action-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.quick-action-card:hover { box-shadow: var(--shadow-hover); }

.quick-action-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.quick-action-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ====== 管理后台表格 ====== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.admin-table tbody tr:hover { background: var(--color-bg); }

.admin-table .table-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-table .action-btns {
    display: flex;
    gap: 6px;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201,125,139,0.3);
}
.btn-primary:hover { opacity: 0.92; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,125,139,0.4); }

.btn-success { background: var(--color-success); color: #fff; }
.btn-success:hover { opacity: 0.9; color: #fff; }

.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ====== 管理后台表单 ====== */
.admin-form-group {
    margin-bottom: 16px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.admin-form-group input[type="text"],
.admin-form-group input[type="number"],
.admin-form-group input[type="password"],
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--color-primary);
}

.admin-form-group textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* HTML格式提示 */
.html-hint {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 6px;
    line-height: 1.6;
}

.html-hint code {
    background: var(--color-bg-card);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--color-primary);
}

/* ====== 模态弹窗 ====== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    overflow-y: auto;
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    width: 700px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 { font-size: 18px; }

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
    line-height: 1;
}

.modal-body { padding: 24px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
}

/* ====== 图片上传组件 ====== */
.upload-box {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-box:hover { border-color: var(--color-primary); }

.upload-box .upload-text {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.upload-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-preview .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.upload-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.upload-preview .preview-item .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--color-danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== 登录页 ====== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d2c2e 0%, #c97d8b 100%);
}

.login-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 380px;
    max-width: 90%;
    padding: 40px;
}

.login-card h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--color-text);
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.login-card .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
}

.login-card .form-group input:focus { border-color: var(--color-primary); }

.login-card .btn-login {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-card .btn-login:hover { background: var(--color-primary-dark); }
.login-card .btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

.login-error {
    color: var(--color-danger);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    min-height: 20px;
}

/* ====== 状态标签 ====== */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.published { background: #dcfce7; color: var(--color-success); }
.status-tag.draft { background: #f1f5f9; color: var(--color-text-secondary); }
.status-tag.online { background: #dcfce7; color: var(--color-success); }
.status-tag.offline { background: #fee2e2; color: var(--color-danger); }

/* ====== 管理后台分页 ====== */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.admin-pagination button {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-card);
    cursor: pointer;
    font-size: 14px;
}

.admin-pagination button:hover { border-color: var(--color-primary); }
.admin-pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-pagination button.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* ================================================================
 * 响应式适配
 * ================================================================ */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    /* 服务优势 4 列降为 2 列（平板中间态） */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    /* 1024px 以下首页商品迷你网格降为 1 列，避免过窄 */
    .product-grid-vertical { grid-template-columns: 1fr; }
}

/* 768px 以下：启用汉堡菜单抽屉，导航横向保留 logo+按钮 */
@media (max-width: 768px) {
    /* 显示汉堡按钮 */
    .nav-toggle { display: flex; }
    /* 导航默认隐藏，作为右侧抽屉滑入 */
    .main-nav {
        position: fixed;
        top: 0;
        right: -240px;                 /* 默认藏到屏幕右侧外 */
        width: 240px;
        height: 100vh;
        background: var(--color-bg-card);
        box-shadow: -2px 0 12px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 200;
        padding: 72px 0 24px;          /* 顶部留出关闭区域 */
        overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav li a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid var(--color-border-light);
        border-radius: 0;
        font-size: 15px;
    }
    .main-nav li a:hover { background: var(--color-bg-hover); }
    .main-nav li.active a {
        background: var(--color-primary);
        color: #fff;
        border-radius: 0;
    }

    /* 首页分栏与栅格降级 */
    .home-split { grid-template-columns: 1fr; }
    .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .company-info-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .related-list { grid-template-columns: 1fr; }

    /* 管理后台侧边栏抽屉 */
    .admin-sidebar {
        position: fixed;
        left: -220px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    .admin-sidebar.open { left: 0; }
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .admin-sidebar-overlay.show { display: block; }
    .admin-form-row { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }

    /* 详情页/查询页内边距收缩 */
    .article-detail, .about-page, .order-query-card { padding: 20px; }
    .article-detail { padding: 20px; }
    .about-info-card, .about-intro-card, .query-form-card { padding: 20px 16px; }

    /* 筛选栏/搜索栏纵向布局 */
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .search-box { margin-left: 0; width: 100%; }
    .search-box input { flex: 1; }

    /* 商品详情左右栏纵向堆叠 */
    .product-detail-left, .product-detail-right { width: 100%; }
    .product-detail-main-img { height: 280px; }
    .product-detail-name { font-size: 22px; }

    /* 文章详情标题收缩 */
    .article-detail-title { font-size: 22px; }

    /* Banner 区内边距收缩 */
    .banner { padding: 48px 16px; margin-bottom: 24px; }
    .banner-title { font-size: 26px; }
    .banner-subtitle { font-size: 15px; margin-bottom: 20px; }
    .banner-actions .btn { width: 100%; }
    .banner-actions { flex-direction: column; gap: 10px; }

    /* 主体内容区内边距收缩 */
    .site-main { padding: 20px 0; }
    .feature-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    /* 超小屏：服务优势与卡片网格统一单列 */
    .features-grid { grid-template-columns: 1fr; }
    .article-card-grid, .product-card-grid { grid-template-columns: 1fr; }
    /* 容器左右内边距收窄，充分利用小屏宽度 */
    .container { padding: 0 14px; }
}

/* ================================================================
 * 补充样式：管理后台模板使用的类名适配
 * 以下样式为模板中使用的 CSS 类名提供样式定义，
 * 与上方已有样式互补，确保所有模板元素正确渲染。
 * ================================================================ */

/* ====== 管理后台布局适配 ====== */
/* admin-body：管理后台 body 基础样式（flex 布局，侧边栏 + 主内容区水平排列） */
.admin-body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

/* admin-sidebar-logo：侧边栏 Logo 文字 */
.admin-sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #334155;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* admin-nav：侧边栏导航 */
.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav ul { list-style: none; }
.admin-nav li a {
    display: block;
    padding: 12px 24px;
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.admin-nav li a:hover { background: #334155; color: #fff; }
.admin-nav li.active a { background: var(--color-primary); color: #fff; }

/* admin-wrapper：管理后台主内容区外层 */
.admin-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100vh;
}

/* admin-topbar 区域 */
.admin-topbar-left { display: flex; align-items: center; }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-breadcrumb { font-size: 18px; font-weight: 600; }

/* admin-menu-toggle：移动端汉堡菜单按钮（默认隐藏，768px 以下显示） */
.admin-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
}
.admin-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}
/* 移动端显示汉堡按钮 */
@media (max-width: 768px) {
    .admin-menu-toggle { display: flex; }
}
.admin-user { font-size: 14px; color: var(--color-text-secondary); }
.admin-logout { font-size: 14px; color: var(--color-danger); text-decoration: none; }
.admin-logout:hover { text-decoration: underline; }

/* admin-table-wrap：表格容器 */
.admin-table-wrap {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow);
}

/* 表格单元格样式 */
.admin-table .td-title { font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .td-actions { white-space: nowrap; }
.admin-table .td-mono { font-family: 'Courier New', monospace; font-size: 13px; }
.admin-table .no-img { color: var(--color-text-light); font-size: 12px; }
.admin-table .empty-row { text-align: center; color: var(--color-text-secondary); padding: 40px 0; }

/* ====== 分页控件适配 ====== */
.page-btn {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-card);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text);
    display: inline-block;
}
.page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.page-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.page-ellipsis { padding: 6px 8px; color: var(--color-text-secondary); }
.page-info { font-size: 14px; color: var(--color-text-secondary); padding: 0 8px; }

/* ====== 表单适配 ====== */
/* form-group：通用表单组 */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

/* form-input：通用表单输入框 */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: var(--color-bg-card);
    color: var(--color-text);
}
.form-input:focus { border-color: var(--color-primary); }

/* form-textarea：通用文本域 */
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    background: var(--color-bg-card);
    color: var(--color-text);
}
.form-textarea:focus { border-color: var(--color-primary); }
.form-textarea-large { min-height: 300px; }

/* form-row / form-col：表单行布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-col { min-width: 0; }

/* upload-box：上传区域（行内布局版） */
.upload-box {
    display: flex;
    gap: 8px;
    align-items: center;
}
.upload-box .form-input { flex: 1; }

/* img-preview：图片预览 */
.img-preview { margin-top: 8px; }

/* format-hint：HTML格式说明 */
.format-hint {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 6px;
    line-height: 1.8;
}
.format-hint p { font-weight: 500; margin-bottom: 4px; }
.format-hint ul { padding-left: 20px; }

/* ====== 按钮补充 ====== */
.btn-block { width: 100%; text-align: center; }

/* ====== 模态弹窗适配 ====== */
.modal-dialog {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    width: 700px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-large { width: 900px; }

/* ====== 预览图列表（商品管理多图上传） ====== */
.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}
.preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--color-danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ====== 状态标签补充 ====== */
.status-tag.status-published { background: #dcfce7; color: var(--color-success); }
.status-tag.status-draft { background: #f1f5f9; color: var(--color-text-secondary); }
.status-tag.status-paid { background: #dcfce7; color: var(--color-success); }
.status-tag.status-unpaid { background: #fef3c7; color: var(--color-warning); }
.status-tag.status-refunded { background: #fee2e2; color: var(--color-danger); }

/* ====== 仪表盘适配 ====== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* 统计卡片图标颜色 */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 8px;
}
.stat-icon-article { background: #dbeafe; color: var(--color-primary); }
.stat-icon-product { background: #dcfce7; color: var(--color-success); }
.stat-icon-order { background: #fef3c7; color: var(--color-warning); }
.stat-icon-paid { background: #fce7f3; color: #db2777; }

.stat-info { text-align: center; }

/* 快捷操作区 */
.dashboard-actions { margin-top: 24px; }
.dashboard-actions h2 { font-size: 18px; margin-bottom: 16px; }
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.action-card {
    display: block;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s;
}
.action-card:hover { box-shadow: var(--shadow-hover); }
.action-icon {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary);
}
.action-card p { font-size: 13px; color: var(--color-text-secondary); }

/* ====== 筛选下拉框 ====== */
.filter-select select {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    background: var(--color-bg-card);
}

/* ====== 订单详情表格 ====== */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}
.detail-table th,
.detail-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    text-align: left;
}
.detail-table th {
    width: 120px;
    color: var(--color-text-secondary);
    font-weight: 500;
    background: var(--color-bg);
}

/* ====== 管理后台登录页适配 ====== */
.admin-login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d2c2e 0%, #c97d8b 100%);
}
.admin-login-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 380px;
    max-width: 90%;
    padding: 40px;
}
.admin-login-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: var(--color-text);
}
.admin-login-subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}
.admin-login-form .form-group { margin-bottom: 20px; }
.admin-login-form .form-input { padding: 10px 14px; font-size: 15px; }

/* ====== 补充响应式 ====== */
@media (max-width: 768px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .action-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px; }
}

@media (max-width: 480px) {
    .dashboard-stats { grid-template-columns: 1fr; }
}

/* ================================================================
 * 补充样式：公开页面模板类名适配
 * 以下样式为公开页面模板中使用的 CSS 类名提供样式定义。
 * ================================================================ */

/* ====== Banner 横幅区 ====== */
.banner {
    background: var(--color-hero-gradient);
    color: #fff;
    padding: 100px 24px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -180px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,168,160,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.banner::after {
    content: '';
    position: absolute;
    bottom: -200px; left: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,125,139,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.banner-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.banner-title {
    font-size: 48px; margin-bottom: 20px; font-weight: 900;
    letter-spacing: 2px; line-height: 1.2;
}
.banner-subtitle {
    font-size: 19px; opacity: 0.85; max-width: 680px;
    margin: 0 auto 40px; line-height: 1.8; font-weight: 300;
}
.banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.banner-actions .btn {
    padding: 14px 36px; font-size: 16px; border-radius: var(--radius-full);
    font-weight: 600; letter-spacing: 0.5px;
}
.banner-actions .btn-primary {
    background: #fff; color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.banner-actions .btn-primary:hover {
    background: #fdf2f4; transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.banner-actions .btn-outline {
    color: #fff; border: 2px solid rgba(255,255,255,0.4); background: transparent;
}
.banner-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1); border-color: #fff; color: #fff;
}

/* ====== 服务优势区 ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0 48px;
}
.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 36px 24px 28px;
    text-align: center;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: var(--color-primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition-bounce);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--color-text); }
.feature-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* ====== 区块标题 ====== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}
.section-header h2 {
    font-size: 22px; font-weight: 800; color: var(--color-text);
    position: relative;
    padding-left: 16px;
}
.section-header h2::before {
    content: '';
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    width: 4px;
    background: var(--color-primary-gradient);
    border-radius: 2px;
}
.more-link {
    font-size: 14px; color: var(--color-primary);
    text-decoration: none; font-weight: 500;
    display: flex; align-items: center; gap: 4px;
    transition: gap 0.3s;
}
.more-link:hover { gap: 8px; text-decoration: none; }

/* ====== 页面标题区 ====== */
.page-header-section { text-align: center; margin-bottom: 40px; padding-top: 8px; }
.page-header-section h1 { font-size: 32px; font-weight: 800; color: var(--color-text); margin-bottom: 10px; }
.page-subtitle { font-size: 16px; color: var(--color-text-secondary); }

/* ====== 面包屑导航 ====== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    padding: 10px 0;
}
.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .separator { color: var(--color-text-light); }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* ====== 首页文章迷你卡片 ====== */
.article-list-vertical {
    background: var(--color-bg-card); border-radius: var(--radius-sm);
    padding: 8px 0;
}
.article-card-mini { border-bottom: 1px solid var(--color-border-light); }
.article-card-mini:last-child { border-bottom: none; }
.article-card-mini-link {
    display: flex; gap: 14px; padding: 14px 20px;
    text-decoration: none; color: var(--color-text);
    transition: background 0.2s;
}
.article-card-mini-link:hover { background: var(--color-bg-hover); }
.article-card-mini-link:hover .article-card-mini-title { color: var(--color-primary); }
.article-card-mini-img { width: 80px; height: 60px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.article-card-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card-mini-link:hover .article-card-mini-img img { transform: scale(1.05); }
.article-card-mini-body { flex: 1; min-width: 0; }
.article-card-mini-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.article-card-mini-summary { font-size: 13px; color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.article-card-mini-date { font-size: 12px; color: var(--color-text-light); }

/* ====== 首页商品迷你卡片 ====== */
.product-grid-vertical { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card-mini {
    background: var(--color-bg-card); border-radius: var(--radius-sm);
    overflow: hidden; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.product-card-mini:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card-mini-link { display: block; text-decoration: none; color: var(--color-text); }
.product-card-mini-img { width: 100%; height: 100px; background: var(--color-bg); overflow: hidden; }
.product-card-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card-mini:hover .product-card-mini-img img { transform: scale(1.05); }
.product-card-mini-body { padding: 12px 14px; }
.product-card-mini-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card-mini-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.product-card-mini-sales { font-size: 12px; color: var(--color-text-light); }

/* ====== 价格样式 ====== */
.price-now { color: var(--color-danger); font-weight: 600; font-size: 16px; }
.price-old { color: var(--color-text-light); font-size: 13px; text-decoration: line-through; }
.price-now-large { color: var(--color-danger); font-weight: 700; font-size: 32px; }
.price-old-large { color: var(--color-text-light); font-size: 16px; text-decoration: line-through; margin-left: 12px; }

/* ====== 卡片网格（文章/商品列表） ====== */
.article-card-grid, .product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 文章卡片 */
.article-card {
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.article-card-link { display: block; text-decoration: none; color: var(--color-text); }
.article-card-img { width: 100%; height: 190px; background: var(--color-bg); overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 20px; }
.article-card-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-link:hover .article-card-title { color: var(--color-primary); }
.article-card-summary { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.article-card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--color-text-light); }

/* 商品卡片 */
.product-card {
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card-link { display: block; text-decoration: none; color: var(--color-text); }
.product-card-img { width: 100%; height: 190px; background: var(--color-bg); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 20px; }
.product-card-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.product-card-link:hover .product-card-name { color: var(--color-primary); }
.product-card-desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-card-price { display: flex; align-items: baseline; gap: 6px; }
.product-card-sales { font-size: 12px; color: var(--color-text-light); }

/* ====== 筛选栏 ====== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tag {
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}
.filter-tag:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-tag.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ====== 搜索栏 ====== */
.search-bar { margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; max-width: 500px; }
.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.search-input:focus { border-color: var(--color-primary); }

/* ====== 图片占位符 ====== */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-text-light);
    font-size: 14px;
    width: 100%;
    height: 100%;
}
.img-placeholder.large { min-height: 300px; }

/* ====== 空状态提示 ====== */
.empty-tip { text-align: center; color: var(--color-text-secondary); padding: 20px 0; font-size: 14px; }
.empty-state { text-align: center; color: var(--color-text-secondary); padding: 60px 0; font-size: 16px; grid-column: 1 / -1; }

/* ====== 企业信息表格 ====== */
.company-info-card { background: var(--color-bg-card); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 32px; }
.company-info-table { width: 100%; border-collapse: collapse; }
.company-info-table th, .company-info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    text-align: left;
}
.company-info-table th { width: 120px; color: var(--color-text-secondary); font-weight: 500; background: var(--color-bg); }
.company-info-table td { color: var(--color-text); }
.company-info-table tr:last-child th, .company-info-table tr:last-child td { border-bottom: none; }

/* ====== 文章详情页适配 ====== */
.article-detail-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}
.article-detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.article-detail-tags .tag {
    padding: 2px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 12px;
}
.article-detail-cover { margin-bottom: 24px; }
.article-detail-cover img { width: 100%; border-radius: var(--radius); }
.article-detail-content { font-size: 16px; line-height: 1.8; color: var(--color-text); }
.article-detail-content p { margin-bottom: 16px; }
.article-detail-content h2 { font-size: 22px; margin: 24px 0 12px; }
.article-detail-content h3 { font-size: 18px; margin: 20px 0 10px; }
.article-detail-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.article-detail-content pre { background: #3d2c2e; color: #e8d8d4; padding: 16px; border-radius: var(--radius); overflow-x: auto; margin: 16px 0; }
.article-detail-content code { background: var(--color-bg); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article-detail-content pre code { background: none; padding: 0; }
.article-detail-content a { color: var(--color-primary); }
.article-detail-content ul, .article-detail-content ol { margin-bottom: 16px; padding-left: 24px; }
/* 文章详情底部返回链接 */
.article-detail-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.back-link {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.back-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ====== 商品详情页适配 ====== */
.product-detail-left { flex-shrink: 0; }
.product-detail-main-img { width: 100%; height: 400px; border-radius: var(--radius); border: 1px solid var(--color-border); overflow: hidden; margin-bottom: 12px; background: var(--color-bg); }
.product-detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 2px solid var(--color-border); cursor: pointer; transition: border-color 0.2s; }
.thumb-img:hover { border-color: var(--color-primary); }
.product-detail-right { flex: 1; }
.product-detail-name { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.product-detail-desc { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 20px; }
.product-detail-price-box { background: var(--color-bg); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.product-detail-stats { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 20px; }
.buy-guide { border: 2px dashed var(--color-primary); border-radius: var(--radius); padding: 24px; text-align: center; background: var(--color-primary-light); }
.buy-guide h2 { font-size: 18px; color: var(--color-primary); margin-bottom: 12px; }
.buy-guide-text { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 16px; }
.buy-guide-qr { margin-bottom: 12px; }
.buy-guide-qr .qr-placeholder {
    width: 160px; height: 160px; margin: 0 auto;
    background: #fff; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-secondary); font-size: 14px;
    border: 1px solid var(--color-border);
}
.buy-guide-tip { font-size: 13px; color: var(--color-text-secondary); }
.buy-guide-tip a { color: var(--color-primary); }
.product-detail-info { background: var(--color-bg-card); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 24px; }

/* ====== 错误页适配 ====== */
.error-page { text-align: center; padding: 80px 20px; }
.error-inner { max-width: 500px; margin: 0 auto; }
.error-code { font-size: 80px; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; }
.error-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; color: var(--color-text); }
.error-message { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ====== 关于我们页适配 ====== */
.about-info-card { background: var(--color-bg-card); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 32px; margin-bottom: 24px; }
.about-info-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.about-intro-card { background: var(--color-bg-card); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 32px; margin-bottom: 24px; }
.about-intro-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.about-intro-card p { font-size: 15px; line-height: 1.8; color: var(--color-text); margin-bottom: 12px; }
/* 带左色条的区块标题（增强视觉层级） */
.section-title-accent {
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
    line-height: 1.2;
}
/* 关于页引导区：首段文字略大、加深底色突出 */
.about-lead { background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); }
.about-lead .about-lead-text { font-size: 16px; color: var(--color-text); font-weight: 500; }

/* ====== 订单查询页适配 ====== */
.query-form-card { background: var(--color-bg-card); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 40px; max-width: 600px; margin: 0 auto; }
.query-form { display: flex; gap: 10px; margin-bottom: 20px; }
.query-input {
    flex: 1; padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px; outline: none;
}
.query-input:focus { border-color: var(--color-primary); }
.query-result { margin-top: 20px; }
.result-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}
.result-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { width: 100px; color: var(--color-text-secondary); flex-shrink: 0; }
.result-row .value { flex: 1; color: var(--color-text); }
.status-badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.status-unpaid { background: #fef3c7; color: var(--color-warning); }
.status-badge.status-paid { background: #dcfce7; color: var(--color-success); }
.status-badge.status-refunded { background: #fee2e2; color: var(--color-danger); }
.download-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
}
.download-btn:hover { background: var(--color-primary-dark); color: #fff; }
.error-msg { color: var(--color-danger); font-size: 14px; text-align: center; padding: 20px; }
.query-tips { background: var(--color-bg-card); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 24px; margin-top: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.query-tips h2 { font-size: 16px; margin-bottom: 12px; }
.query-tips ul { padding-left: 20px; }
.query-tips li { font-size: 14px; color: var(--color-text-secondary); line-height: 2; }

/* ====== 公开页分页适配 ====== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination .page-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-card);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.pagination .page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.pagination .page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pagination .page-btn.active { background: var(--color-primary-gradient); color: #fff; border-color: transparent; }
.pagination .page-ellipsis { padding: 8px 6px; color: var(--color-text-secondary); }

/* ====== 公开页响应式补充（文章/商品列表中间态） ====== */
@media (max-width: 1024px) {
    .article-card-grid, .product-card-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .article-card-grid, .product-card-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .home-split { grid-template-columns: 1fr; }
    .banner-title { font-size: 32px; }
    .banner { padding: 64px 20px; }
}

@media (max-width: 480px) {
    .banner-title { font-size: 26px; }
    .footer-qr-img { width: 80px; height: 80px; }
}

/* ====== 查询系统列表页 ====== */
.query-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.query-project-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.query-project-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.query-project-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--color-primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.query-project-body { flex: 1; min-width: 0; }
.query-project-name {
    font-size: 17px; font-weight: 700;
    margin-bottom: 4px; color: var(--color-text);
}
.query-project-desc {
    font-size: 13px; color: var(--color-text-secondary);
    margin-bottom: 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.query-project-meta {
    display: flex; gap: 14px;
    font-size: 12px; color: var(--color-text-light);
}
.query-project-arrow {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--color-text-light);
    transition: color 0.2s;
}
.query-project-card:hover .query-project-arrow { color: var(--color-primary); }

/* ====== 查询详情页结果信息 ====== */
.query-result-info {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 20px;
    padding: 10px 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
}

/* ====== 后台站点设置页 ====== */
.settings-form-wrap {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 24px;
}
.settings-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.settings-section:first-child { padding-top: 0; }
.settings-section:last-of-type { border-bottom: none; }
.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
    padding-left: 10px;
    border-left: 3px solid var(--color-primary);
}
.settings-save-bar {
    text-align: center;
    padding: 20px 0;
}

/* ====== 二维码上传区域 ====== */
.qr-upload-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.qr-preview {
    width: 120px;
    height: 120px;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}
.qr-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qr-placeholder {
    color: var(--color-text-light);
    font-size: 13px;
    text-align: center;
}
.qr-upload-right {
    flex: 1;
}
@media (max-width: 600px) {
    .qr-upload-wrap {
        flex-direction: column;
        align-items: center;
    }
    .qr-upload-right {
        width: 100%;
    }
}

/* ====== 查询页面模板样式（自定义模板渲染） ====== */
.query-tpl-page {
    max-width: 700px;
    margin: 24px auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.query-tpl-header {
    display: flex;
    align-items: center;
    justify-content: center;
}
.query-tpl-header-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.query-tpl-content {
    padding: 24px;
}
.query-tpl-desc {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* ====== 后台模板管理页 ====== */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.preset-card {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: border-color 0.2s, transform 0.2s;
}
.preset-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}
.preset-preview {
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}
.preset-info {
    padding: 10px 12px;
    background: var(--color-bg-card);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.preset-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.preset-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* 模板编辑器左右布局 */
.template-editor-layout {
    display: flex;
    gap: 20px;
}
.template-config-panel {
    flex: 1;
    min-width: 0;
}
.template-preview-panel {
    flex-shrink: 0;
    width: 360px;
}
.preview-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}
.preview-container {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}

/* 模板配置分区 */
.tpl-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.tpl-section:last-of-type { border-bottom: none; }
.tpl-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}

/* 颜色输入框组件 */
.color-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.color-input-wrap input[type="color"] {
    width: 40px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
    background: var(--color-bg-card);
}
.color-input-wrap input[type="text"] {
    flex: 1;
}

/* 超大弹窗 */
.modal-xlarge {
    max-width: 1000px;
    width: 90%;
}

/* ====== 页脚 ====== */
.site-footer {
    background: var(--color-bg-dark);
    color: #d8c8c4;
    padding: 32px 0 24px;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-left {
    flex: 1;
    min-width: 240px;
}
.footer-info {
    margin-bottom: 12px;
}
.footer-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.footer-shop {
    font-size: 14px;
}
.footer-shop a {
    color: #d4a8a0;
    text-decoration: none;
}
.footer-shop a:hover {
    text-decoration: underline;
}
.footer-copyright {
    font-size: 13px;
    color: #b8a8a4;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copyright p {
    margin: 4px 0;
}
.footer-copyright a {
    color: #b8a8a4;
    text-decoration: none;
}
.footer-copyright a:hover {
    color: #d8c8c4;
    text-decoration: underline;
}
/* 公安备案行：图标+文字 */
.footer-police {
    display: flex;
    align-items: center;
    gap: 4px;
}
.footer-police img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}
/* 右侧小程序二维码 */
.footer-qr {
    text-align: center;
    flex-shrink: 0;
}
.footer-qr-img {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
    object-fit: contain;
}
.footer-qr-text {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}
/* 移动端：页脚纵向布局 */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-left {
        text-align: center;
    }
    .footer-police {
        justify-content: center;
    }
}
