:root {
    --ink-black: #1E1E1E;
    --ivory: #F9F9F5;
    --ochre: #8B5A2B;
    --jade: #2C5F2D;
    --gold: #C9A87C;
    --vermilion: #D4380D;
    --jade-light: #4A7C4B;
    --gold-light: #E8D5B7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

video {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

body {
    font-family: 'Lato', 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--ivory);
    color: var(--ink-black);
    line-height: 1.6;
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* 导航栏 - 道家法器风格 */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 30px rgba(201,168,124,0.1) inset;
}

/* 云纹装饰 */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent, var(--gold), transparent);
    opacity: 0.6;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - 印章风格 */
.logo {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 1.6rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--gold);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(201,168,124,0.1), transparent);
    letter-spacing: 0.1em;
}

.logo::before {
    content: '☯';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    background: var(--ink-black);
    padding: 0 0.3rem;
}

.logo:hover {
    background: linear-gradient(135deg, rgba(201,168,124,0.2), transparent);
    box-shadow: 0 0 20px rgba(201,168,124,0.3);
    transform: scale(1.02);
}

/* 导航链接 - 符箓风格 */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--ivory);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 0.05em;
}

/* 八卦装饰 */
.nav-links a::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--gold);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    border-color: rgba(201,168,124,0.3);
    background: linear-gradient(135deg, rgba(201,168,124,0.05), transparent);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
    top: -8px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 移动端菜单按钮 - 八卦铜镜风格 */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--gold) 0%, #a88a5e 100%);
    border: 2px solid var(--gold);
    color: var(--ink-black);
    font-size: 1.3rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(201,168,124,0.4);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(201,168,124,0.6);
}

/* 语言切换器 - 令牌风格 */
.language-switcher select {
    background: linear-gradient(135deg, rgba(201,168,124,0.1), transparent);
    color: var(--ivory);
    border: 2px solid var(--gold);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.language-switcher select:hover {
    background: linear-gradient(135deg, rgba(201,168,124,0.2), transparent);
    box-shadow: 0 0 15px rgba(201,168,124,0.3);
}

.language-switcher select option {
    background: var(--ink-black);
    color: var(--ivory);
}

/* 货币选择器 - 令牌风格 */
.currency-switcher select {
    background: linear-gradient(135deg, rgba(201,168,124,0.1), transparent);
    color: var(--ivory);
    border: 2px solid var(--gold);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.currency-switcher select:hover {
    background: linear-gradient(135deg, rgba(201,168,124,0.2), transparent);
    box-shadow: 0 0 15px rgba(201,168,124,0.3);
}

.currency-switcher select option {
    background: var(--ink-black);
    color: var(--ivory);
}

/* 购物车图标 - 葫芦风格 */
.cart-icon {
    position: relative;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--ivory);
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201,168,124,0.15), transparent);
    color: var(--gold);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--vermilion), #a82d0a);
    color: var(--ivory);
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink-black);
    box-shadow: 0 2px 8px rgba(212,56,13,0.4);
}

/* Hero 区域 */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--ink-black) 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ivory);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.03'%3E%3Ccircle cx='25' cy='25' r='2' fill='%23C9A87C'/%3E%3Ccircle cx='75' cy='75' r='2' fill='%23C9A87C'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--ink-black);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 124, 0.4);
}

/* 通用容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--ink-black);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--ochre);
    font-size: 1.1rem;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 商城页面产品网格 - 最大4列 */
