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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background-color: #1a73e8;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    display: none;
    min-width: 150px;
    z-index: 1000;
}

.dropdown li a {
    color: #333;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 0;
}

.dropdown li a:hover {
    background-color: #f5f5f5;
}

#userMenu:hover .dropdown {
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #1557b0;
}

.btn-secondary {
    background-color: #5f6368;
    color: white;
}

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

.btn-success {
    background-color: #34a853;
    color: white;
}

.btn-success:hover {
    background-color: #2d8c48;
}

.btn-danger {
    background-color: #ea4335;
    color: white;
}

.btn-danger:hover {
    background-color: #c32f1e;
}

.btn-warning {
    background-color: #fbbc05;
    color: white;
}

.btn-warning:hover {
    background-color: #e8a600;
}

/* 主内容区域 */
main {
    padding: 2rem 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 3rem 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a73e8;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5f6368;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* 响应式轮播图 */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 特点区域 */
.features {
    margin-bottom: 2rem;
}

.features h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #3c4043;
    text-align: center;
}

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

.feature-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a73e8;
}

/* 场馆列表 */
.venue-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.venue-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.venue-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.venue-info {
    padding: 1.5rem;
}

.venue-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a73e8;
}

.venue-info .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ea4335;
    margin-bottom: 1rem;
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #3c4043;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* 表格样式 */
.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dadce0;
}

th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #3c4043;
}

tr:hover {
    background-color: #f9f9f9;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-paid {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-unpaid {
    background-color: #f8d7da;
    color: #721c24;
}

.status-free {
    background-color: #d4edda;
    color: #155724;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    text-decoration: none;
    color: #1a73e8;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #1a73e8;
    color: white;
}

.pagination .active {
    background-color: #1a73e8;
    color: white;
}

/* 页脚样式 */
footer {
    background-color: #3c4043;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .venue-list {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #5f6368;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dadce0;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

/* 成功提示 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}