/* 全局样式 */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #fbbc05;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --header-bg: #0d47a1;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --danger-color: #ea4335;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
}

/* 头部导航样式已移动到header.php */

/* 主区域样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.8s ease;
}

.search-box input {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.search-box button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #e8ac04;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* 状态区域样式 */
.status {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    animation: fadeIn 1s ease;
}

.status h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

.status-item {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.normal {
    color: var(--success-color);
    font-weight: bold;
}

.delay {
    color: var(--warning-color);
    font-weight: bold;
}

.suspended {
    color: var(--danger-color);
    font-weight: bold;
}

/* 快速查询入口区域 */
.quick-access {
    margin: 2rem 0;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    animation: fadeIn 1s ease;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.quick-link-item {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f5ff;
}

.quick-link-item .icon {
    margin-bottom: 1rem;
}

.quick-link-item .icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.quick-link-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.quick-link-item p {
    font-size: 0.9rem;
    color: #666;
}

/* 线路图区域 */
.metro-map {
    margin: 2rem 0;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    animation: fadeIn 1s ease;
}

.metro-map h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.map-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.metro-map-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.map-container:hover .metro-map-img {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1rem 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.view-details-btn {
    background-color: var(--accent-color);
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background-color: #e8ac04;
    transform: translateY(-2px);
}

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

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input, 
    .search-box button {
        width: 100%;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-link-item {
        width: 100%;
        max-width: 100%;
    }
    
    .map-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
}
