/* pages.css - 页面特定样式 */
.page {
    display: none; /* 默认隐藏所有页面 */
    min-height: 100vh;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

.page.active {
    display: block; /* 只显示活动页面 */
}


.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 首页样式 */
/* pages.css - 修改首页样式 */

/* 首页容器 - 禁止滚动 */
#page-home {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    z-index: 1;
    background: white;
    overflow: hidden; /* 禁止滚动 */
    min-height: 100vh;
}

#page-home.active {
    display: flex;
    flex-direction: column;
}

/* 首页内容 - 填满高度 */
.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 防止内容溢出 */
}

/* 英雄区域样式 */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                url('/images/background.jpg') center/cover no-repeat;
    padding: 0; /* 顶部留出导航栏空间 */
    text-align: center;
    min-height: calc(100vh - 1.5rem); /* 减去导航栏高度 */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-main-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 突出"开始选购"按钮样式 */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, #d4af37, #ffd700, #d4af37);
    background-size: 200% 200%;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), 
                0 0 0 1px rgba(212, 175, 55, 0.2);
    animation: gradientShift 3s ease infinite, float 3s ease-in-out infinite;
    font-size: 1.2rem;
    padding: 18px 45px;
    border: 2px solid #ffd700;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd700, #d4af37, #ffd700);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 30px;
}

.cta-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6), 
                0 0 0 2px rgba(255, 215, 0, 0.4);
    animation-play-state: paused;
    color: #000;
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s;
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 动画效果 */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

/* 筛选页面样式 */
#page-filters {
    padding-top: 80px;
    background: white;
}

.filter-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-options {
    display: grid;
   -template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.notice-box {
    background: #fff9e6;
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
    border-radius: 4px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 礼品列表样式 */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 详情页面样式 */
.gift-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 确保图片容器正确显示 */
.gift-image-large {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f5f5f5; /* 备用背景色 */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保img元素正确显示 */
.gift-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 图片加载状态 */
.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
}

/* 图片加载完成后的效果 */
.gift-image-large img.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gift-detail-info {
    padding: 20px;
}

.detail-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.detail-price {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-tabs {
    margin: 40px 0;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-header {
    padding: 15px 30px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-header.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    padding: 20px 0;
    display: none;
}

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

.checkout-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.clear-form-btn {
    background: #f56565 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.clear-form-btn:hover {
    background: #e53e3e !important;
    transform: translateY(-1px) !important;
}

.clear-form-btn:active {
    transform: translateY(0) !important;
}

/* 个人中心样式 */
.profile-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

.profile-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.profile-info {
    display: grid;
    gap: 20px;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
}

.field-label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
}

.field-value {
    color: #333;
    flex: 1;
    text-align: right;
    margin-right: 15px;
}

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

.edit-field-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edit-field-btn:hover {
    background: #5a6268;
}

/* 订单中心样式 */
.orders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.order-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.order-number {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

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

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

.order-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
}

.order-product-image {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.order-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-product-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.order-product-specs {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-price {
    text-align: right;
}

.order-product-price {
    font-weight: 600;
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.order-quantity {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

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

.view-order-btn, .track-order-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.view-order-btn:hover {
    background: #5a6268;
}

.track-order-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    font-weight: 600;
}

.track-order-btn:hover {
    background: linear-gradient(135deg, #ffd700, #d4af37);
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-orders-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-orders-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.browse-products-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.browse-products-btn:hover {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    transform: translateY(-2px);
}


/* 关于我们页面样式 */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.hero-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-section {
    margin-bottom: 50px;
}

.about-section h3 {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4af37;
}

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

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    text-align: left;
    margin: 0;
    color: #666;
}

/* 联系我们页面样式 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-text strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
    margin: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.2rem;
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.submit-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    transform: translateY(-2px);
}

.map-section {
    margin-top: 50px;
}

.map-section h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.map-content {
    text-align: center;
    color: #666;
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* 忘记密码页面样式 */
.forgot-password-step {
    display: none;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 0;
}

.forgot-password-step.active {
    display: block;
}

.forgot-password-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.code-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.countdown {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
}

.countdown.expired {
    color: #e53e3e;
}

.resend-btn {
    background: none;
    border: none;
    color: #d4af37;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.resend-btn:not(:disabled):hover {
    color: #b8860b;
}

.back-to-login,
.back-to-email {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-login a,
.back-to-email a {
    color: #d4af37;
    text-decoration: none;
}

.back-to-login a:hover,
.back-to-email a:hover {
    text-decoration: underline;
}

.success-message {
    text-align: center;
    background: white;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #38a169;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.success-message h2 {
    color: #38a169;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin-bottom: 30px;
}

/* 验证错误样式 */
.validation-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #fff5f5;
    border-left: 3px solid #e53e3e;
    border-radius: 3px;
}

/* 输入框错误状态 */
input.error {
    border-color: #e53e3e !important;
    background-color: #fff5f5;
}

/* 错误消息提示 */
.error-message {
    color: #e53e3e;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
}

/* 在 pages.css 的忘记密码表单样式中添加 */
.next-btn:disabled {
    background-color: #cccccc !important; /* 使用灰色背景 */
    color: #666666 !important;
    cursor: not-allowed !important; /* 显示禁止点击的光标 */
    /* 可选：稍微降低透明度，增强不可点击感 */
    /* opacity: 0.7; */
}