* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 页眉样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* 导航栏样式 */
nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;  /* 添加这行来使导航栏内容右对齐 */
}

/* 登录/注册按钮样式 */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;  /* 添加这行确保按钮靠右 */
}

.login-btn, .register-btn {
    padding: 0.3rem 0.8rem;  /* 减小内边距 */
    text-decoration: none;
    border-radius: 3px;  /* 稍微减小圆角 */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;  /* 减小字体大小 */
}

.login-btn {
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.login-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.register-btn {
    background-color: #4a90e2;
    color: white;
    border: 1px solid #4a90e2;
}

.register-btn:hover {
    background-color: #3a7bc8;
}

/* 主要内容区域 */
main {
    margin-top: 70px; /* 为固定的header留出空间 */
}

/* 首页轮播：保持完整图片及当前横幅高度 */
.hero-section {
    height: 40vh;  /* 横幅占浏览器内容区高度的40% */
    max-width: 100%;  /* 添加最大宽度限制，两边留出空白 */
    margin: 0 auto;  /* 居中显示 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-slides, .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.hero-slide.is-active { opacity: 1; }

.hero-arrow, .hero-controls { display: none; }
.hero-section.is-ready .hero-arrow { display: grid; }
.hero-section.is-ready .hero-controls { display: flex; }

.hero-arrow, .hero-dot {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(24, 49, 85, 0.65);
    font-size: 22px;
}

.hero-prev { left: clamp(8px, 2vw, 32px); }
.hero-next { right: clamp(8px, 2vw, 32px); }

.hero-controls {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    align-items: center;
    padding: 0 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 8px rgba(24, 49, 85, 0.15);
}

.hero-dots { display: flex; }
.hero-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 44px;
    background: transparent;
}

.hero-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8694a8;
}

.hero-dot[aria-current="true"]::before { background: #2563eb; }
.hero-arrow:hover { background: #224c8b; }
.hero-section button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

/* 在背景图上添加暗色遮罩，使文字更易读 */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
} */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;  /* 调整字体大小 */
    margin-bottom: 1rem;
    font-weight: 600;   /* 调整字体粗细 */
    letter-spacing: 2px;  /* 增加字间距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);  /* 添加文字阴影效果 */
    color: #ffffff;     /* 确保文字颜色为白色 */
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;  /* 使用更适合中文显示的字体 */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 0.8rem 2rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3a7bc8;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #f5f5f5;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* 功能区域样式 */
.features-section {
    max-width: 90%;
    margin: 0 auto;
}

/* 功能导航样式 尊享会员这一栏的内部数据调整 */
.feature-nav {
    display: flex;
    justify-content: center;
    gap: 7rem;  /* 将间距从3rem增加到5rem（这是横向的距离） */
    padding: 0.1rem 0;  /* 减小上下内边距，底部的距离 */
    background-color: #fff;
    margin-top: 0rem;
}

.feature-item {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;  /* 将字体粗细从500增加到700，使其更粗 */
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    color: #4a90e2;
    background-color: #f5f5f5;
}

/* 首页导航随内容自动增高，避免窄屏换行后遮挡轮播。 */
.home-header {
    position: sticky;
    padding: 12px clamp(16px, 3vw, 48px);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    width: 100%;
    min-width: 0;
}

.home-header .feature-nav {
    flex: 1 1 auto;
    width: auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px clamp(8px, 1.5vw, 24px);
    padding: 0;
}

.home-header .feature-item {
    padding: 6px 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-header .auth-buttons {
    flex: 0 1 auto;
    max-width: 100%;
}

.home-header .user-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 8px;
    overflow-wrap: anywhere;
}

.home-main { margin-top: 0; }

.contact-dialog {
    margin: auto;
    width: 400px;
    max-width: calc(100% - 32px);
    padding: 28px;
    border: 0;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.contact-dialog h2 { margin-bottom: 16px; font-size: 22px; }
.contact-dialog p { margin-bottom: 24px; }
.contact-dialog form { text-align: right; }
.contact-dismiss {
    padding: 8px 20px;
    border: 0;
    border-radius: 5px;
    background: #4a90e2;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.contact-dismiss:hover { background: #3a7bc8; }

/* 功能体验区、尊享会员区，内部距离调整 */
.feature-descriptions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem; 
    margin-top: 0.5rem;    /* 减小顶部距离 */
}

.feature-desc-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.1rem;  /* 这个值控制小模块之间的垂直间距 */
    width: 300px;  /* 固定宽度 */
    min-height: 80px;  /* 最小高度 */
}

.feature-icon {
    font-size: 2.5rem;  /* 增大图标尺寸 */
    margin-right: 1.5rem;  /* 增加右侧间距 */
    min-width: 40px;  /* 确保图标区域固定宽度 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;  /* 添加颜色，使图标更加醒目 */
}

.feature-text {
    display: flex;
    flex-direction: column;
    flex: 1;  /* 让文本区域占据剩余空间 */
}

.feature-desc-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;  /* 增加标题下方间距 */
    color: #333;
    line-height: 1.3;
}

