/* ====================
   乒乓球网站统一样式
   简约现代风格
   ==================== */

/* CSS变量定义 */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #F97316;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 导航栏样式 ==================== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.navbar .nav-links {
    display: flex;
    gap: 5px;
}

.navbar .nav-links a {
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.navbar .nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== Banner样式 ==================== */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E40AF 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 主内容区域 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding: 50px 0;
}

/* ==================== 页面标题 ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E40AF 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* ==================== 卡片组件 ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.card-icon.blue {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.card-icon.orange {
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
}

.card-icon.green {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.card-icon.purple {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.card-content .btn {
    margin-top: 15px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #EA580C;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* ==================== 特色区域 ==================== */
.feature-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

/* ==================== 内容区块 ==================== */
.content-section {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.content-section h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 25px 0 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.8;
    list-style: disc;
}

/* ==================== 明星卡片 ==================== */
.star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.star-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.star-avatar {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E40AF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.star-info {
    padding: 20px;
}

.star-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.star-info .tag {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

.star-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== FAQ样式 ==================== */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--bg-light);
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
}

.faq-answer {
    padding: 20px;
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 10px;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== 表格样式 ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
}

.data-table tr:hover {
    background-color: var(--bg-light);
}

/* ==================== 页脚样式 ==================== */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
}

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

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.8;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .navbar .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
        gap: 8px;
    }

    .navbar .nav-links a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ==================== 辅助类 ==================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}
