/*
Theme Name: Redstar
Theme URI: https://www.redstar365.com
Description: Redstar 是一个专为电商和会员分销系统打造的现代化 WordPress 主题。提供完整的购物商城、会员管理、分销推广功能支持，适合构建专业的电商平台和分销系统。
Author: 快点建站
Author URI: https://www.kuaidianweb.com
Version: 1.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redstar
Tags: e-commerce, shop, distribution, membership, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, responsive-layout, accessibility-ready

Redstar Theme, Copyright 2026 快点建站
Redstar is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   CSS 变量定义 - 英国国旗配色方案
   ========================================================================== */
:root {
    /* 主色调 - 英国国旗蓝 */
    --color-primary: #00247D;
    --color-primary-dark: #012169;
    --color-primary-light: #4A69BD;
    --color-primary-lighter: #7B92D8;
    
    /* 辅助色 - 英国国旗红 */
    --color-secondary: #C8102E;
    --color-secondary-dark: #A00D26;
    --color-secondary-light: #E94560;
    --color-accent: #C8102E;
    
    /* 功能色 */
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-danger: #C8102E;
    --color-info: #00247D;
    
    /* 中性色 */
    --color-dark: #2c3e50;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #ecf0f1;
    
    /* 字体 */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", sans-serif;
    --font-heading: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    
    /* 尺寸 */
    --container-width: 1400px;
    --container-padding: 20px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ==========================================================================
   重置和基础样式
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ==========================================================================
   布局结构
   ========================================================================== */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   首页英雄区样式已全部移至 homepage.css
   ========================================================================== */

/* ==========================================================================
   页眉样式
   ========================================================================== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid #e8e8e7;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--color-bg-dark);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left .welcome-text {
    color: var(--color-text-light);
}

.custom-logo{
    max-height: 50px;
    width: auto;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top-right a {
    color: var(--color-text);
    transition: var(--transition);
}

.header-top-right a:hover {
    color: var(--color-secondary);
}

.header-top-right .separator {
    color: var(--color-border);
}

.header-main {
    padding: 50px 0;
    border-bottom: 1px solid #e8e8e7;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--color-dark);
}

/* 搜索框 */
.header-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    position: relative;
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: 0px;
    overflow: visible;
    background: var(--color-bg);
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 36, 125, 0.1);
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    padding-right: 120px; /* 为按钮留出空间 */
    border: none;
    outline: none;
    font-size: 15px;
    border-radius: var(--border-radius-lg);
}

.search-form input[type="search"]::placeholder {
    color: var(--color-text-lighter);
}

.search-form button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 18px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.search-form button:hover {
    background: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

.search-form button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* 用户操作区 */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-action-item {
    position: relative;
    cursor: pointer;
}

.header-action-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: var(--transition);
}

.header-action-item a:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(200, 16, 46, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 导航菜单 */
.main-navigation {
    position: relative;
}

.main-navigation .container {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    gap: 10px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* 移动端悬浮菜单按钮 - 简洁设计 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    right: 25px;
    bottom: 150px;
    width: 48px;
    height: 48px;
    background: #00247D;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 36, 125, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border: 1px solid #fff;
}

.mobile-menu-toggle.active {
    background: #C8102E;
    transform: rotate(90deg);
}

.mobile-menu-toggle:hover {
    background: #C8102E;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

.mobile-menu-toggle svg {
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active svg line:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
    transform-origin: center;
}

.mobile-menu-toggle.active svg line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active svg line:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
    transform-origin: center;
}

/* 移动端菜单关闭按钮 */
.menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.menu-close:hover {
    background: #C8102E;
    border-color: #C8102E;
    transform: rotate(90deg);
}

.menu-close svg {
    pointer-events: none;
}

/* 防止菜单打开时页面滚动 */
body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-menu-toggle {
    z-index: 10001;
}

/* ==========================================================================
   移动端独立菜单 - 完全独立，不影响PC端
   ========================================================================== */

/* 移动端菜单遮罩层 - 默认隐藏 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 36, 125, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 激活状态 */
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单容器 */
.mobile-nav-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 80px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateX(0);
}

/* 移动端关闭按钮 */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-nav-close:hover {
    background: #C8102E;
    border-color: #C8102E;
    transform: rotate(90deg);
}

