/* ========================================
   内页通用样式
   ======================================== */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.85;
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

/* 内页内容区域 */
.page-content {
    padding: 40px 0;
}

.page-content .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 二级导航 */
.sub-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 68px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sub-nav .container {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 20px;
}

.sub-nav a {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
}

.sub-nav a:hover,
.sub-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 内容板块 */
.content-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 12px;
}

.content-section h3:first-child {
    margin-top: 0;
}

.content-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* 信息卡片网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.info-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.info-card .info-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.info-tag.green { background: #E8F5E9; color: #2E7D32; }
.info-tag.blue { background: #E3F2FD; color: #1565C0; }
.info-tag.orange { background: #FFF3E0; color: #E65100; }
.info-tag.red { background: #FFEBEE; color: #C62828; }
.info-tag.purple { background: #F3E5F5; color: #6A1B9A; }

/* 列表样式 */
.info-list {
    list-style: none;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .list-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-list .list-content {
    flex: 1;
}

.info-list .list-content strong {
    display: block;
    color: var(--text);
    margin-bottom: 2px;
}

.info-list .list-content span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.info-table th {
    background: #FAFAFA;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}

.info-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.info-table tr:hover td {
    background: #FAFAFA;
}

/* 高亮盒子 */
.highlight-box {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E0 100%);
    border-left: 4px solid var(--secondary);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 16px 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
    color: #8B6914;
}

/* 提示盒子 */
.tip-box {
    background: #F0F8FF;
    border-left: 4px solid #4A90D9;
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 16px 0;
    font-size: 0.9rem;
    color: #2C5F8A;
}


/* ========================================
   天气实时展示模块（iframe 嵌入方式）
   ======================================== */
.weather-iframe-wrap {
    margin: 12px 0;
    text-align: center;
}

.weather-iframe-wrap iframe {
    display: block;
    max-width: 100%;
    border-radius: var(--radius);
}

/* 保留 weather-live 样式供其他页面使用 */
.weather-live {
    padding: 0;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.weather-icon-large {
    font-size: 2.4rem;
    line-height: 1;
}

.weather-temp-info {
    display: flex;
    flex-direction: column;
}

.weather-temp-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.weather-desc {
    font-size: 0.9rem;
    color: #8B6914;
    font-weight: 500;
}

.weather-range {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    background: #FFFDF7;
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 1px solid #F0E6D0;
}

.weather-detail-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 1px;
}

.weather-detail-item strong {
    font-size: 0.9rem;
    color: var(--text-color);
}

.weather-forecast {
    margin-bottom: 10px;
}

.weather-forecast h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.forecast-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 8px 6px;
    background: #FAFAFA;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    gap: 2px;
}

.forecast-date {
    font-weight: 600;
    color: var(--text);
    font-size: 0.7rem;
}

.forecast-icon {
    font-size: 1.1rem;
}

.forecast-desc {
    color: var(--text-light);
}

.forecast-temp {
    font-weight: 600;
    color: var(--primary);
}

.weather-source {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    padding-top: 6px;
    border-top: 1px dashed #E8E0D0;
}

/* top-bar 中的天气文字 */
.top-bar .weather-display {
    transition: opacity 0.3s;
}


/* 两栏布局 */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .content-section {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}


