/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f9f7f0 0%, #e8e6e1 100%);
    color: #333;
    line-height: 1.6;
    padding-bottom: 20px;
    background-attachment: fixed;
}

.container {
    max-width: 100%;
    padding: 10px;
}

/* 天气栏样式优化 */
.weather-bar {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    transition: background 0.5s;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

#weather-icon {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

#weather-details {
    flex: 1;
}

#datetime {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

#weather-summary {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 4px;
}

#rain-forecast {
    font-size: 0.85rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: inline-block;
}

/* 高温预警样式 */
.weather-bar.alert {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}
/* 顶部导航 */
header {
    background: linear-gradient(135deg, #b71c1c 0%, #8e0000 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-content {
    text-align: center;
    padding: 0 10px;
}

.header-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

.date-info {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 95%;
}

.tab-btn {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #ff8a65;
    font-weight: bold;
}

/* 景点卡片 */
.section-title {
    margin: 20px 0 15px;
    color: #b71c1c;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff9800;
    border-radius: 3px;
}

.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
}

.attraction-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-out;
}

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

.card-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(183, 28, 28, 0.05);
}

.card-header h3 {
    color: #b71c1c;
    font-size: 1.15rem;
    flex: 1;
}

.card-header i {
    transition: transform 0.3s;
    color: #b71c1c;
    font-size: 1.1rem;
    margin-left: 10px;
}

.card-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, padding 0.4s;
}

.card-content.open {
    padding: 0 15px 20px;
    max-height: 1000px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-icon {
    width: 26px;
    height: 26px;
    background: #fbe9e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #b71c1c;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.nav-btn {
    background: linear-gradient(to right, #1e88e5, #0d47a1);
    color: white;
    box-shadow: 0 3px 8px rgba(30, 136, 229, 0.3);
}

.detail-btn {
    background: linear-gradient(to right, #43a047, #2e7d32);
    color: white;
    box-shadow: 0 3px 8px rgba(67, 160, 71, 0.3);
}

.btn i {
    font-size: 1.1rem;
}

/* 贴士部分 */
.tips-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff9800;
}

.tips-title {
    color: #b71c1c;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tip-item {
    display: flex;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 2px solid #ffcc80;
}

.tip-icon {
    min-width: 24px;
    color: #b71c1c;
    margin-right: 10px;
    font-weight: bold;
}

/* 行程规划 */
.itinerary-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #5e35b1;
}

.itinerary-title {
    color: #5e35b1;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.itinerary-content {
    display: none;
    padding: 15px;
    background: #f3f0ff;
    border-radius: 10px;
    margin-top: 10px;
}

.itinerary-content.open {
    display: block;
}

.itinerary-item {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 2px solid #9575cd;
}

/* 地铁信息 */
.metro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.metro-line {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #1e88e5;
}

.metro-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #0d47a1;
}

.metro-attractions {
    padding-left: 20px;
}

/* 高亮框 */
.highlight-box {
    background: #fff8e1;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ffd54f;
}

.recommendation {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #43a047;
}

/* 导航弹窗 */
.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-title {
    color: #f46666;
    margin-bottom: 20px;
}

.nav-option {
    padding: 15px;
    margin: 10px 0;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-option:hover {
    background: #e0e0e0;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (min-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}