.feature-desc-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
}

/* 如果已有样式文件，请将以下内容添加到文件末尾 */

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 420px;
    max-width: 90%;
    position: relative;
    transform: translateY(20px);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.submit-btn {
    background-color: #4a90e2;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #3a7bc8;
}

/* 添加额外的链接样式 */
.form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-links a {
    color: #4a90e2;
    text-decoration: none;
    margin: 0 5px;
}

.form-links a:hover {
    text-decoration: underline;
}

/* 尊享会员特殊样式 - 修改版 */
.premium-member {
    background-color: #e67e22; /* 较深的橙色，更柔和不刺眼 */
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 更轻微的阴影 */
    transition: all 0.3s ease;
}

.premium-member:hover {
    background-color: #d35400; /* 悬停时使用更深的橙色 */
    transform: translateY(-1px); /* 轻微上移效果 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 在原features-section样式基础上新增，这个是内部组团距离调整 */
.features-section {
    position: relative;
    padding: 10px 5px;
}

.experience-section {
    margin-top: 10px;    /* 调整与上面的间距，这是功能体验区、尊享会员区整体与上面的距离 ，这是整体调整，内部不调整。*/
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* 产品功能通知弹窗样式 */
.feature-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.feature-modal-content {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: white;
    text-align: center;
}

.feature-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.feature-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.feature-modal-header {
    padding: 30px 20px 20px;
    position: relative;
}

.feature-gift-icon {
    position: relative;
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.gift-box {
    width: 60px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-radius: 8px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.gift-bow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: #ffd700;
    border-radius: 50% 50% 0 0;
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 15px;
    background: #ffd700;
    border-radius: 50%;
}

.gift-bow::before {
    left: -8px;
}

.gift-bow::after {
    right: -8px;
}

.gift-tag {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 16px;
    animation: sparkle 2s infinite;
}

.sparkle:nth-child(1) {
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 20px;
    right: 5px;
    animation-delay: 0.7s;
}

.sparkle:nth-child(3) {
    bottom: 15px;
    left: 15px;
    animation-delay: 1.4s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-modal-header h2 {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: bold;
}

.feature-modal-header h3 {
    font-size: 20px;
    margin: 0 0 15px;
    font-weight: normal;
}

.discount-text {
    color: #00ff88;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.sub-text {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.price-highlight {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

.membership-options {
    display: flex;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}

.membership-card {
    flex: 1;
    max-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.membership-card.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

.membership-card.platinum {
    border-color: #00bcd4;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(0, 188, 212, 0.1));
}

.membership-card.diamond {
    border-color: #9c27b0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
}

.new-user-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
}

.membership-card h4 {
    font-size: 14px;
    margin: 10px 0 8px;
    font-weight: bold;
}

.membership-card .price {
    font-size: 12px;
    margin: 0;
}

.membership-card .price span {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
}

.claim-offer-btn {
    width: calc(100% - 40px);
    margin: 0 20px 25px;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.claim-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .feature-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .membership-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .membership-card {
        max-width: none;
    }
}
