/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* 改善移动端字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 - 优化移动端触摸体验 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* 移动端优化 */
    min-height: 44px;  /* 苹果推荐的最小触摸区域 */
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 导航栏 - 优化移动端导航 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.nav-brand i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 登录按钮特殊样式 */
.nav-login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 20px;
    padding: 8px 16px !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-login-btn i {
    margin-right: 6px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    /* 增加触摸区域 */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 主横幅 */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    color: white;
    text-align: center;
}

.hero-content {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* 套餐价格 */
.packages {
    padding: 100px 0;
    background: #f8f9fa;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.package-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-card.popular {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.package-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.package-header {
    margin-bottom: 30px;
}

.package-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.package-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.currency {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

.package-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.package-features {
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: #667eea;
    font-size: 1.1rem;
}

.feature-item.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin: 8px 0;
}

.feature-item.highlight i {
    color: #ffd700;
}

/* 产品特色 */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* 响应式设计 - 全面优化移动端 */

/* 大屏幕平板 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 中型平板 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* 导航优化 */
    .nav-menu {
        position: fixed;
        top: 76px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 20px;
        transition: right 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu a {
        font-size: 18px;
        color: #333;
        padding: 15px 20px;
        display: block;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 主横幅优化 */
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 32px;
        font-size: 17px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        margin-top: 60px;
    }
    
    .stat-item {
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* 区块标题优化 */
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* 套餐卡片优化 */
    .packages {
        padding: 80px 0;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        padding: 35px 25px;
    }
    
    .package-card.popular {
        transform: none;
        order: -1;
    }
    
    .package-card .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    /* 特色功能优化 */
    .features {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 50px 0 20px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* 导航优化 */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .nav-brand i {
        font-size: 24px;
    }
    
    .nav-menu {
        top: 68px;
        height: calc(100vh - 68px);
        padding: 40px 15px;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* 小屏幕登录按钮样式 */
    .nav-login-btn {
        margin: 15px auto 10px auto !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        width: 70%;
        max-width: 180px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 主横幅优化 */
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* 区块标题优化 */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* 套餐卡片优化 */
    .packages {
        padding: 60px 0;
    }
    
    .packages-grid {
        gap: 15px;
    }
    
    .package-card {
        padding: 30px 20px;
    }
    
    .package-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .package-card h3 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .package-desc {
        font-size: 0.9rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    /* 特色功能优化 */
    .features {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-bottom {
        font-size: 0.9rem;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .package-card {
        padding: 25px 15px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .packages-grid {
        gap: 12px;
    }
    
    .features-grid {
        gap: 12px;
    }
}

/* 移动端特定优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除悬停效果，改为活动状态 */
    .package-card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* 增强按钮点击反馈 */
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-menu a:hover {
        background: transparent;
    }
    
    .nav-menu a:active {
        background: rgba(102, 126, 234, 0.1);
    }
    
    /* 移动端登录按钮样式 */
    .nav-login-btn {
        margin: 20px auto 10px auto !important;
        padding: 15px 25px !important;
        font-size: 16px !important;
        border-radius: 25px !important;
        width: 80%;
        max-width: 200px;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    }
    
    .nav-login-btn:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        transform: none !important;
    }
    
    .nav-login-btn:active {
        background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%) !important;
        transform: scale(0.98);
    }
    
    /* 优化滚动性能 */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
} 