/* 移动端菜单列表 */
.mobile-nav-menu {
    width: 100%;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-list li {
    position: relative;
}

.mobile-menu-list a {
    display: block;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

/* 移动端子菜单 */
.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-list .sub-menu a {
    padding-left: 40px;
    font-size: 16px;
}

.mobile-menu-list .sub-menu .sub-menu a {
    padding-left: 60px;
    font-size: 15px;
}

/* 子菜单 */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    border-top: 3px solid var(--color-secondary);
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li {
    border-bottom: 1px solid var(--color-border);
}

.main-navigation .sub-menu li:last-child {
    border-bottom: none;
}

.main-navigation .sub-menu a {
    color: var(--color-text);
    padding: 12px 20px;
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    color: var(--color-secondary);
    transform: translateX(0px);
    box-shadow: none;
}

/* 三级菜单 */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: 3px solid var(--color-primary);
}

.main-navigation .sub-menu li:hover > .sub-menu {
    display: flex;
}

/* ==========================================================================
   商品展示样式
   ========================================================================== */
.products-section {
    margin: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* 产品卡片图片样式已移至 homepage.css，避免冲突 */

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.product-badge.new {
    background: var(--color-success);
}

.product-badge.hot {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 15px 0;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
}

.price-original {
    font-size: 16px;
    color: var(--color-text-lighter);
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-light);
}

.product-sales {
    color: var(--color-text-lighter);
}

.product-rating {
    color: var(--color-warning);
}

.product-actions {
    margin-top: 15px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

/* ==========================================================================
   按钮样式
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-secondary);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-secondary-dark);
    box-shadow: 0 6px 16px rgba(160, 13, 38, 0.4);
}

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

.btn-outline:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* ==========================================================================
   页脚样式
   ========================================================================== */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1.5px solid #999;
    border-radius: 50%;
    color: #666;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 36, 125, 0.05);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 15px;
    height: 15px;
}

/* 移动端页脚 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-copyright p {
        font-size: 12px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ==========================================================================
   响应式设计
   ========================================================================== */
@media (max-width: 1024px) {
    .header-search {
        max-width: 400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    main#main {
        margin: 15px !important;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    /* 显示悬浮菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 显示移动端独立菜单 */
    .mobile-nav-overlay {
        display: block;
    }
    
    /* PC端主导航在移动端隐藏 */
    .main-navigation {
        display: none;
    }
    
    /* 返回顶部按钮位置调整 */
    .back-to-top {
        bottom: 160px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .product-info {
        padding: 15px;
    }
    
    .price-current {
        font-size: 20px;
    }
}

/* ==========================================================================
   工具类
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.hidden { display: none; }
.show { display: block; }

/* ==========================================================================
   返回顶部按钮 - 圆环进度条设计
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 54px;
    height: 54px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1);
}

/* 按钮内部背景圆 */
.back-to-top::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: #00247D;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 36, 125, 0.25);
}

.back-to-top:hover::before {
    background: #C8102E;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

/* 箭头图标 */
.back-to-top .arrow-icon {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
}

/* 进度圆环 */
.back-to-top .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 54px;
    transform: rotate(-90deg);
    z-index: 1;
    /* iOS/Safari 兼容性修复 */
    -webkit-transform: rotate(-90deg);
    pointer-events: none;
}

.back-to-top .progress-ring-circle {
    transition: stroke-dashoffset 0.15s linear;
    stroke-linecap: round;
    /* iOS/Safari 兼容性修复 */
    -webkit-transition: stroke-dashoffset 0.15s linear;
    transform-origin: center;
    -webkit-transform-origin: center;
    /* 强制硬件加速 */
    will-change: stroke-dashoffset;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top::before {
        width: 44px;
        height: 44px;
    }
    
    .back-to-top .progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top .progress-ring-circle {
        r: 23;
        cx: 25;
        cy: 25;
        stroke-width: 2.5;
        /* iOS 专用：确保圆环完整显示 */
        stroke-dasharray: 144.51;
        stroke-dashoffset: 144.51;
    }
    
    .back-to-top .arrow-icon {
        width: 18px;
        height: 18px;
    }
}

/* 平板适配 */
@media (max-width: 1024px) {
    .back-to-top {
        right: 24px;
        bottom: 24px;
    }
}

/* ==========================================================================
   移动端底部悬浮导航菜单
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 998;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #E8EBED;
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    color: #666;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 4px;
}

.mobile-nav-item {
    position: relative;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* WhatsApp 样式 */
.mobile-nav-item:nth-child(1):active,
.mobile-nav-item:nth-child(1):hover {
    color: #25D366;
}

.mobile-nav-item:nth-child(1):active svg,
.mobile-nav-item:nth-child(1):hover svg {
    transform: scale(1.15);
}

/* Email 样式 */
.mobile-nav-item:nth-child(2):active,
.mobile-nav-item:nth-child(2):hover {
    color: #00247D;
}

.mobile-nav-item:nth-child(2):active svg,
.mobile-nav-item:nth-child(2):hover svg {
    transform: scale(1.15);
}

/* WeChat 样式 */
.mobile-nav-item:nth-child(3):active,
.mobile-nav-item:nth-child(3):hover {
    color: #09B83E;
}

.mobile-nav-item:nth-child(3):active svg,
.mobile-nav-item:nth-child(3):hover svg {
    transform: scale(1.15);
}

/* 移动端显示 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* 为底部导航留出空间 */
    body {
        padding-bottom: 70px;
    }
    
    /* 返回顶部按钮调整位置，避免遮挡底部菜单 */
    .back-to-top {
        bottom: 90px;
    }
    
    /* 页脚调整 */
    .site-footer {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   复制成功提示
   ========================================================================== */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #00247D 0%, #1a3a8a 100%);
    color: white;
    padding: 28px 40px;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 36, 125, 0.5);
    z-index: 99999;
    text-align: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    min-width: 280px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.copy-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.copy-notification small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.5;
}

.copy-notification::before {
    content: "✓";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #C8102E;
    border-radius: 50%;
    line-height: 40px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    animation: checkmarkBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}
main#main {
    margin: 80px;
}
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    background: var(--color-secondary);
    color: #fff;
}
.order-number,.order-date{
    background: none;
}