/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f5f7fa;
    padding-top: 80px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: #fff !important;
}

.navbar-brand {
    font-size: 20px;
    font-weight: bold;
    color: #007bff !important;
}

.nav-link {
    font-size: 15px;
    margin: 0 8px;
    color: #333 !important;
    transition: color 0.3s;
}

.nav-link.active {
    color: #007bff !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #007bff !important;
}

/* 按钮通用样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

/* 卡片通用样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    font-size: 16px;
}

/* 表单通用样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 登录/注册页面样式 */
.login-container, .register-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.code-input {
    display: flex;
    gap: 10px;
}

.code-input .form-control {
    flex: 1;
}

.code-btn {
    white-space: nowrap;
}

/* 首页英雄区 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* 特色卡片 */
.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    height: 100%;
}

/* 玩家卡片通用样式 */
.player-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-img {
    height: 180px;
    overflow: hidden;
}

.player-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.player-card:hover .player-img img {
    transform: scale(1.05);
}

.player-info {
    padding: 20px;
}

.player-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.player-tag span {
    font-size: 12px;
    padding: 4px 8px;
    background-color: #e7f3ff;
    color: #007bff;
    border-radius: 20px;
}

/* 价格页面样式 */
.pricing-page {
    padding: 30px 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.pricing-table th {
    background: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
}

.pricing-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.pricing-table tr:nth-child(even) {
    background: #f8f9fa;
}

.pricing-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.pricing-header {
    background: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
}

.pricing-body {
    padding: 20px;
}

.price-highlight {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin: 15px 0;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.pricing-list li i {
    color: #28a745;
    margin-right: 10px;
}

/* 关于我们页面样式 */
.about-page {
    padding: 30px 0;
}

.about-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.about-card {
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
    background-color: #fff;
}

.about-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

/* 组织架构样式 */
.organization-chart {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.chart-node {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.contact-list li i {
    color: #007bff;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0 20px;
}

footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #007bff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 30px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    body {
        padding-top: 70px;
    }
    
    .player-img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .login-container, .register-container {
        margin: 20px;
        padding: 20px;
    }
    
    .code-input {
        flex-direction: column;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
}