:root {
    --main-color: #b10000;
    --hover-red: #d90000;
    --link-color: #004276;
    --border-color: #e0e0e0;
    --bg-gray: #f5f5f5;
}

/* 解决iOS字体缩放与点击反馈 */
* { box-sizing: border-box; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(177,0,0,0.1); }
body { 
    font-family: "Microsoft YaHei", -apple-system, sans-serif; 
    margin: 0; background: var(--bg-gray); color: #333; line-height: 1.6; overflow-x: hidden; 
}

/* 全局链接交互 */
a { text-decoration: none; color: var(--link-color); transition: 0.2s; }
a:hover { color: var(--main-color); text-decoration: underline; }

.container { width: 95%; max-width: 1200px; margin: 0 auto; }

/* --- Header：首页靠左紧贴LOGO --- */
.site-header { background: #fff; border-bottom: 2px solid var(--main-color); padding: 12px 0; }
.header-flex { display: flex; align-items: center; justify-content: flex-start; }
.site-logo { font-size: 24px; font-weight: bold; color: var(--main-color); margin-right: 25px; white-space: nowrap; }

.nav-province { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.nav-province a { font-size: 13px; color: #555; padding: 2px 6px; background: #f9f9f9; border: 1px solid #eee; border-radius: 2px; }
.nav-province a:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); text-decoration: none; }
.nav-province a.nav-home { font-weight: bold; color: var(--main-color); background: #f2f2f2; }

/* --- 布局结构 --- */
.main-wrapper { display: flex; gap: 20px; margin-top: 20px; }
.content-left { flex: 1; min-width: 0; }
.content-right { width: 350px; flex-shrink: 0; }

/* --- 省份卡片：改回“白底左红条”样式 --- */
.province-card, .sidebar-box { 
    background: #fff; border: 1px solid var(--border-color); margin-bottom: 20px; 
    padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-title-link { display: inline-block; margin-bottom: 15px; }
.card-title { 
    font-size: 20px; color: #333; /* 文字深灰 */
    border-left: 5px solid var(--main-color); /* 左侧标志性红条 */
    padding-left: 12px; font-weight: bold; 
	margin-bottom: 15px;
    line-height: 1;
}
/* 点击标题效果：文字变红 */
.card-title-link:hover .card-title { color: var(--main-color); }

.city-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.city-list a { font-size: 14px; color: #444; }

/* --- 右侧模块 --- */
.box-header { 
    font-size: 16px; color: #333; border-left: 5px solid var(--main-color); 
    padding-left: 12px; margin-bottom: 15px; font-weight: bold; 
}
.search-form { display: flex; margin-bottom: 15px; border: 2px solid var(--main-color); border-radius: 4px; overflow: hidden; }
.search-form input { flex: 1; padding: 10px; border: none; outline: none; font-size: 16px; }
.search-form button { padding: 0 15px; background: var(--main-color); color: #fff; border: none; font-weight: bold; cursor: pointer; }
.search-form button:active { background: #800000; }

.grid-nav-all { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid-nav-all a { background: #f8f8f8; border: 1px solid #eee; text-align: center; font-size: 13px; padding: 8px 0; color: #666; }
.grid-nav-all a:hover { background: var(--main-color); color: #fff; text-decoration: none; }

.list-v { list-style: none; padding: 0; margin: 0; }
.list-v li { padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.list-v li a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 宫格列表：3列显示 */
.list-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.list-g li { font-size: 14px; }

/* --- Footer --- */
.site-footer { background: #fff; border-top: 1px solid var(--border-color); margin-top: 40px; padding: 40px 0; text-align: center; }
.matrix-box { display: flex; justify-content: center; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 12px; }
.matrix-links a { padding: 5px 15px; background: #f5f5f5; border: 1px solid #eee; color: #666; font-size: 13px; border-radius: 20px; }
.matrix-links a.active { background: var(--main-color); color: #fff; }

/* --- 移动端专项：大字号与触控优化 --- */
@media (max-width: 992px) {
    .main-wrapper { flex-direction: column; }
    .content-right { width: 100%; }
    .header-flex { flex-direction: column; text-align: center; }
    .site-logo { margin-right: 0; margin-bottom: 10px; }
    .nav-province { justify-content: center; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .card-title { font-size: 22px; } /* 手机标题更大更清晰 */
    /* 城市列表在手机端像“按钮”一样好点 */
    .city-list a { 
        font-size: 17px; 
        background: #fdfdfd; 
        border: 1px solid #eee; 
        padding: 6px 12px; 
        border-radius: 4px;
    }
    .list-v li { font-size: 16px; padding: 12px 0; }
    .list-g { grid-template-columns: 1fr 1fr; } 
    .list-g li { font-size: 16px; }
    .grid-nav-all { grid-template-columns: repeat(3, 1fr); }
    .grid-nav-all a { font-size: 15px; padding: 12px 0; }
}