/* 全局样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 导航栏样式 */
#mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    height: 76px;
}

#mainNavbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    height: 60px;
}

#mainNavbar.scrolled .navbar-brand,
#mainNavbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

#mainNavbar.scrolled .btn-outline-light {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#mainNavbar.scrolled .btn-outline-light:hover {
    background: var(--primary-color);
    color: white;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

#mainNavbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

#mainNavbar .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: white;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

#mainNavbar.scrolled .nav-link::after {
    background: var(--primary-color);
}

/* 首页横幅 */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bglan.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}
/* 主要内容 */
.hero-content {
    color: white;
    padding: 0.5rem 0;
    text-align: left;
    max-width: 600px;
    margin: 0;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    margin-top: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
/* 统计信息 */
.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}
/* 按钮 */
.hero-buttons .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 英雄图像 */
.hero-image {
    text-align: center;
    position: relative;
}

/* 条码图片圆角样式 - 与style.css保持一致 */
.barcode-sample {
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.barcode-sample:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.barcode-sample img {
    border-radius: 15px;
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-preview {
    position: relative;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.qr-code {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-heavy);
}

.qr-code i {
    font-size: 8rem;
    color: white;
    opacity: 0.8;
}

.qr-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
}

.qr-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

.qr-dots span:nth-child(2) {
    animation-delay: 0.4s;
}

.qr-dots span:nth-child(3) {
    animation-delay: 0.8s;
}

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

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 功能特色 */
.features-section {
    background: white;
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* 会员套餐 */
.pricing-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.pricing-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* 定价卡片内部组件 */
.pricing-header {
    margin-bottom: 1rem;
}

.pricing-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricing-features {
    margin: 1rem 0;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.pricing-footer {
    margin-top: 1rem;
}

.price {
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 0.2rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 0 0.25rem;
    margin-top: 30px !important;
}

.footer .container {
    padding: 0 15px;
}

.footer .container p {
    margin: 5px 0 !important;
    font-size: 0.9rem;
}

.footer-section h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 20px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .qr-code {
        width: 200px;
        height: 200px;
    }
    
    .qr-code i {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0 20px;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .pricing-header h4 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .pricing-features li {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }
}