.product-grid:not(.home) {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1400px) {
    .product-grid:not(.home) {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .product-grid:not(.home) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid:not(.home) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid:not(.home) {
        grid-template-columns: 1fr;
    }
}

/* 首页产品网格 - 4列布局 */
.product-grid.home {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1400px) {
    .product-grid.home {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .product-grid.home {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid.home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid.home {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 250px;
    max-height: 250px;
    background: linear-gradient(135deg, #e8e8e0 0%, #d4d4c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--ochre);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-btn {
    width: 100%;
    background-color: var(--ink-black);
    color: var(--ivory);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-btn:hover {
    background-color: var(--gold);
    color: var(--ink-black);
}

/* 博客卡片 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--jade) 0%, #3a6f3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--ivory);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: var(--ochre);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--ochre);
    text-decoration: none;
    font-weight: 600;
}

/* 服务卡片 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--gold);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-price {
    color: var(--jade);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.service-duration {
    color: #888;
    margin-bottom: 1.5rem;
}

/* 页脚 - 八卦镜风格 */
.footer {
    background: linear-gradient(135deg, var(--ink-black), #2a2a2a);
    color: var(--ivory);
    padding: 4rem 2rem 2rem;
    border-top: 3px solid var(--gold);
    position: relative;
}

.footer::before {
    content: '☯';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    background: var(--ink-black);
    padding: 0 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(201,168,124,0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.footer-section ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.6rem;
}

.footer-section a {
    color: var(--ivory);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid rgba(201,168,124,0.2);
    text-align: center;
    opacity: 0.7;
}

/* ========== 全面移动端响应式优化 ========== */

/* 基础重置优化 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    font-size: 16px;
}

body {
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    line-height: 1.6;
}

/* 响应式断点定义 */
/* 小屏幕设备 (手机竖屏) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 2rem 1rem !important;
    }
}

/* 中屏幕设备 (手机横屏/小平板) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* 大屏幕设备 (平板/小笔记本) */
@media (max-width: 1024px) {
    html {
        font-size: 15.5px;
    }
}

/* 导航栏移动端优化 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
        position: sticky;
        top: 0;
        z-index: 9999;
    }
    
    .navbar-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
    }
    
    .logo::before {
        font-size: 0.9rem;
        top: -10px;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .language-switcher select,
    .currency-switcher select {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .cart-icon {
        padding: 0.4rem;
        font-size: 1.2rem;
    }
    
    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -3px;
        right: -3px;
    }
    
    .mobile-menu-btn {
        display: block;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, var(--ink-black) 0%, #1a1a1a 100%);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        overflow-y: auto;
        z-index: 9998;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        border: 1px solid rgba(201,168,124,0.2);
        border-radius: 8px;
        background: linear-gradient(135deg, transparent, rgba(201,168,124,0.08));
        text-align: left;
    }
    
    .nav-links a::before,
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a.active {
        background: linear-gradient(135deg, rgba(201,168,124,0.2), transparent);
        border-color: var(--gold);
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 0.35rem;
    }
    
    .language-switcher,
    .currency-switcher {
        display: none;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
}

/* 社区订阅表单 */
.subscribe-section {
    background: linear-gradient(135deg, var(--ink-black) 0%, #2a2a2a 100%);
    color: var(--ivory);
    padding: 4rem 2rem;
    text-align: center;
}

.subscribe-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.subscribe-form button {
    background-color: var(--gold);
    color: var(--ink-black);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.subscribe-form button:hover {
    transform: scale(1.05);
}

/* 见证卡片 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--ochre);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-info h5 {
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #888;
    font-size: 0.9rem;
}

/* 警告提示框 - 符箓风格 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(44,95,45,0.1);
    color: var(--jade);
    border-color: var(--jade);
}

.alert-error {
    background-color: rgba(212,56,13,0.1);
    color: var(--vermilion);
    border-color: var(--vermilion);
}

/* 表单样式 - 符箓风格 */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gold-light);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ink-black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0dc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,124,0.15);
}

.form-group textarea {
    resize: vertical;
}

/* 联系信息 */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ivory);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: #666;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--ink-black);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--ink-black);
    transform: translateY(-3px);
}

/* 返回顶部按钮 - 桃木剑风格 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--jade) 0%, var(--jade-light) 100%);
    color: var(--ivory);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(44,95,45,0.4), 0 0 20px rgba(44,95,45,0.2) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: 3px solid var(--gold);
}

.back-to-top::before {
    content: '☯';
    position: absolute;
    font-size: 0.8rem;
    top: -8px;
    color: var(--gold);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) rotate(180deg);
    box-shadow: 0 6px 25px rgba(44,95,45,0.5), 0 0 30px rgba(201,168,124,0.3) inset;
}

/* 商品卡片 - 符咒风格 */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--jade), var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 0 30px rgba(201,168,124,0.1) inset;
    border-color: var(--gold);
}

.product-info {
    padding: 1.5rem;
    position: relative;
}

.product-info::after {
    content: '●';
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 0.5rem;
    color: var(--gold);
    opacity: 0.5;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(201, 168, 124, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 卡片悬停效果增强 */
.product-card,
.blog-card,
.service-card,
.testimonial-card {
    transition: all 0.3s ease;
}

.product-card:hover,
.blog-card:hover,
.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* 面包屑导航 */
.breadcrumb {
    background: white;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--ochre);
    text-decoration: none;
}

.breadcrumb span {
    color: #888;
    margin: 0 0.5rem;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink-black);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-black);
}

/* 响应式设计 - 移动端菜单 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #2d2d2d 0%, var(--ink-black) 100%);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 3px solid var(--gold);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        text-align: center;
        border: 1px solid rgba(201,168,124,0.2);
        border-radius: 4px;
        background: linear-gradient(135deg, transparent, rgba(201,168,124,0.05));
    }
    
    .nav-links a::before {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
}

/* ========== Hero区域移动端优化 ========== */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== 产品网格和卡片移动端优化 ========== */
@media (max-width: 1024px) {
    .product-grid.home {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .product-grid:not(.home) {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .product-grid.home,
    .product-grid:not(.home) {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 200px;
        max-height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .product-btn {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-grid.home,
    .product-grid:not(.home) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* ========== 博客和服务网格移动端优化 ========== */
@media (max-width: 768px) {
    .blog-grid,
    .service-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-card,
    .service-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .blog-content h3,
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .blog-grid,
    .service-grid,
    .testimonial-grid {
        gap: 0.85rem;
    }
    
    .blog-card,
    .service-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .blog-content h3,
    .service-card h3 {
        font-size: 1.1rem;
    }
}

/* 视频样式 - 最简化 */
.video-section {
    margin: 2rem 0;
    background: #fff;
    border-radius: 8px;
}

.video-title {
    text-align: left;
    margin: 0;
    padding: 1rem 1rem 0.8rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.video-player {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}

.product-video {
    width: 100%;
    display: block;
    border-radius: 8px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    height: auto !important;
    line-height: 0;
    vertical-align: top;
}

.video-iframe {
    width: 100%;
    display: block;
    border-radius: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* 导航栏操作区 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 页面头部 - 符箓风格 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-header::before,
.page-header::after {
    content: '☯';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    opacity: 0.3;
    font-size: 2rem;
}

.page-header::before {
    left: 20px;
}

.page-header::after {
    right: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--ink-black);
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

.page-header h1::before,
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--jade), var(--gold));
}

.page-header h1::before {
    left: 0;
}

.page-header h1::after {
    right: 0;
}

/* 按钮 - 令牌风格 */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #a88a5e 100%);
    color: var(--ink-black);
    border: 2px solid var(--gold);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(201,168,124,0.3);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px dashed rgba(212,56,13,0.3);
    border-radius: 2px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d8b888 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201,168,124,0.5);
}

.btn-secondary {
    background: white;
    color: var(--ink-black);
    border: 2px solid var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(201,168,124,0.1), transparent);
    border-color: var(--jade);
    color: var(--jade);
    transform: translateY(-2px);
}

/* 购物车空状态 */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
}

/* 购物车容器 */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 购物车商品项 - 符咒风格 */
.cart-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(201,168,124,0.2);
    position: relative;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--jade), var(--gold));
    border-radius: 8px 0 0 8px;
}

