/* KamasFun.com 样式 */
:root {
    --primary: #3a86ff;
    --secondary: #ff006e;
    --gold: #FFD700;
    --orange: #FF8C00;
    --dark: #14213d;
    --light: #f8f9fa;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f8fb;
    color: #333;
    overflow-x: hidden;
}

/* 页面容器 */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

/* 导航栏 */
.navbar-kamasfun {
    background: linear-gradient(90deg, var(--dark) 0%, #1e3a8a 100%);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 28px;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 修改金币图标颜色 */
.navbar-brand .fa-coins {
    color: var(--gold) !important;
}

/* 修改Kamas单词颜色 */
.navbar-brand span.kamas-text {
    color: var(--orange) !important;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    box-shadow: 0 4px 8px rgba(58, 134, 255, 0.3);
}

.btn-kamasfun {
    background: linear-gradient(45deg, var(--primary), #2563eb);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-kamasfun:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(58, 134, 255, 0.4);
}

.btn-register {
    background: linear-gradient(45deg, var(--secondary), #ff006e);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-block;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 110, 0.4);
    color: white;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(rgba(20, 33, 61, 0.85), rgba(20, 33, 61, 0.85)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #f5f8fb);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 游戏卡片 */
.game-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    margin: 10px auto;
    border-radius: 10px;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: none;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.game-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.game-card-body {
    padding: 25px;
}

.game-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.game-card-text {
    color: var(--gray);
    margin-bottom: 20px;
}

/* 如何工作部分 */
.how-it-works {
    background: linear-gradient(45deg, #1e3a8a, var(--dark));
    padding: 70px 0;
    color: white;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(#f5f8fb, transparent);
}

.step-card {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 销售表单 */
.sell-section {
    padding: 40px 0;
}

.sell-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 10px; /* 缩短板块间距 */
}

/* 添加额外间距的类 */
.double-spacing {
    margin-bottom: 20px !important; /* 将原本的10px增加为20px */
}

.sell-form-header {
    background: linear-gradient(90deg, var(--primary), #2563eb);
    color: white;
    padding: 10px 20px; /* 缩短内部间距 */
    text-align: center;
}

.sell-form-body {
    padding: 15px; /* 缩短内部间距 */
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-code {
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    background: linear-gradient(45deg, #ff9966, #ff5e62);
    color: white;
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
    letter-spacing: 5px;
    border: 2px solid #ff5e62;
}

/* 价格表格样式 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0; /* 缩短内部间距 */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 14px;
}

/* 修改标题栏背景颜色 - 使用浅蓝色渐变 */
.price-table th {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb); /* 浅蓝色渐变 */
    color: #1565c0; /* 深蓝色文字 */
    padding: 8px 15px; /* 缩短内部间距 */
    text-align: center;
    font-weight: 600;
}

/* 调整列宽 */
.price-table th:nth-child(1),
.price-table td:nth-child(1) {
    width: 33.33%;
    text-align: left;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
    width: 33.33%;
    text-align: center;
}

.price-table th:nth-child(3),
.price-table td:nth-child(3) {
    width: 33.33%;
    text-align: right;
}

.price-table td {
    padding: 8px 15px; /* 缩短内部间距 */
    border-bottom: 1px solid #e2e8f0;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background-color: #f8f9fa;
}

/* 服务器标签样式 - 统一宽度 */
.server-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    min-width: 90px; /* 统一最小宽度 */
    text-align: center; /* 文字居中 */
}

/* 调换状态颜色 */
.status-incomplet {
    color: #28a745; /* 原来是#ffc107，改为绿色 */
    font-weight: 600;
}

.status-complet {
    color: #ffc107; /* 原来是#28a745，改为黄色 */
    font-weight: 600;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.payment-method i {
    margin-right: 8px;
    color: var(--primary);
}

/* 订单号样式 */
.order-number {
    color: #ff006e;
    font-weight: bold;
    font-size: 1.2em;
    background-color: #fff3f7;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ffcce0;
}

/* 成功消息样式 */
.success-message {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    padding: 15px;
    background-color: #f0fff0;
    border-radius: 8px;
    border: 2px solid #28a745;
    margin: 20px 0;
}

.order-info {
    font-size: 16px;
    color: #ff006e;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background-color: #fff3f7;
    border-radius: 8px;
    border: 1px solid #ffcce0;
}

/* 页脚 */
.footer {
    background: linear-gradient(90deg, var(--dark) 0%, #1e3a8a 100%);
    color: white;
    padding: 60px 0 25px;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin-top: 8px;
    border-radius: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(90deg, var(--primary), #2563eb);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sell-form-body {
        padding: 20px;
    }
    
    .price-table {
        display: block;
        overflow-x: auto;
    }
    
    /* 移动端调整列宽 */
    .price-table th:nth-child(1),
    .price-table td:nth-child(1),
    .price-table th:nth-child(2),
    .price-table td:nth-child(2),
    .price-table th:nth-child(3),
    .price-table td:nth-child(3) {
        width: auto;
        text-align: left;
    }
    
    /* 移动端调整服务器标签 */
    .server-badge {
        min-width: 70px; /* 移动端较小宽度 */
        font-size: 11px;
    }
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 3px solid #3a86ff;
}

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.alert-title {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-title i {
    margin-right: 10px;
    font-size: 28px;
}

.alert-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.alert-order-number {
    font-size: 20px;
    font-weight: bold;
    color: #ff006e;
    background: #fff3f7;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ffcce0;
}

.alert-instruction {
    font-size: 18px;
    font-weight: bold;
    color: #ff8c00;
    margin-top: 15px;
    padding: 10px;
    background: #fff8f0;
    border-radius: 8px;
    border: 1px solid #ffd699;
}

.alert-btn {
    background: linear-gradient(45deg, var(--primary), #2563eb);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background: linear-gradient(45deg, #2563eb, #1e4fd8);
    transform: translateY(-2px);
}

/* 总金额显示样式 */
#totalAmount {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--primary);
}

/* 缩短抬头栏和标题栏之间的间距 */
.sell-form-header {
    padding: 7px 20px; /* 减少30%的垂直间距 */
}

/* 增加Wakfu板块和Vendre des Kamas板块的间距 */
.wakfu-spacing {
    margin-bottom: 20px !important; /* 调整为与其他板块相同的间距 */
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}