/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e74c3c;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 台球桌视觉效果 */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pool-table {
    position: relative;
    width: 400px;
    height: 250px;
}

.table-border {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #8B4513, #A0522D);
    border-radius: 20px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.table-inner {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #1e7c56, #2d9b5e);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 
        inset -3px -3px 8px rgba(0, 0, 0, 0.4),
        inset 3px 3px 8px rgba(255, 255, 255, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.3);
    animation: ballFloat 2s ease-in-out infinite;
}

.rack {
    background: white;
}

.eight-ball {
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.stripes {
    background: linear-gradient(45deg, white 0%, white 50%, #e74c3c 50%, #e74c3c 100%);
}

.solids {
    background: #3498db;
}

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

/* 游戏介绍 */
.about-section {
    padding: 100px 0;
    background: white;
    color: #2c3e50;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-intro {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 特色功能 */
.features-section {
    padding: 100px 0;
    background: #f0f4f8;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.feature-showcase-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.showcase-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.showcase-content ul {
    list-style: none;
    padding-left: 0;
}

.showcase-content li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.showcase-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-size: 1.5rem;
}

.showcase-visual {
    flex: 1;
    height: 300px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mode-icon,
.social-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: ballFloat 2s ease-in-out infinite;
}

.mode-indicator,
.social-indicator {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* Discord社区 */
.discord-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #5865F2, #5865F2);
    color: white;
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.discord-text {
    flex: 1;
}

.discord-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.discord-text p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.btn-discord {
    background: white;
    color: #5865F2;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.discord-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discord-icon {
    font-size: 10rem;
    opacity: 0.8;
}

/* 联系方式 */
.contact-section {
    padding: 100px 0;
    background: white;
    color: #2c3e50;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item p {
    color: #7f8c8d;
}

/* 充值中心 */
.shop-section {
    padding: 100px 0;
    background: white;
    color: #2c3e50;
}

.shop-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 充值标签 */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.shop-tab {
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #495057;
}

.shop-tab:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.shop-tab.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

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

/* 商品网格 */
.products-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.products-grid.active {
    display: grid;
}

/* 商品卡片 */
.product-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card.popular {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.product-card.best-deal {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

/* 标签 */
.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.popular {
    background: #e74c3c;
    color: white;
}

.badge.best-deal {
    background: #f39c12;
    color: white;
}

/* 商品信息 */
.product-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.product-amount {
    margin-bottom: 10px;
}

.amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.base {
    font-weight: 600;
    color: #2c3e50;
}

.bonus {
    color: #27ae60;
    font-weight: 600;
}

.final-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 10px 0;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 购买按钮 */
.btn-buy {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: #219a52;
    transform: scale(1.02);
}

/* VIP卡片 */
.vip-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.vip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vip-card.weekly {
    border-top: 4px solid #cd7f32;
}

.vip-card.monthly {
    border-top: 4px solid #c0c0c0;
}

.vip-card.yearly {
    border-top: 4px solid #f39c12;
}

.vip-card.permanent {
    border-top: 4px solid #9b59b6;
}

.vip-card.popular {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-color: #e74c3c;
}

.vip-card.best-deal {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border-color: #f39c12;
}

.vip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #e9ecef;
}

.vip-header .crown {
    font-size: 1.5rem;
}

.vip-header .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.vip-benefits {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 0;
}

.vip-benefits li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 0.9rem;
}

.vip-benefits li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
}

.vip-pricing {
    text-align: center;
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #7f8c8d;
    font-size: 1rem;
}

.discount-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
}

.billing-cycle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.btn-subscribe {
    width: 100%;
    padding: 12px;
    background: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: #2980b9;
    transform: scale(1.02);
}

/* Stripe支付安全 */
.stripe-section {
    padding: 100px 0;
    background: #1a1a2e;
    color: white;
}

.stripe-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.stripe-info-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stripe-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.stripe-logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.stripe-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.stripe-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.security-badges span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}



/* 页脚 */
.footer {
    background: #0c0c1e;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #888;
}

.footer-section p {
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: #e74c3c;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .pool-table {
        width: 300px;
        height: 180px;
    }

    .feature-showcase-item {
        flex-direction: column !important;
    }

    .discord-content {
        flex-direction: column;
        text-align: center;
    }

    .stripe-info-content {
        flex-direction: column;
    }
}