.cart-item:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.1), 0 0 15px rgba(201,168,124,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8e8e0 0%, #d4d4c8 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid var(--gold-light);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--ochre);
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 34px;
    height: 34px;
    border: 2px solid var(--gold);
    background: white;
    color: var(--ink-black);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), white);
    transform: scale(1.1);
}

.cart-item-remove button {
    width: 36px;
    height: 36px;
    border: 2px solid var(--vermilion);
    background: white;
    color: var(--vermilion);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cart-item-remove button:hover {
    background: var(--vermilion);
    color: white;
    transform: rotate(90deg);
}

/* 购物车摘要 - 锦囊风格 */
.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    border: 2px solid var(--gold-light);
    position: relative;
}

.cart-summary::before {
    content: '💰';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    font-size: 1.5rem;
}

.cart-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink-black);
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e0dc;
}

.summary-row.total {
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jade);
    padding: 1rem 0;
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.clear-cart-btn {
    width: 100%;
    margin-top: 1rem;
    background: white;
    border: 2px solid var(--ochre);
    color: var(--ochre);
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: rgba(139,90,43,0.1);
    border-color: var(--vermilion);
    color: var(--vermilion);
}

/* 支付方式 - 令牌风格 */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e0e0dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--jade);
    border-radius: 8px 0 0 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(201,168,124,0.2);
}

