/* ============================================
   六壬预测咨询 - 高级定制样式
   字体风格：Claude风（Inter + 中文系统字体）
   ============================================ */

/* ===== 字体引入（本地优先，系统字体兜底） ===== */
@import url('/static/css/fonts.css');

/* ===== CSS变量（六壬主题配色 + Claude风格字体） ===== */
:root {
    --primary: #9B2226;
    --primary-dark: #7B1A1A;
    --gold: #D4A850;
    --gold-light: #F0E0C0;
    --gold-dark: #B88930;
    --dark: #1A0F0A;
    --dark-brown: #3A1F14;
    --warm: #F5EDE0;
    --cream: #FFFBF5;
    --light-gold: #FBF5E8;
    --gray: #7A7068;
    --light-gray: #EDE8E0;
    --border: #DCD0C0;
    --shadow-sm: 0 2px 8px rgba(26, 15, 10, 0.08);
    --shadow: 0 4px 20px rgba(26, 15, 10, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 15, 10, 0.18);
    --shadow-gold: 0 4px 20px rgba(212, 168, 80, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 字体族：Inter（英文）+ 中文系统字体（Claude风格） */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
    --font-brush: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
    /* 字重（Claude风格偏细） */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 装饰性背景纹理 ===== */
.pattern-dots {
    background-image: radial-gradient(rgba(200,169,110,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===== Header（玻璃质感） ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 15, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
    padding: 0;
    height: 72px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(200, 169, 110, 0.3);
}

.logo-text {
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1.2;
    font-family: var(--font-serif);
}

.logo-sub {
    color: rgba(200, 169, 110, 0.6);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 300;
    font-family: var(--font-sans);
}

.nav { display: flex; gap: 2px; align-items: center; }

.nav a {
    color: rgba(232, 213, 168, 0.7);
    padding: 8px 18px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: var(--font-sans);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav a:hover, .nav a.active {
    color: var(--gold-light);
    background: rgba(200, 169, 110, 0.08);
}

/* ===== Hero（沉浸式大背景） ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1A0F0A 0%, #2C1810 30%, #3D2218 60%, #1A0F0A 100%);
    padding: 120px 0 80px;
    text-align: center;
}

/* 装饰性光晕 */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(212,168,80,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(155,34,38,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* 星空粒子背景 */
.hero-stars {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(212,168,80,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(212,168,80,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(212,168,80,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(212,168,80,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 80%, rgba(212,168,80,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 85%, rgba(212,168,80,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 45%, rgba(212,168,80,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 15%, rgba(212,168,80,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 90%, rgba(212,168,80,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 35%, rgba(240,224,192,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 24px;
    background: rgba(200, 169, 110, 0.12);
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero h1 {
    color: var(--gold-light);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    font-family: var(--font-serif);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold), #F0D78C, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-brush);
    font-size: 72px;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(232, 213, 168, 0.6);
    letter-spacing: 6px;
    margin-bottom: 28px;
    font-weight: 300;
    font-family: var(--font-serif);
}

.hero p {
    color: rgba(232, 213, 168, 0.75);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 44px;
    line-height: 2;
    font-weight: 300;
    font-family: var(--font-serif);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Button System ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 2px;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-light);
    border: 1.5px solid rgba(200, 169, 110, 0.4);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(200, 169, 110, 0.08);
    transform: translateY(-3px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== Section ===== */
.section {
    padding: 90px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 4px;
    color: var(--gold-dark);
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-brown);
    letter-spacing: 6px;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: var(--font-serif);
}

.section-title p {
    color: var(--gray);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    font-family: var(--font-sans);
}

.section-light {
    background: var(--cream);
}

.section-white {
    background: #fff;
}

.section-dark {
    background: linear-gradient(160deg, #1A0F0A 0%, #2C1810 50%, #1A0F0A 100%);
    position: relative;
}

.section-dark .section-tag {
    background: rgba(200, 169, 110, 0.15);
    color: var(--gold-light);
}

.section-dark .section-title h2 { color: var(--gold-light); }
.section-dark .section-title p { color: rgba(232, 213, 168, 0.6); }

/* ===== Product Card（高级卡片） ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(220, 208, 192, 0.3);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 110, 0.2);
}

.product-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.product-card-img .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26,15,10,0.6));
    pointer-events: none;
}

.product-card-img .category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: rgba(26, 15, 10, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
}

.product-card-img .hot-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50px;
    color: var(--dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-card-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-brown);
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-serif);
}

.product-card-body .desc {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-sans);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-top: 1px solid rgba(220, 208, 192, 0.3);
    background: rgba(245, 237, 224, 0.3);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price .current {
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -1px;
}

.price .currency {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.price .original {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}

/* ===== 首页专用：快速下单区 ===== */
.quick-order {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 10px;
}

.quick-order-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(220, 208, 192, 0.3);
    transition: var(--transition);
    text-align: center;
}

.quick-order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(200, 169, 110, 0.2);
}

.quick-order-card .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.quick-order-card .icon-gold {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 16px rgba(200, 169, 110, 0.25);
}

.quick-order-card .icon-red {
    background: linear-gradient(145deg, #F0D0D0, var(--primary));
    box-shadow: 0 4px 16px rgba(139, 26, 26, 0.2);
}

.quick-order-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--dark-brown);
    letter-spacing: 2px;
}

.quick-order-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* ===== 首页产品网格（深色背景版） ===== */
.product-grid-dark .product-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 169, 110, 0.1);
}

.product-grid-dark .product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 169, 110, 0.2);
}

.product-grid-dark .product-card-body h3 { color: var(--gold-light); }
.product-grid-dark .product-card-body .desc { color: rgba(232, 213, 168, 0.6); }
.product-grid-dark .product-card-footer {
    border-top-color: rgba(200, 169, 110, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.product-grid-dark .price .current { color: var(--gold-light); }
.product-grid-dark .price .currency { color: var(--gold-light); }

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(220, 208, 192, 0.2);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(200, 169, 110, 0.2);
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--dark-brown);
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
}

/* ===== Stats Section（数据展示） ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 20px;
    text-align: center;
}

.stat-item .number {
    font-size: 42px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.stat-item .label {
    font-size: 14px;
    color: rgba(232, 213, 168, 0.5);
    margin-top: 6px;
    letter-spacing: 2px;
}

/* ===== 卡片分类背景色 ===== */
.card-bg-yuce  { background: linear-gradient(145deg,#5C0E0E,#8B1A1A); }
.card-bg-fengshui { background: linear-gradient(145deg,#1A3A2A,#2D5A3E); }
.card-bg-zeri  { background: linear-gradient(145deg,#5A4A1A,#8A7A3A); }
.card-bg-quming { background: linear-gradient(145deg,#3A2A5A,#5A4A8A); }
.card-bg-kaiyun { background: linear-gradient(145deg,#B85C1A,#D4782A); }

/* ===== Testimonial / Quote ===== */
.quote-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.quote-block .quote-mark {
    font-size: 64px;
    color: var(--gold);
    opacity: 0.3;
    line-height: 0.6;
    font-family: Georgia, serif;
}

.quote-block blockquote {
    font-size: 18px;
    color: var(--gray);
    line-height: 2.2;
    margin: 20px 0;
    font-style: italic;
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(160deg, #2C1810, #1A0F0A);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(200,169,110,0.06) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--gold-light); font-size: 32px; letter-spacing: 6px; margin-bottom: 12px; }
.cta-section p { color: rgba(232, 213, 168, 0.6); margin-bottom: 32px; }

/* ===== Footer（增强版） ===== */
.footer {
    background: var(--dark);
    color: rgba(232, 213, 168, 0.5);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(200, 169, 110, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-family: var(--font-serif);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.9;
    opacity: 0.7;
    font-family: var(--font-sans);
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.footer-col a {
    display: block;
    font-size: 13px;
    padding: 4px 0;
    opacity: 0.6;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.footer-col a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(200, 169, 110, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

/* ===== Form Styles ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-brown);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    background: #fff;
    font-family: inherit;
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== Alert ===== */
.alert {
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(212, 237, 218, 0.8);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: rgba(248, 215, 218, 0.8);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: rgba(227, 242, 253, 0.9);
    color: #0D47A1;
    border: 1px solid #BBDEFB;
}

.alert-warning {
    background: rgba(255, 248, 225, 0.9);
    color: #8D6E00;
    border: 1px solid #FFE082;
}

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(160deg, #1A0F0A, #2C1810, #1A0F0A);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.page-banner h1 {
    color: var(--gold-light);
    font-size: 38px;
    letter-spacing: 8px;
    font-weight: 700;
}

.page-banner p {
    color: rgba(232, 213, 168, 0.5);
    margin-top: 10px;
    font-size: 15px;
    letter-spacing: 2px;
}

/* ===== Detail Page ===== */
.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.detail-image {
    height: 420px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: #fff;
    box-shadow: var(--shadow);
}

.detail-info h1 { font-size: 30px; margin-bottom: 16px; letter-spacing: 2px; }

.detail-info .price-row {
    font-size: 30px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-info .desc {
    color: var(--gray);
    line-height: 2.2;
    margin-bottom: 30px;
}

/* ===== Admin Styles ===== */
.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead { background: var(--dark-brown); color: var(--gold-light); }

th {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(220, 208, 192, 0.2);
    font-size: 14px;
}

tr:hover td { background: var(--light-gold); }

.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-waiting, .status-pending { background: #FFF8E1; color: #8D6E00; }
.status-contacted, .status-confirmed { background: #E3F2FD; color: #0D47A1; }
.status-paid, .status-completed { background: #E8F5E9; color: #1B5E20; }
.status-cancelled { background: #FFEBEE; color: #B71C1C; }

.admin-body { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: var(--dark-brown);
    color: rgba(232, 213, 168, 0.7);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.sidebar-header h2 { color: var(--gold); font-size: 16px; letter-spacing: 3px; }

.sidebar-nav { padding: 16px 0; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    transition: var(--transition);
    gap: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(200, 169, 110, 0.1);
    color: var(--gold-light);
    border-left-color: var(--gold);
}

.admin-content {
    flex: 1;
    background: #F5F0EB;
    padding: 36px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 { font-size: 24px; letter-spacing: 2px; color: var(--dark-brown); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(220, 208, 192, 0.2);
}

.stat-card .stat-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

.stat-card .stat-sub {
    font-size: 12px;
    color: var(--gold-dark);
    margin-top: 4px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    color: var(--gray);
    font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--dark-brown);
    color: var(--gold-light);
    border-color: var(--dark-brown);
}

/* ===== About Page ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    line-height: 2.4;
    color: var(--gray);
    margin-bottom: 20px;
    text-indent: 2em;
}

.about-master {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 40px;
    border: 1px solid rgba(200, 169, 110, 0.15);
}

.about-master .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(200, 169, 110, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* ===== 六壬应用场景卡片 ===== */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.scenario-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(220, 208, 192, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.scenario-card:hover::before { opacity: 1; }

.scenario-icon {
    margin-bottom: 20px;
}

.si-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--light-gold), #fff);
    border: 2px solid rgba(212, 168, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(212, 168, 80, 0.12);
    transition: var(--transition);
}

.scenario-card:hover .si-circle {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 168, 80, 0.25);
    transform: scale(1.05);
}

.scenario-card h3 {
    font-size: 18px;
    color: var(--dark-brown);
    margin-bottom: 14px;
    letter-spacing: 1px;
    font-weight: 700;
}

.scenario-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 2;
    text-align: left;
    margin-bottom: 18px;
}

.scenario-card p strong {
    color: var(--primary);
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.scenario-tags span {
    padding: 4px 12px;
    background: var(--light-gold);
    color: var(--gold-dark);
    border-radius: 50px;
    font-size: 12px;
    border: 1px solid rgba(212, 168, 80, 0.15);
}

/* ===== Responsive（增强版） ===== */

/* 汉堡菜单按钮（默认隐藏，移动端显示） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

/* 移动端导航遮罩 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.nav-overlay.show { display: block; }

/* ===== 信任感模块 ===== */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-top: 36px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(232, 213, 168, 0.7);
    font-size: 14px;
    letter-spacing: 1px;
}

.trust-item .ti-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.12);
    border: 1px solid rgba(200, 169, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== 预约统计横幅 ===== */
.appointment-stats-banner {
    background: linear-gradient(135deg, var(--dark), var(--dark-brown));
    border-bottom: 2px solid var(--gold);
    padding: 40px 0;
}

.appointment-stats-banner .stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.appointment-stats-banner .stat-block {
    text-align: center;
}

.appointment-stats-banner .stat-block .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.appointment-stats-banner .stat-block .label {
    color: rgba(232, 213, 168, 0.7);
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 4px;
}

.appointment-stats-banner .btn {
    transform: scale(1.1);
}

.limited-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #B91C1C, #9B2226);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 服务保障带 */
.guarantee-strip {
    background: linear-gradient(135deg, var(--light-gold), #fff);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    border: 1px solid rgba(200, 169, 110, 0.2);
    box-shadow: var(--shadow-sm);
}

.guarantee-item .g-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.guarantee-item h4 {
    font-size: 15px;
    color: var(--dark-brown);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.guarantee-item p {
    font-size: 12px;
    color: var(--gray);
}

/* 客户评价卡片 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(220, 208, 192, 0.2);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 60px;
    color: var(--gold);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card .t-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 16px;
}

.testimonial-card .t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

.testimonial-card .t-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--dark);
    font-weight: 700;
}

.testimonial-card .t-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-brown);
}

.testimonial-card .t-tag {
    font-size: 12px;
    color: var(--gray);
}

/* 浮动咨询按钮（移动端） */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: calc(100% - 32px);
    max-width: 400px;
}

.floating-cta .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(200, 169, 110, 0.4);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 6px 24px rgba(200, 169, 110, 0.4); }
    50% { box-shadow: 0 6px 36px rgba(200, 169, 110, 0.6); }
}

/* 价格标签优化 */
.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.price-tag .currency { font-size: 16px; }
.price-tag .current { font-size: 28px; font-weight: 700; color: var(--primary); }
.price-tag .original { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.price-tag .discount {
    font-size: 11px;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 4px;
}

/* 购买紧迫感元素 */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

/* 流程步骤 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(200, 169, 110, 0.3);
    position: relative;
    z-index: 1;
}

.process-step h4 {
    font-size: 15px;
    color: var(--dark-brown);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.process-step p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== 后台移动端汉堡菜单 ===== */
.admin-menu-toggle {
    display: none;
    background: var(--dark-brown);
    color: var(--gold-light);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

.sidebar-overlay.show { display: block; }

/* ===== 响应式断点（增强版） ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .guarantee-strip { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .process-steps::before { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .example-grid { grid-template-columns: repeat(2, 1fr); }
    .scenario-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar { gap: 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Header 移动端 */
    .header { height: 60px; }
    .logo-icon { width: 36px; height: 36px; font-size: 16px; }
    .logo-text { font-size: 18px; letter-spacing: 3px; }
    .logo-sub { font-size: 10px; }

    /* 显示汉堡菜单，隐藏桌面导航 */
    .menu-toggle { display: flex; }
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: -280px;
        width: 260px;
        height: calc(100vh - 60px);
        background: var(--dark-brown);
        padding: 20px 16px;
        gap: 4px;
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }
    .nav.show { right: 0; }
    .nav a {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 15px;
        border-left: none;
        width: 100%;
    }
    .nav a::after { display: none; }

    /* Hero 移动端 */
    .hero { min-height: auto; padding: 90px 0 50px; }
    .hero h1 { font-size: 28px; letter-spacing: 3px; line-height: 1.4; }
    .hero-subtitle { font-size: 13px; letter-spacing: 2px; }
    .hero p { font-size: 14px; padding: 0 10px; }
    .hero-badge { font-size: 11px; padding: 4px 16px; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; gap: 12px; width: 100%; padding: 0 20px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* 信任感栏在移动端 */
    .trust-bar { gap: 14px; padding: 16px 10px; margin-top: 24px; }
    .trust-item { font-size: 12px; gap: 8px; }
    .trust-item .ti-icon { width: 30px; height: 30px; font-size: 13px; }

    /* Section 间距 */
    .section { padding: 50px 0; }
    .section-title { margin-bottom: 32px; }
    .section-title h2 { font-size: 24px; letter-spacing: 3px; }
    .section-tag { font-size: 11px; padding: 3px 12px; }

    /* 卡片网格 */
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
    .example-grid { grid-template-columns: 1fr; gap: 16px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .quick-order { grid-template-columns: 1fr; gap: 16px; }
    .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
    .guarantee-strip { grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; border-radius: var(--radius); }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
    .scenario-grid { grid-template-columns: 1fr; gap: 16px; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 1px; }

    .feature-card { padding: 28px 20px; }
    .quick-order-card { padding: 28px 20px; }

    /* Page Banner */
    .page-banner { padding: 90px 0 40px; }
    .page-banner h1 { font-size: 24px; letter-spacing: 3px; }
    .page-banner p { font-size: 13px; }

    /* 产品详情 */
    .detail-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .detail-image { height: 240px; font-size: 60px; }
    .detail-info h1 { font-size: 22px; }
    .detail-info .price-row { font-size: 24px; }

    /* 表单 */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-control { padding: 12px 14px; font-size: 14px; border-radius: 8px; }
    .form-group label { font-size: 13px; }

    /* 案例详情 */
    .example-detail-header { padding: 40px 0 30px; }
    .example-detail-header h1 { font-size: 22px; letter-spacing: 2px; }
    .example-gallery .main-img { aspect-ratio: 4/3; border-radius: var(--radius); }
    .example-gallery .thumbs img { width: 70px; height: 48px; }
    .example-content { padding: 24px 18px; border-radius: var(--radius); font-size: 15px; }
    .example-content h1 { font-size: 22px; }
    .example-content h2 { font-size: 19px; }
    .example-content h3 { font-size: 17px; }

    /* CTA Section */
    .cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 22px; letter-spacing: 3px; }
    .cta-section p { font-size: 14px; padding: 0 10px; }

    /* Footer */
    .footer { padding: 40px 0 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand h3 { font-size: 18px; }
    .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
    .footer-bottom { font-size: 12px; padding: 16px 0; }

    /* 浮动CTA按钮 */
    .floating-cta { display: block; }

    /* ===== 后台管理移动端 ===== */
    .admin-body { flex-direction: column; }
    .admin-menu-toggle { display: flex; }
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        width: 240px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }
    .sidebar.show { left: 0; }
    .sidebar-header { padding: 20px 16px; }
    .sidebar-nav a { padding: 12px 16px; font-size: 13px; }
    .admin-content { padding: 20px 16px; padding-bottom: 80px; min-height: auto; }
    .admin-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    .admin-header h1 { font-size: 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; border-radius: var(--radius); }
    .stat-card .stat-number { font-size: 24px; }
    .stat-card .stat-label { font-size: 12px; }
    .action-bar { gap: 8px; }
    table { font-size: 12px; }
    th, td { padding: 10px 8px; }
    .detail-card { padding: 20px 16px; border-radius: var(--radius); }
    .detail-grid { grid-template-columns: 1fr; gap: 12px; }
    .detail-head { flex-direction: column; gap: 10px; align-items: flex-start; }

    /* 配置页面 */
    .config-section { padding: 16px; }
    .config-item { grid-template-columns: 1fr; gap: 6px; }
    .image-preview-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    /* 按钮 */
    .btn { padding: 12px 24px; font-size: 14px; }
    .btn-lg { padding: 14px 32px; font-size: 15px; }
    .btn-sm { padding: 8px 16px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; letter-spacing: 2px; }
    .section-title h2 { font-size: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .guarantee-strip { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
    .process-step .step-num { width: 48px; height: 48px; font-size: 18px; }
    .example-filter a { padding: 6px 14px; font-size: 12px; }
    .price .current { font-size: 22px; }
    .image-preview-list { grid-template-columns: repeat(2, 1fr); }
    .sms-input-row { flex-direction: column; }
    .sms-input-row .btn { width: 100%; }
    .logo-sub { display: none; }
    .trust-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .trust-item { flex-shrink: 0; }
}

/* ===== 平滑滚动增强 ===== */
html { scroll-padding-top: 72px; }

/* ===== 移动端body底部留白给浮动按钮 ===== */
@media (max-width: 768px) {
    body { padding-bottom: 0; }
}

/* ===== 触摸设备优化 ===== */
@media (hover: none) {
    .btn:active { transform: scale(0.97); }
    .product-card:active { transform: scale(0.98); }
    .example-card:active { transform: scale(0.98); }
    .nav a:active { background: rgba(200, 169, 110, 0.15); }
}

/* ===== 暗色半透明滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,169,110,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,169,110,0.5); }

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 900;
    border: none;
    font-family: inherit;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.5);
}

/* ===== 详情页图片按分类渐变 ===== */
.detail-image.detail-bg-yuce { background: linear-gradient(145deg,#5C0E0E,#8B1A1A); }
.detail-image.detail-bg-fengshui { background: linear-gradient(145deg,#1A3A2A,#2D5A3E); }
.detail-image.detail-bg-zeri { background: linear-gradient(145deg,#5A4A1A,#8A7A3A); }
.detail-image.detail-bg-quming { background: linear-gradient(145deg,#3A2A5A,#5A4A8A); }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--gray);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ===== 后台详情卡片统一 ===== */
.detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.detail-card .detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.detail-card .detail-head h2 {
    font-size: 18px;
    color: var(--primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.detail-grid .field-label {
    font-size: 12px;
    color: var(--gray);
}

.detail-grid .field-value {
    margin-top: 4px;
    font-weight: 600;
}

.detail-note {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: 8px;
}

.detail-form {
    border-top: 2px solid var(--border);
    padding-top: 24px;
}

/* ===== 后台链接按钮 ===== */
.admin-link {
    color: var(--primary);
    font-size: 13px;
    transition: var(--transition);
}

.admin-link:hover { color: var(--gold-dark); text-decoration: underline; }

.admin-link-danger { color: #c00; font-size: 13px; }
.admin-link-danger:hover { color: #800; text-decoration: underline; }

/* ===== 按钮禁用态 ===== */
.btn.disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* ===== 案例模块 ===== */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.example-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(220, 208, 192, 0.3);
    display: flex;
    flex-direction: column;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 110, 0.25);
}

.example-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.example-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.example-card:hover .example-card-img img { transform: scale(1.06); }

.example-card-img .category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 14px;
    background: rgba(26, 15, 10, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
}

.example-card-img .hot-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50px;
    color: var(--dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.example-card-body {
    padding: 22px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.example-card-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--dark-brown);
    font-weight: 700;
    letter-spacing: 1px;
}

.example-card-body .summary {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.example-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 26px;
    border-top: 1px solid rgba(220, 208, 192, 0.3);
    background: rgba(245, 237, 224, 0.3);
}

.example-card-footer .more {
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 案例分类筛选 */
.example-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.example-filter a {
    padding: 8px 22px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.example-filter a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.example-filter a.active {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    border-color: transparent;
    font-weight: 600;
}

/* ===== 案例详情页 ===== */
.example-detail-header {
    background: linear-gradient(160deg, #1A0F0A 0%, #2C1810 50%, #1A0F0A 100%);
    color: var(--gold-light);
    padding: 60px 0 50px;
    text-align: center;
}

.example-detail-header h1 {
    font-size: 34px;
    color: var(--gold-light);
    letter-spacing: 4px;
    margin-bottom: 14px;
    font-weight: 700;
}

.example-detail-header .meta {
    color: rgba(232, 213, 168, 0.55);
    font-size: 13px;
    letter-spacing: 2px;
}

.example-gallery {
    max-width: 820px;
    margin: 0 auto 40px;
}

.example-gallery .main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--dark-brown);
    aspect-ratio: 16 / 10;
    margin-bottom: 14px;
}

.example-gallery .main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1A0F0A;
}

.example-gallery .thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.example-gallery .thumbs img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
}

.example-gallery .thumbs img:hover { opacity: 1; }

.example-gallery .thumbs img.border-active {
    border-color: var(--gold);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(200, 169, 110, 0.4);
}

/* 富文本渲染容器 */
.example-content {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 50px;
    box-shadow: var(--shadow-sm);
    line-height: 2;
    color: var(--dark-brown);
    font-size: 16px;
}

.example-content h1,
.example-content h2,
.example-content h3,
.example-content h4 {
    color: var(--primary);
    margin: 28px 0 14px;
    letter-spacing: 1px;
    font-weight: 700;
}

.example-content h1 { font-size: 26px; }
.example-content h2 { font-size: 22px; }
.example-content h3 { font-size: 19px; }
.example-content h4 { font-size: 16px; }

.example-content p { margin: 14px 0; }

.example-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 18px auto;
    display: block;
    box-shadow: var(--shadow-sm);
}

.example-content ul,
.example-content ol { margin: 14px 0 14px 28px; }

.example-content li { margin: 6px 0; }

.example-content blockquote {
    margin: 18px 0;
    padding: 14px 22px;
    background: var(--light-gold);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    color: var(--dark-brown);
    font-style: italic;
}

.example-content a {
    color: var(--primary);
    text-decoration: underline;
}

.example-content a:hover { color: var(--gold-dark); }

.example-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.example-content table th,
.example-content table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.example-content table th {
    background: var(--light-gold);
    color: var(--dark-brown);
    font-weight: 600;
}

.example-content pre {
    background: var(--dark-brown);
    color: var(--gold-light);
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
}

.example-content code {
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
}

.example-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 相关案例推荐 */
.related-examples {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-examples h3 {
    text-align: center;
    font-size: 22px;
    color: var(--dark-brown);
    letter-spacing: 3px;
    margin-bottom: 28px;
}

/* ===== 短信验证查询表单 ===== */
.sms-verify-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid rgba(200, 169, 110, 0.15);
}

.sms-verify-box h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 18px;
    letter-spacing: 1px;
}

.sms-verify-box .tip {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}

.sms-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.sms-input-row .form-control { flex: 1; }

.sms-input-row .btn { white-space: nowrap; min-width: 140px; }

/* ===== 站点配置后台 ===== */
.config-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(220, 208, 192, 0.4);
}

.config-section h3 {
    color: var(--primary);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.config-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.config-item label {
    color: var(--dark-brown);
    font-size: 14px;
    font-weight: 600;
}

.config-item .form-control { width: 100%; }

.config-item-full {
    display: block;
    margin-bottom: 14px;
}

.config-item-full label {
    display: block;
    color: var(--dark-brown);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .config-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .example-content {
        padding: 24px 18px;
    }
    .example-detail-header h1 { font-size: 24px; }
}

/* ===== 案例后台图片管理 ===== */
.image-manager {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: rgba(245, 237, 224, 0.3);
}

.image-add-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.image-add-row .form-control { flex: 1; }

.image-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.image-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    background: var(--dark-brown);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-preview-item .remove-btn:hover { background: var(--primary); }

.image-preview-item .order-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
}

/* ============================================
   全局细节精修 - 交互体验升级
   ============================================ */

/* ===== 卡片悬浮效果 ===== */
.card {
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== 按钮精修 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #5C0E0E);
    box-shadow: 0 6px 24px rgba(155, 34, 38, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    box-shadow: 0 6px 24px rgba(212, 168, 80, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ===== 表单控件精修 ===== */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--dark);
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 80, 0.15);
}

.form-control::placeholder {
    color: rgba(122, 112, 104, 0.5);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.8;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7068' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ===== 产品卡片升级 ===== */
.product-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 15, 10, 0.15);
    border-color: var(--gold);
}

.product-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--light-gray);
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-image img {
    transform: scale(1.06);
}

.product-card .card-body {
    padding: 22px;
}

.product-card .card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.product-card .card-body p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-card .price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-card .price .current {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.product-card .price .original {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-card .hot-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), #C0392B);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* ===== 案例卡片升级 ===== */
.example-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(26, 15, 10, 0.18);
}

.example-card .example-image {
    aspect-ratio: 16/11;
    overflow: hidden;
    background: var(--light-gray);
}

.example-card .example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.example-card:hover .example-image img {
    transform: scale(1.06);
}

.example-card .example-info {
    padding: 20px;
}

.example-card .example-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--light-gold);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ===== 区块淡入动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-animate {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ===== 回到顶部按钮 ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(155, 34, 38, 0.3);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(155, 34, 38, 0.4);
}

/* ===== 移动端触摸优化 ===== */
@media (hover: none) {
    .btn:active { transform: scale(0.95); }
    .card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .product-card:hover { transform: none; }
    .example-card:hover { transform: none; }
}

/* ===== 响应式精修 ===== */
@media (max-width: 768px) {
    .btn { padding: 10px 22px; font-size: 14px; }
    .btn-lg { padding: 14px 28px; font-size: 16px; }
    .product-card .card-body { padding: 16px; }
    .product-card .card-body h3 { font-size: 16px; }
    .form-control { padding: 10px 14px; font-size: 14px; }
    .scroll-top-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 480px) {
    .btn { padding: 8px 18px; font-size: 13px; }
    .btn-lg { padding: 12px 24px; font-size: 15px; }
}

/* ===== 打印样式 ===== */
@media print {
    .header, .footer, .scroll-top-btn { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .container { max-width: 100%; padding: 0; }
}