/* 五行配色方案与基础样式 */
:root {
    --metal: #FFD700;
    /* 金 */
    --wood: #32CD32;
    /* 木 */
    --water: #1E90FF;
    /* 水 */
    --fire: #FF4500;
    /* 火 */
    --earth: #CD853F;
    /* 土 */
    --dark: #4A4A4A;
    /* 主色调 */
    --light: #FAFAFA;
    /* 背景色 */
    --gray: #E8E8E8;
    /* 辅助色 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部导航与登录入口 */
header {
    background-color: var(--dark);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--metal);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--metal);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--metal);
}

.login-btn {
    background-color: var(--fire);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    margin-left: 1rem;
    margin-right: 1rem;
}

.login-btn:hover {
    background-color: #e63e00;
    transform: translateY(-2px);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 水墨风格英雄横幅 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://img2.baidu.com/it/u=1166098408,811706935&fm=253&fmt=auto&app=138&f=JPEG?w=760&h=475') center/cover;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .btn-container {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--fire);
    color: white;
}

.btn-primary:hover {
    background-color: #e63e00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-learn-more {
    background-color: var(--dark);
    color: white;
    margin-top: 2rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

.btn-learn-more:hover {
    background-color: #3a3a3a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-buy {
    background-color: var(--earth);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-buy:hover {
    background-color: #b37430;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(205, 133, 63, 0.3);
}

/* 内容区块通用样式 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--metal);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 卡片样式 */
.features,
.shop-items,
.heritage-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card,
.shop-item,
.heritage-item {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-card:hover,
.shop-item:hover,
.heritage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
    font-weight: bold;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.metal {
    color: var(--metal);
}

.wood {
    color: var(--wood);
}

.water {
    color: var(--water);
}

.fire {
    color: var(--fire);
}

.earth {
    color: var(--earth);
}

.bg-alt {
    background-color: var(--gray);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--metal);
}

.section-button-container {
    text-align: center;
    margin-top: 2.5rem;
}

/* 师承关系样式 */
.heritage-section {
    background-color: #f8f5f0;
}

.heritage-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
}

.heritage-item {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
}

.heritage-item:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: -2rem;
    width: 3px;
    transform: translateX(-50%);
}

.heritage-item:last-child:before {
    display: none;
}

.heritage-era {
    color: var(--fire);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(255, 69, 0, 0.1);
    border-radius: 4px;
}

.heritage-content {
    padding-left: 1.5rem;
    border-left: 3px solid var(--earth);
    margin-left: 1rem;
}

/* 商城样式 */
.shop-section {
    background-color: #fff;
}

.shop-item {
    display: flex;
    flex-direction: column;
}

.shop-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.shop-item:hover img {
    transform: scale(1.05);
}

.price {
    color: var(--fire);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.shop-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.shop-buttons a {
    width: 48%;
    margin: 0;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--metal);
    transform: translateY(-3px);
}

/* 导航菜单高亮 */
.active {
    color: var(--metal) !important;
    font-weight: bold;
}

/* 拳法多媒体展示样式 */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.media-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.media-item video,
.media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.media-item:hover video,
.media-item:hover img {
    transform: scale(1.05);
}

.media-info {
    padding: 15px;
}

.media-info h4 {
    margin-top: 0;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.media-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 购物车图标样式 */
.cart-icon-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
}

.cart-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #CD853F, #A0522D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    color: white;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cart-icon span:first-child {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E34234;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 66, 52, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(227, 66, 52, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 66, 52, 0);
    }
}

/* 购物车侧边栏样式 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f5f0;
}

.cart-header h3 {
    margin: 0;
    color: #4A4A4A;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close-cart:hover {
    color: #333;
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-message {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* 购物车商品项样式 */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.cart-item-price {
    color: #E34234;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-display {
    margin: 0 10px;
    font-weight: bold;
}

.remove-item {
    color: #999;
    cursor: pointer;
    margin-left: 15px;
    transition: var(--transition);
}

.remove-item:hover {
    color: #E34234;
}

/* 购物车底部样式 */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #CD853F, #A0522D);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(205, 133, 63, 0.3);
}

/* 购物车遮罩层 */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