.payment-method:hover::before,
.payment-method:has(input[type="radio"]:checked)::before {
    opacity: 1;
}

.payment-method input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--gold);
}

.payment-method-icon {
    font-size: 2rem;
}

.payment-method-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.payment-method-info p {
    color: #888;
    font-size: 0.9rem;
}

/* 结算页面 - 符箓风格 */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid var(--gold-light);
}

.checkout-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--ink-black);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
}

/* 响应式购物车 */
@media (max-width: 900px) {
    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 150px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
}

/* ========== 增强购物车样式 ========== */

/* 面包屑导航 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb-nav a {
    color: var(--ochre);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--gold);
}

/* 空购物车状态 */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.cart-empty h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--ink-black);
}

.cart-empty p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 推荐商品区域 */
.recommended-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.recommended-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--ink-black);
}

/* 购物车头部 */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-header h2 {
    font-size: 1.4rem;
    color: var(--ink-black);
    margin: 0;
}

.item-count {
    color: #888;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-inline {
    display: inline;
}

.btn-text {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: var(--ochre);
}

/* 购物车商品项增强 */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    position: relative;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.cart-item-meta {
    margin-bottom: 0.5rem;
}

.category-tag {
    display: inline-block;
    background: var(--ivory);
    color: var(--ochre);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.cart-item-price {
    color: var(--ochre);
    font-size: 1.2rem;
    font-weight: 700;
}

.price-unit {
    color: #888;
    font-size: 0.9rem;
    font-weight: normal;
}

/* 数量选择器增强 */
.quantity-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid #e0e0dc;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-form {
    display: flex;
    margin: 0;
}

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 2px solid #e0e0dc;
    border-right: 2px solid #e0e0dc;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-black);
    background: white;
}

.quantity-input[readonly] {
    cursor: default;
}

.quantity-input:focus {
    outline: none;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-btn:disabled:hover {
    background: white;
}

.stock-info {
    font-size: 0.8rem;
    text-align: center;
}

.in-stock {
    color: var(--jade);
}

.out-of-stock {
    color: #c33;
}

/* 商品小计 */
.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.total-label {
    font-size: 0.85rem;
    color: #888;
}

.total-price {
    color: var(--ink-black);
    font-size: 1.3rem;
    font-weight: 700;
}

/* 购物车操作按钮 */
.cart-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 1rem;
}

/* 结算摘要增强 */
.cart-summary-section {
    position: sticky;
    top: 100px;
}

.summary-details {
    margin-bottom: 1.5rem;
}

.free-shipping {
    color: var(--jade);
    font-weight: 600;
}

.shipping-tip {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--gold);
    font-size: 0.95rem;
    color: var(--ink-black);
}

.shipping-tip strong {
    color: var(--ochre);
}

