/* 预订主题 - 前台展示样式 */

/* ===== CSS变量定义 ===== */
:root {
    /* 主色调 */
    --primary-color: #446e82;
    --primary-hover: #335661;
    --secondary-color: #667eea;
    --accent-color: #3498db;
    
    /* 中性色 */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --border-color: #e2e8f0;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== 基础重置 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* 站点容器 */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header样式 ===== */
.site-header {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* 品牌区域 */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.site-logo img {
    max-height: 40px;
    width: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-title a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-title a:hover {
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.site-description {
    margin: 0 0 0 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* 导航菜单 */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

/* 子菜单 */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    color: #333;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu .sub-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-menu .sub-menu a::after {
    display: none;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Header操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* 登录/注册链接 */
.login-link,
.register-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-link:hover,
.register-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.register-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.register-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 用户菜单 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-greeting {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.user-greeting:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.user-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-left: 5px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    padding: 8px 0;
    z-index: 1001;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.95);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding-left: 25px;
}

/* 屏幕阅读器文本 */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* 内容区域 */
.site-content {
    flex: 1;
    padding: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .site-header .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
   .favorites-icon-container{bottom: 175px !important;}
   .favorites-icon-container,.cart-icon-container{right: 15px !important;}
   #mini-cart-container  #mini-cart-footer .cart-actions{
        flex-direction: row !important;
        justify-content: end;
    }
    .site-header .container {
        padding: 0 10px;
        min-height: 60px;
    }
    #masthead .site-title {
        font-size: 20px;
        padding: 5px 10px;
    }
    #site-navigation{display: inline-block !important;}
    .site-description {
        display: none;
    }
    
    .main-navigation {
        margin: 0 10px;
    }
    .menu-toggle-icon{display: flex !important;}
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(102, 126, 234, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
    }
    
    .nav-menu .sub-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu .sub-menu a {
        padding: 12px 40px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .login-link,
    .register-link {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .user-menu {
        position: relative;
    }
    
    .user-greeting {
        padding: 8px 12px;
        font-size: 13px;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        padding: 0 8px;
        min-height: 55px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .site-logo img {
        max-height: 32px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .login-link,
    .register-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .user-greeting {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .user-dropdown {
        min-width: 140px;
        position: absolute;
        top: 100%;
        right: -10px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .user-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .user-dropdown a {
        padding: 8px 12px;
        font-size: 12px;
        display: block;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .user-dropdown a:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }
    
    .user-dropdown a:last-child {
        border-bottom: none;
    }
    #site-navigation,#site-navigation .menu-toggle{display: none !important;}
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: fadeInDown 0.6s ease-out;
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-header {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu .sub-menu,
    .user-dropdown {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a:hover::after,
    .nav-menu .current-menu-item > a::after {
        width: 0;
    }
    
    .nav-menu a:active::after {
        width: 100%;
    }
    
    .login-link:hover,
    .register-link:hover,
    .user-greeting:hover {
        transform: none;
    }
    
    .login-link:active,
    .register-link:active,
    .user-greeting:active {
        transform: scale(0.95);
    }
    
    .user-dropdown a:hover {
        padding-left: 20px;
    }
    
    .user-dropdown a:active {
        padding-left: 25px;
    }
}

/* ===== JavaScript增强样式 ===== */

/* 滚动效果 */
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.site-header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* 移动端菜单打开时的body样式 */
body.menu-open {
    overflow: hidden;
}

/* 移动端用户菜单激活状态 */
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 链接悬停效果 */
.nav-menu a.hover,
.login-link.hover,
.register-link.hover {
    transform: translateY(-2px);
}

/* 焦点样式 */
.nav-menu a.focused {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 波纹效果 */
.nav-menu a,
.login-link,
.register-link {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 加载动画 */
.site-header.loaded {
    animation: headerLoaded 0.8s ease-out;
}

@keyframes headerLoaded {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 调试模式样式 */
.debug-mode .site-header {
    border: 2px solid #ff0000;
}

.debug-mode .site-header::before {
    content: 'DEBUG MODE';
    position: absolute;
    top: 0;
    right: 0;
    background: #ff0000;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    z-index: 10000;
}

/* 无障碍焦点指示器 */
.nav-menu a:focus-visible,
.login-link:focus-visible,
.register-link:focus-visible,
.user-greeting:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .site-header {
        background: #000;
        border-bottom: 2px solid #fff;
    }
    
    .nav-menu a,
    .login-link,
    .register-link,
    .user-greeting {
        border: 1px solid #fff;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .nav-menu a,
    .login-link,
    .register-link,
    .user-greeting,
    .user-dropdown,
    .ripple {
        animation: none !important;
        transition: none !important;
    }
    
    .site-header.header-hidden {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .site-header {
        position: static;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none;
    }
    
    .site-title a,
    .nav-menu a,
    .login-link,
    .register-link,
    .user-greeting {
        color: #000 !important;
    }
    
    .menu-toggle,
    .user-dropdown {
        display: none !important;
    }
}

/* ===== 现代化Footer样式 ===== */

/* Footer基础样式 */
.site-footer {
    background: #fff;
    /* color: #ecf0f1; */
    padding: 5px 0 5px;
    margin-top: auto;
    position: relative;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer小部件区域 */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1px;
}

.footer-widget p {
    color: #bdc3c7;
    line-height: 1.6;
    margin: 0;
}

/* Footer链接 */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -20px;
}

/* 联系信息 */
.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.contact-info i {
    margin-right: 10px;
    width: 16px;
    color: #3498db;
}

/* 社交链接 */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.social-link i {
    font-size: 18px;
}

/* Footer底部 */
.footer-bottom {
    border-top: 1px solid rgba(236, 240, 241, 0.1);
    padding-top: 0px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.copyright,
.powered-by {
    margin: 0;
    color: #95a5a6;
    font-size: 14px;
}

.powered-by a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #2980b9;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}
#back-to-top{opacity: .3;}
/* 返回顶部按钮 */
.back-to-top {

    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.back-to-top i {
    font-size: 20px;
}

/* Footer响应式设计 */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-content .container {
        padding: 0 15px;
    }
    
    .footer-widgets {
        gap: 25px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}

/* Footer动画效果 */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget {
    animation: footerFadeIn 0.6s ease-out;
}

.footer-widget:nth-child(1) { animation-delay: 0.1s; }
.footer-widget:nth-child(2) { animation-delay: 0.2s; }
.footer-widget:nth-child(3) { animation-delay: 0.3s; }
.footer-widget:nth-child(4) { animation-delay: 0.4s; }

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000;
        border-top: 2px solid #fff;
    }
    
    .widget-title {
        color: #fff;
    }
    
    .footer-links a,
    .contact-info li,
    .footer-widget p {
        color: #ccc;
    }
    
    .social-link {
        border: 2px solid #fff;
        color: #fff;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .footer-widget,
    .back-to-top,
    .footer-links a,
    .social-link {
        animation: none !important;
        transition: none !important;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .back-to-top:hover {
        transform: none;
    }
}

/* ===== 底部便捷菜单 ===== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #7f8c8d;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    border-radius: 8px;
}

.bottom-nav-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.bottom-nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.bottom-nav-item:hover i,
.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

/* 移动端显示底部菜单 */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* 为底部菜单留出空间 */
    
    /* 调整返回顶部按钮位置 */
    .back-to-top {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .bottom-nav-container {
        padding: 6px 0;
    }
    
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav-label {
        font-size: 11px;
        margin-top: -5px;
    }
    
    .notification-badge {
        top: 2px;
        right: 6px;
        font-size: 9px;
        padding: 1px 5px;
        min-width: 14px;
        height: 14px;
    }
    
    .back-to-top {
        bottom: 75px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .bottom-nav-item:hover {
        background: none;
    }
    
    .bottom-nav-item:active {
        background: rgba(102, 126, 234, 0.1);
        transform: scale(0.95);
    }
    
    .bottom-nav-item:hover i,
    .bottom-nav-item.active i {
        transform: none;
    }
    
    .bottom-nav-item:active i {
        transform: scale(1.1);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .bottom-nav {
        background: #000;
        border-top: 2px solid #fff;
    }
    
    .bottom-nav-item {
        color: #ccc;
    }
    
    .bottom-nav-item.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .notification-badge {
        background: #ff0000;
        border: 1px solid #fff;
    }
}

/* 底部菜单隐藏效果 */
.bottom-nav.nav-hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-nav {
    transition: transform 0.3s ease;
}

/* 触摸激活状态 */
.bottom-nav-item.touch-active {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(0.95);
}

/* 焦点状态 */
.bottom-nav-item.focused {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 8px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .bottom-nav-item,
    .bottom-nav-item i,
    .notification-badge,
    .bottom-nav {
        animation: none !important;
        transition: none !important;
    }
    
    .bottom-nav-item:hover i,
    .bottom-nav-item.active i {
        transform: none;
    }
    
    .bottom-nav-item:active,
    .bottom-nav-item.touch-active {
        transform: none;
    }
    
    .bottom-nav.nav-hidden {
        transform: none;
    }
}

/* ===== 主页面样式 ===== */

/* 主内容区域 */
.site-main {
    padding: 60px 0;
}

.site-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 欢迎区域 */
.welcome-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    margin-bottom: 80px;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.welcome-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-description {
    font-size: 18px;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.welcome-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}

.graphic-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: float 6s ease-in-out infinite;
}

.graphic-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.graphic-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 160px;
    right: 40px;
    animation-delay: 2s;
}

.graphic-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 60px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    /* min-height: 48px; */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

/* 区域标题 */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 60px 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 功能特色区域 */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 80px -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fff;
    font-size: 32px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.feature-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* 统计数据区域 */
.stats-section {
    padding: 80px 0;
}


.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 用户类型区域 */
.user-types-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 80px -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.user-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.user-type-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.user-type-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fff;
    font-size: 40px;
}

.user-type-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.user-type-features {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.user-type-features li {
    padding: 8px 0;
    color: #7f8c8d;
    position: relative;
    padding-left: 20px;
}

.user-type-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 主页面响应式设计 */
@media (max-width: 1024px) {
    .welcome-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .features-grid,
    .user-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 40px 0;
    }
    
    .welcome-section {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-description {
        font-size: 16px;
    }
    
    .welcome-actions {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .features-section,
    .user-types-section {
        padding: 60px 0;
        margin: 60px -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .features-grid,
    .user-types-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card,
    .user-type-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-graphic {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .site-main .container {
        padding: 0 15px;
    }
    
    .welcome-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-description {
        font-size: 14px;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .features-section,
    .user-types-section {
        padding: 40px 0;
        margin: 40px -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .feature-card,
    .user-type-card {
        padding: 25px 15px;
    }
    
    .feature-icon,
    .user-type-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .graphic-element,
    .feature-card,
    .user-type-card,
    .btn {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .user-type-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* ===== 我的账户页面样式 ===== */

/* 页面基础样式 */
.my-account-page {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.my-account-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

/* 用户信息卡片 */
.user-info-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #667eea;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.user-email {
    color: #7f8c8d;
    margin: 0 0 10px 0;
}

.user-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.user-actions {
    flex-shrink: 0;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 标签页导航 */
.content-tabs {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-button.active {
    background: #fff;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-button i {
    font-size: 18px;
}

/* 标签页内容 */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.tab-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 表单样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 模态框样式 */
.address-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-account-page {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .user-info-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 15px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .my-account-page .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .user-info-card {
        padding: 20px;
    }
    
    .user-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .tab-button {
        padding: 12px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===== 动态内容样式 ===== */

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

.empty-state::before {
    content: '📭';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

/* 订单项样式 */
.order-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f9fa;
}

.order-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.order-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.order-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.shipping {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-content {
    margin-bottom: 15px;
}

.order-items p {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}

.total-label {
    font-size: 14px;
    color: #7f8c8d;
}

.total-amount {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

.order-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 地址项样式 */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.address-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.address-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.address-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.address-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.address-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

.default-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.address-actions {
    display: flex;
    gap: 10px;
}

/* 物流项样式 */
.logistics-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.logistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f9fa;
    flex-wrap: wrap;
    gap: 10px;
}

.logistics-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.logistics-header p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.shipping {
    background: #d1ecf1;
    color: #0c5460;
}

.logistics-timeline {
    position: relative;
    padding-left: 20px;
}

.logistics-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-time {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

/* 历史记录项样式 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.history-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.history-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
}

.history-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.history-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 8px 0;
}

.history-time {
    font-size: 12px;
    color: #95a5a6;
}

/* 按钮样式扩展 */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* 输入框样式 */
.tracking-input {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.tracking-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .order-header,
    .logistics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-actions,
    .address-actions {
        justify-content: center;
    }
    
    .timeline-item {
        padding-left: 15px;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .history-icon {
        align-self: center;
    }
    
    .tracking-input {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .order-item,
    .address-item,
    .logistics-item,
    .history-item {
        padding: 15px;
    }
    
    .order-actions,
    .address-actions {
        flex-direction: column;
    }
    
    .tracking-input {
        min-width: 120px;
    }
}

/* ===== 错误消息样式 ===== */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
    font-size: 16px;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.error-message::before {
    content: '⚠️';
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

/* 图片上传样式 */
.image-upload-container {
    margin-top: 10px;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.image-upload-area:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.image-upload-area.dragover {
    border-color: #007cba;
    background: #e6f3ff;
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
    display: block;
}

.upload-placeholder p {
    margin: 5px 0;
}

.upload-hint {
    font-size: 12px;
    color: #999;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .remove-image:hover {
    background: rgba(255, 0, 0, 1);
}

/* 模态框样式优化 */
.modal-large {
    max-width: 90%;
    width: 1200px;
}

.sub-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    background-color: #007cba;
    color: white;
    margin-right: 5px;
}
.badge-black {
    background-color: #fff !important;
    color: #000 !important;
}
/* 按钮样式优化 */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* 商品图片样式 */
.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

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

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 表单样式优化 */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 表格样式优化 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 分页样式 */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination a.active {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮样式 */

.btn-primary {
    background-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-outline {
    background-color: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.btn-outline:hover {
    background-color: #007cba;
    color: white;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* 常用文字颜色 */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-info {
    color: var(--info-color);
}

.text-light {
    color: var(--light-color);
}

.text-dark {
    color: var(--dark-color);
}
.version-option-text{display: inline-block;}