/* 弹窗基础样式 */
/* 模态框样式优化 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 0;
    width: 420px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
}

.modal.active {
    display: flex;
    opacity: 1;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 选项卡样式 */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin-bottom: 2px;
}
.tab-content {
    display: none;
    /*padding: 10px 20px 10px 20px;*/
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.tab-link {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* 登录头部样式 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.login-header h2 {
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 表单样式优化 */

#loginForm, #registerForm {
    padding: 0 40px 40px;
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #e5e7eb;
}

#loginForm::-webkit-scrollbar, #registerForm::-webkit-scrollbar {
    width: 8px;
}

#loginForm::-webkit-scrollbar-track, #registerForm::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

#loginForm::-webkit-scrollbar-thumb, #registerForm::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
}

#loginForm::-webkit-scrollbar-thumb:hover, #registerForm::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}


.form-group {
    /*margin-bottom: 25px;*/
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s;
    box-sizing: border-box;
}
.input-Captcha input {
    width: 60%;
    padding: 15px 15px 15px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s;
    box-sizing: border-box;
}

.input-Captcha img{
    width: 35%;
    height: 50px;
    margin-bottom: -20px;
}
.input-wrapper input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #667eea;
    pointer-events: none;
}

/* 表单选项样式 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin: 25px 0 30px;*/
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.checkbox-label input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
    opacity: 0.9;
}


/* 验证码相关样式 */
.verify-code-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.verify-code-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s;
}

.verify-code-group input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-code {
    padding: 0 20px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 100px;
}

.btn-code:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-code:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 协议样式 */
.agreement {
    margin: 25px 0 30px;
}

.agreement label {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 0 3px;
}

.link:hover {
    text-decoration: underline;
}


/* 提交按钮样式 */
.form-submit {
    width: 100%;
    padding: 16px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.form-submit:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 注册提示 */
.register-prompt {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.register-prompt a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.3s;
}

.register-prompt a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* 错误消息样式 */
.error-msg {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}


.form-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.form-footer a {
    color: var(--fire);
    text-decoration: none;
    transition: var(--transition);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    right: 20px;
    /*top: 20px;*/
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

/* 移动端底部菜单样式 */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* 默认隐藏 */
    z-index: 1000;
}

.mobile-bottom-menu .menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.mobile-bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.mobile-bottom-menu .menu-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.mobile-bottom-menu .menu-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 4px;
}
.mobile-bottom-menu .menu-item.active,
.mobile-bottom-menu .menu-item:hover {
    color: var(--fire);
    background-color: rgba(230, 62, 0, 0.05);
}
/* 用户登录后样式优化 */
.user-menu {
    position: relative;
    margin-left: 15px;
}
.user-info-big{
    display: flex;
}
.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0px 15px 1px 1px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 7px 15px 1px 1px;
}

/* 用户下拉菜单 - 点击触发 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 12px;
    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;
    margin-top: 10px;
    display: block !important; /* 确保始终显示 */
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

.user-info-mini{
    display: none;
}

/* 图标样式 */
.icon-user:before { content: "👤"; }
.icon-heart:before { content: "❤️"; }
.icon-history:before { content: "📚"; }
.icon-settings:before { content: "⚙️"; }
.icon-logout:before { content: "🚪"; }
/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .login-btn {
        margin: 0.5rem auto;
        display: block;
        width: 200px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .heritage-item:before {
        left: 20px;
    }

    .heritage-content {
        margin-left: 0;
        padding-left: 2.5rem;
    }

    .features,
    .shop-items,
    .media-gallery {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-icon-container {
        bottom: 20px;
        right: 20px;
    }

    .cart-icon {
        width: 50px;
        height: 50px;
    }

    .other-login p::before,
    .other-login p::after {
        width: 25%;
    }
//登录、注册
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    #loginForm, #registerForm {
        padding: 0 20px 30px;
    }

    .login-header h2 {
        font-size: 28px;
    }
    .user-name {
        display: inline-block; /* 移动端也显示姓名 */
        max-width: 80px;
    }

    .user-info {
        padding: 8px;
    }
    .user-dropdown {
        width: 180px;
        right: -10px;
    }
    .user-info-mini{
        display: flex;
        width: 100%;
    }

    .user-info-big{
        display: none;
    }
}
.hidden{
    display: none;
}