/* 优惠码输入 */
.promo-code-section {
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0dc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.promo-input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-small {
    padding: 0.75rem 1.25rem;
    background: var(--ink-black);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* ========== 表单移动端优化 ========== */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.85rem 0.9rem;
        font-size: 1rem;
        border-radius: 6px;
    }
    
    .contact-info {
        padding: 1.25rem;
    }
    
    .contact-item {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .subscribe-section {
        padding: 2.5rem 1rem;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .subscribe-form input {
        min-width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    
    .subscribe-form button {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .page-header::before,
    .page-header::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ========== 返回顶部按钮移动端优化 ========== */
@media (max-width: 768px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 15px;
        font-size: 1.3rem;
    }
    
    .back-to-top::before {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 12px;
        font-size: 1.2rem;
    }
}

.btn-small:hover {
    background: var(--gold);
    color: var(--ink-black);
}

/* 安全结算信息 */
.secure-checkout-info {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffec 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.secure-icon {
    font-size: 2rem;
}

.secure-text strong {
    display: block;
    color: var(--jade);
    margin-bottom: 0.25rem;
}

.secure-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* 结算按钮 */
.checkout-actions {
    margin-bottom: 1.5rem;
}

.checkout-btn {
    display: block;
    width: 100%;
}

/* 支付方式预览 */
.payment-methods-preview {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 2rem;
}

.payment-icon {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

/* 服务保障 */
.service-guarantees {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 1.5rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.guarantee-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.guarantee-icon {
    font-size: 1.25rem;
}

.guarantee-item span:last-child {
    color: #666;
    font-size: 0.95rem;
}

/* 响应式优化 */
@media (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-section {
        position: static;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 120px;
    }
    
    .cart-item-quantity {
        flex-direction: row;
        gap: 1rem;
    }
    
    .quantity-controls {
        width: auto;
    }
    
    .stock-info {
        display: none;
    }
    
    .cart-item-total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
    }
}

/* ========== 购物车和支付页面移动端优化 ========== */
@media (max-width: 900px) {
    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-summary-section {
        position: static;
    }
    
    .cart-summary {
        top: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .cart-header h2 {
        font-size: 1.25rem;
    }
    
    .cart-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .cart-item-details h3 {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    .quantity-controls {
        width: 100%;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .quantity-input {
        height: 32px;
        font-size: 0.95rem;
    }
    
    .cart-item-total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .cart-item-remove button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .cart-summary {
        padding: 1.25rem;
    }
    
    .cart-summary::before {
        font-size: 1.25rem;
    }
    
    .cart-summary h3 {
        font-size: 1.15rem;
    }
    
    .summary-row {
        font-size: 0.95rem;
    }
    
    .summary-row.total {
        font-size: 1.2rem;
    }
    
    .checkout-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .checkout-section h3 {
        font-size: 1.15rem;
    }
    
    .payment-method {
        padding: 1rem;
    }
    
    .payment-method-icon {
        font-size: 1.5rem;
    }
    
    .payment-method-info h4 {
        font-size: 1rem;
    }
    
    .payment-method-info p {
        font-size: 0.85rem;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
    
    .promo-input {
        width: 100%;
    }
    
    .btn-small {
        width: 100%;
    }
    
    .secure-checkout-info {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .secure-icon {
        font-size: 1.5rem;
    }
    
    .service-guarantees {
        padding: 1rem;
    }
    
    .guarantee-item {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .cart-item {
        flex-wrap: wrap;
        position: relative;
    }
    
    .cart-item::before {
        width: 3px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 150px;
    }
    
    .cart-item-quantity {
        width: 100%;
        order: 3;
        margin-top: 0.75rem;
    }
    
    .cart-item-total {
        flex: 1;
        justify-content: flex-end;
    }
    
    .total-price {
        font-size: 1.1rem;
    }
    
    .cart-empty {
        padding: 2.5rem 1rem;
    }
    
    .empty-cart-icon {
        font-size: 4rem;
    }
    
    .cart-empty h2 {
        font-size: 1.5rem;
    }
    
    .cart-empty p {
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    
    .shipping-tip {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .payment-icons {
        gap: 1rem;
        font-size: 1.5rem;
    }
}

/* ========== 页脚移动端优化 ========== */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .footer::before {
        font-size: 1.75rem;
        top: -15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.6rem;
        padding-left: 1rem;
    }
    
    .footer-section ul li::before {
        font-size: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* ========== 触摸交互和性能优化 ========== */
@media (hover: none) and (pointer: coarse) {
    .product-card,
    .blog-card,
    .service-card,
    .testimonial-card {
        transition: transform 0.1s ease;
    }
    
    .product-card:active,
    .blog-card:active,
    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .product-btn:active,
    .cta-button:active,
    .social-icon:active,
    .mobile-menu-btn:active,
    .quantity-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .nav-links a:active {
        background: rgba(201,168,124,0.15);
    }
}

/* 性能优化 - 减少不必要的动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 图片懒加载占位优化 */
img {
    content-visibility: auto;
}

/* 改善触摸目标大小 */
button,
a,
input,
select,
textarea {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 480px) {
    button,
    a,
    input,
    select,
    textarea {
        min-height: 48px;
    }
}

