/* ============================================
   兴海市官方网站 - 全局样式
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
        "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    background-color: #f2f4f7;
    color: #2c3e50;
    line-height: 1.7;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   顶部导航栏
   ============================================ */

.site-header {
    background-color: #17375e;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: #cfd8e8;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
    color: #ffffff;
    background-color: #2a5b96;
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ============================================
   主体与板块切换
   ============================================ */

.site-main {
    min-height: calc(100vh - 140px);
}

.page-section {
    display: none;
    padding: 36px 0 56px;
}

.page-section.active {
    display: block;
}

.page-title {
    font-size: 26px;
    color: #17375e;
    margin-bottom: 6px;
    text-align: center;
}

.page-desc {
    text-align: center;
    color: #66778a;
    margin-bottom: 28px;
}

.sub-title {
    font-size: 19px;
    color: #17375e;
    margin-bottom: 4px;
    text-align: center;
}

.sub-desc {
    text-align: center;
    color: #66778a;
    margin-bottom: 24px;
}

/* ============================================
   卡片
   ============================================ */

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 20px;
    color: #17375e;
    border-left: 4px solid #2a5b96;
    padding-left: 12px;
    margin-bottom: 18px;
}

.intro-text p {
    margin-bottom: 10px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-text strong {
    color: #17375e;
}

/* ============================================
   首页横幅
   ============================================ */

.hero {
    background: linear-gradient(160deg, #17375e 0%, #1f4e7e 60%, #2a5b96 100%);
    color: #ffffff;
    padding: 72px 20px;
    margin-bottom: 36px;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 34px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    color: #c3d2e6;
}

/* ============================================
   计时器
   ============================================ */

.timer-hint {
    text-align: center;
    color: #66778a;
    margin-bottom: 20px;
}

.timer-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.timer-item {
    background-color: #17375e;
    color: #ffffff;
    border-radius: 8px;
    padding: 18px 8px;
    min-width: 110px;
    text-align: center;
    flex: 0 1 auto;
}

.timer-num {
    display: block;
    font-size: 34px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.timer-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #b8c9de;
}

.party-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    color: #2a5b96;
    display: none;
}

/* ============================================
   团队成员
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.team-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.team-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background-color: #2a5b96;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 64px;
}

.team-name {
    font-size: 16px;
    color: #17375e;
    margin-bottom: 4px;
    word-break: break-all;
}

.team-role {
    font-size: 14px;
    color: #66778a;
}

/* ============================================
   开发中占位板块
   ============================================ */

.placeholder-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 70px 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.placeholder-text {
    font-size: 18px;
    color: #66778a;
    margin-top: 16px;
}

/* ============================================
   加入我们
   ============================================ */

.join-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 36px 28px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.join-card h3 {
    font-size: 20px;
    color: #17375e;
    margin-bottom: 12px;
}

.join-label {
    color: #66778a;
    margin-bottom: 18px;
}

.qq-number {
    font-size: 40px;
    font-weight: 700;
    color: #17375e;
    letter-spacing: 3px;
    background-color: #eef3f9;
    border: 1px dashed #2a5b96;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
    user-select: all;
}

.copy-btn {
    display: inline-block;
    background-color: #2a5b96;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 32px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #1f4e7e;
}

.copy-btn:active {
    background-color: #17375e;
}

.join-tip {
    margin-top: 16px;
    font-size: 13px;
    color: #8a97a8;
}

/* 四个加入按钮布局 */
.join-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.join-btns-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.join-btns .join-external-btn {
    margin: 0;
}

.join-qqgate-btn {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* 手机端：确保每行两个按钮不换行、不溢出 */
@media (max-width: 768px) {
    .join-btns-row {
        width: 100%;
        max-width: 340px;
    }

    .join-btns-row .join-external-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
    }
}

/* QQ 门户群群号（点击按钮后显示） */
.qq-gate-box {
    border-top: 1px dashed #e3e8ef;
    padding-top: 22px;
    margin-top: 6px;
}

.qq-gate-label {
    font-size: 13px;
    color: #8a97a8;
    margin-bottom: 14px;
}

.qq-gate-number-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.qq-gate-number-row .qq-number {
    margin-bottom: 0;
}

/* ============================================
   合作伙伴
   ============================================ */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.partner-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.partner-name {
    font-size: 18px;
    color: #17375e;
    margin-bottom: 6px;
}

.partner-creator {
    font-size: 14px;
    color: #2a5b96;
    margin-bottom: 10px;
}

.partner-desc {
    font-size: 14px;
    color: #66778a;
}

/* ============================================
   页脚
   ============================================ */

.site-footer {
    background-color: #17375e;
    color: #b8c9de;
    padding: 26px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 4px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.footer-meta {
    color: #7d93af;
    font-size: 13px;
}

/* ============================================
   平板适配（768px 及以下）
   ============================================ */

@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 30px;
    }
}

/* ============================================
   手机适配（768px 及以下）
   ============================================ */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    /* 导航栏折叠为汉堡菜单 */
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background-color: #17375e;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 6px 0 12px;
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active {
        background-color: #2a5b96;
    }

    /* 汉堡按钮动画 */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 板块间距 */
    .page-section {
        padding: 24px 0 40px;
    }

    .container {
        padding: 0 14px;
    }

    /* 横幅 */
    .hero {
        padding: 48px 16px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    /* 计时器数字 */
    .timer-item {
        min-width: 0;
        flex: 1 1 calc(50% - 10px);
        padding: 14px 6px;
    }

    .timer-num {
        font-size: 28px;
    }

    /* 卡片内边距 */
    .card {
        padding: 20px 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .page-title {
        font-size: 22px;
    }

    .placeholder-box {
        padding: 56px 16px;
    }

    .placeholder-text {
        font-size: 16px;
    }

    /* QQ 群号 */
    .qq-number {
        font-size: 30px;
        padding: 12px 10px;
    }

    /* 页脚 */
    .site-footer {
        padding: 20px 0;
        font-size: 13px;
    }
}

/* ============================================
   公交线路板块
   ============================================ */

/* ----- 线路列表（统一列表形式） ----- */
.bus-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bus-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid #e3e8ef;
    border-left: 4px solid #2a5b96;
    border-radius: 6px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.bus-card:hover {
    background-color: #f7f9fc;
    border-color: #2a5b96;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}

/* 线路查询卡片内的线路项：浅灰底与卡片背景区分 */
.bus-grid .bus-card {
    background-color: #f6f8fb;
}

.bus-grid .bus-card:hover {
    background-color: #eef3fa;
}

.bus-card-line {
    flex-shrink: 0;
    width: 84px;
    font-size: 17px;
    font-weight: 700;
    color: #17375e;
}

.bus-card-route {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bus-card-bottom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #8a97a8;
}

.bus-card-fare {
    color: #66778a;
}

/* ----- 状态徽章 ----- */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.status-badge.status-normal {
    background-color: #e8f5ed;
    color: #2e7d4f;
}

.status-badge.status-partial {
    background-color: #e6f0fa;
    color: #2a5b96;
}

.status-badge.status-building {
    background-color: #fdf2e3;
    color: #c47a17;
}

/* ----- 详情视图 ----- */
.bus-detail-view {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.back-btn {
    background: none;
    border: 1px solid #cfd8e8;
    color: #2a5b96;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background-color 0.15s, border-color 0.15s;
}

.back-btn:hover {
    background-color: #eef3f9;
    border-color: #2a5b96;
}

.detail-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3e8ef;
}

.detail-title {
    font-size: 26px;
    color: #17375e;
    margin: 0;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    background-color: #f7f9fc;
    border-radius: 6px;
}

.info-item-wide {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 12px;
    color: #8a97a8;
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    color: #17375e;
    font-weight: 600;
    word-break: break-all;
}

/* ----- 方向与站点信息（竖向地铁风格） ----- */
.directions-section {
    margin-top: 8px;
}

.directions-title {
    font-size: 17px;
    color: #17375e;
    margin-bottom: 16px;
    border-left: 3px solid #2a5b96;
    padding-left: 10px;
}

.direction-block {
    margin-bottom: 28px;
}

.direction-block:last-child {
    margin-bottom: 0;
}

.direction-header {
    margin-bottom: 6px;
}

.direction-title {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #17375e;
    background-color: #eef3f9;
    border-radius: 4px;
    padding: 4px 12px;
}

/* 竖向地铁风格站点列表 */
.metro-list {
    list-style: none;
    margin-left: 6px;
}

.metro-station {
    position: relative;
    padding: 11px 0 11px 38px;
    font-size: 15px;
    color: #2c3e50;
}

/* 站点圆点 */
.metro-station::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2a5b96;
    z-index: 2;
}

/* 站点间连接线 */
.metro-station::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #b9c9dd;
}

.metro-station:first-child::after {
    top: 50%;
}

.metro-station:last-child::after {
    bottom: 50%;
}

/* 始发/终到站：大号空心圆 */
.metro-station.station-end::before {
    width: 18px;
    height: 18px;
    left: 6px;
    background-color: #ffffff;
    border: 4px solid #17375e;
}

/* 临时站：红色标记 */
.metro-station.station-temp::before {
    background-color: #d04a3a;
    border-color: #d04a3a;
    box-shadow: 0 0 0 3px rgba(208, 74, 58, 0.18);
}

.metro-station.station-temp .station-name {
    color: #d04a3a;
}

/* 绿色标注站 */
.metro-station.station-green::before {
    background-color: #2e9e5b;
    border-color: #2e9e5b;
}

.metro-station.station-green .station-name {
    color: #2e9e5b;
    font-weight: 600;
}

.station-temp-mark {
    color: #d04a3a;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

/* 换乘标注（可点击跳转） */
.station-transfer {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #0a6fd6;
    background-color: rgba(10, 111, 214, 0.08);
    border: 1px solid rgba(10, 111, 214, 0.5);
    border-radius: 10px;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s, color 0.15s;
}

.station-transfer:hover {
    background-color: #0a6fd6;
    color: #ffffff;
}

/* 方向信息占位 */
.direction-placeholder {
    background-color: #f7f9fc;
    color: #8a97a8;
    padding: 26px 20px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    border: 1px dashed #cfd8e8;
}

/* ----- 公交板块手机适配 ----- */
@media (max-width: 768px) {
    .bus-grid {
        gap: 8px;
    }

    .bus-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .bus-card-line {
        width: 64px;
        font-size: 15px;
    }

    .bus-card-route {
        font-size: 13px;
    }

    .bus-detail-view {
        padding: 20px 16px;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-item-wide {
        grid-column: auto;
    }

    .metro-station {
        font-size: 13px;
        padding: 9px 0 9px 32px;
    }

    .station-transfer {
        font-size: 10px;
        margin-left: 4px;
        padding: 0 6px;
    }

    .metro-station::before {
        left: 7px;
        width: 10px;
        height: 10px;
    }

    .metro-station::after {
        left: 11px;
    }

    .metro-station.station-end::before {
        width: 16px;
        height: 16px;
        left: 4px;
    }
}

@media (max-width: 420px) {
    .bus-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   更多查询板块
   ============================================ */

.more-tip {
    font-size: 13px;
    color: #8a97a8;
    margin-bottom: 14px;
}

/* ----- 搜索站点 ----- */
.more-input {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto 18px;
    padding: 11px 16px;
    font-size: 15px;
    color: #2c3e50;
    border: 1px solid #cfd8e8;
    border-radius: 6px;
    outline: none;
    background-color: #f7f9fc;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.more-input:focus {
    border-color: #2a5b96;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 91, 150, 0.12);
}

.more-count {
    font-size: 13px;
    color: #66778a;
    margin-bottom: 12px;
    text-align: center;
}

.station-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.station-chip {
    padding: 6px 14px;
    font-size: 13px;
    color: #2a5b96;
    background-color: #eef3f9;
    border: 1px solid #cfd8e8;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.station-chip:hover {
    background-color: #2a5b96;
    color: #ffffff;
    border-color: #2a5b96;
}

.more-empty {
    text-align: center;
    color: #8a97a8;
    padding: 20px 0;
    font-size: 14px;
}

.more-hint {
    text-align: center;
    color: #a6b3c4;
    font-size: 14px;
    padding: 26px 0;
}

.station-detail-name {
    font-size: 20px;
    color: #17375e;
    margin: 8px 0 16px;
    padding-left: 10px;
    border-left: 4px solid #2a5b96;
}

.station-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.station-line-row {
    background-color: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-left: 4px solid #2a5b96;
    border-radius: 6px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.station-line-row:hover {
    background-color: #eef3f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}

.station-line-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.station-line-no {
    font-size: 16px;
    font-weight: 700;
    color: #17375e;
}

.station-line-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 18px;
}

.sl-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sl-item-wide {
    grid-column: 1 / -1;
}

.sl-label {
    font-size: 11px;
    color: #8a97a8;
}

.sl-value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
}

/* ----- 路线查询 ----- */
.route-query-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.route-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    flex: 1 1 200px;
    max-width: 320px;
}

.route-field label {
    font-size: 13px;
    color: #66778a;
}

.route-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #2c3e50;
    border: 1px solid #cfd8e8;
    border-radius: 6px;
    background-color: #f7f9fc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.route-input:focus {
    border-color: #2a5b96;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 91, 150, 0.12);
}

.route-swap-btn {
    flex-shrink: 0;
    width: 44px;
    height: 40px;
    font-size: 18px;
    color: #2a5b96;
    background-color: #eef3f9;
    border: 1px solid #cfd8e8;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.route-swap-btn:hover {
    background-color: #dbe6f3;
}

.query-btn {
    flex-shrink: 0;
    padding: 10px 30px;
    font-size: 15px;
    color: #ffffff;
    background-color: #2a5b96;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.query-btn:hover {
    background-color: #1f4e7e;
}

.route-result {
    min-height: 60px;
}

.route-hint {
    text-align: center;
    color: #8a97a8;
    font-size: 14px;
    padding: 18px 0;
}

.route-error {
    text-align: center;
    color: #c0392b;
    font-size: 14px;
    padding: 18px 0;
    background-color: #fdf0ee;
    border-radius: 6px;
}

.route-plan {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    overflow: hidden;
}

.route-summary {
    display: flex;
    background-color: #17375e;
    color: #ffffff;
}

.rs-item {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
}

.rs-item + .rs-item {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.rs-label {
    display: block;
    font-size: 12px;
    color: #b8c9de;
    margin-bottom: 4px;
}

.rs-value {
    font-size: 18px;
    font-weight: 700;
}

.route-legs {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-leg {
    background-color: #f7f9fc;
    border-radius: 6px;
    padding: 12px 14px;
}

.route-leg-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.route-leg-no {
    font-size: 15px;
    font-weight: 700;
    color: #17375e;
    background-color: #eef3f9;
    border: 1px solid #cfd8e8;
    border-radius: 4px;
    padding: 2px 10px;
}

.route-leg-dir {
    font-size: 12px;
    color: #2e7d4f;
    background-color: #e8f5ed;
    border-radius: 4px;
    padding: 2px 8px;
}

.route-leg-path {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.route-transfer-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #2a5b96;
}

.route-leg-detail {
    margin-top: 8px;
}

.route-leg-detail summary {
    font-size: 12px;
    color: #8a97a8;
    cursor: pointer;
    user-select: none;
}

.route-leg-chain {
    margin-top: 8px;
    font-size: 13px;
    color: #66778a;
    line-height: 1.8;
    word-break: break-all;
}

/* ----- 更多查询手机适配 ----- */
@media (max-width: 768px) {
    .station-line-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
    }

    .route-query-form {
        flex-direction: column;
        align-items: stretch;
    }

    .route-field {
        min-width: 0;
        max-width: none;
        flex: none;
    }

    .route-swap-btn {
        align-self: center;
        width: 40px;
        height: 36px;
    }

    .query-btn {
        width: 100%;
    }

    .rs-value {
        font-size: 15px;
    }
}

/* ============================================
   实时地图板块
   ============================================ */

.live-map-card {
    text-align: center;
    padding: 24px 0;
}

.live-map-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 17px;
    color: #ffffff;
    background-color: #2a5b96;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.15s;
}

.live-map-btn:hover {
    background-color: #1f4e7e;
    transform: translateY(-2px);
}

.live-map-btn.is-off {
    background-color: #9aa3ad;
    cursor: not-allowed;
    pointer-events: none;
}

.live-map-btn.is-off:hover {
    background-color: #9aa3ad;
    transform: none;
}

.live-map-off {
    margin-top: 12px;
    font-size: 13px;
    color: #e74c3c;
}

/* ============================================
   加入我们：外部账号按钮
   ============================================ */

.join-external-btn {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    padding: 10px 28px;
    font-size: 15px;
    color: #ffffff;
    background-color: #fb7299;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.join-external-btn:hover {
    background-color: #e85d85;
}

.join-external-btn-blue {
    background-color: #2a5b96;
}

.join-external-btn-blue:hover {
    background-color: #1f4e7e;
}

.join-external-btn-green {
    background-color: #07c160;
}

.join-external-btn-green:hover {
    background-color: #06a050;
}

/* 微信公众号详情页 */
.wechat-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(20, 40, 80, 0.08);
    padding: 40px 32px;
    text-align: center;
    max-width: 480px;
    margin: 30px auto 0;
}

.wechat-qr {
    display: block;
    width: 280px;
    height: 280px;
    max-width: 80vw;
    object-fit: contain;
    margin: 0 auto 24px;
    border: 1px solid #ecedf0;
    border-radius: 8px;
    background-color: #f6f8fb;
}

.wechat-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
    padding: 0 8px;
}

/* ============================================
   服务器状态查询（日历）
   ============================================ */

.server-calendar {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    background-color: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cal-title {
    font-size: 16px;
    font-weight: 700;
    color: #17375e;
    min-width: 110px;
    text-align: center;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    color: #2a5b96;
    background-color: #eef3f9;
    border: 1px solid #cfd8e8;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.cal-nav-btn:hover {
    background-color: #dbe6f3;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-weekday {
    text-align: center;
    font-size: 12px;
    color: #8a97a8;
    padding: 6px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day-empty {
    visibility: hidden;
}

.cal-day-num {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2c3e50;
    border-radius: 50%;
}

.cal-day-closed .cal-day-num {
    background-color: #e74c3c;
    color: #ffffff;
    font-weight: 700;
}

.cal-day-open .cal-day-num {
    background-color: #27ae60;
    color: #ffffff;
    font-weight: 700;
}

.cal-day-today .cal-day-num {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2a5b96;
}

.server-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #66778a;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-closed {
    background-color: #e74c3c;
}

.legend-open {
    background-color: #27ae60;
}

/* ============================================
   楼盘信息板块
   ============================================ */

/* 楼盘状态颜色 */
.status-badge.status-preopen {
    background-color: #fdf2e3;
    color: #c47a17;
}

.status-badge.status-open {
    background-color: #e6f0fa;
    color: #2a5b96;
}

.status-badge.status-soldout {
    background-color: #ecedf0;
    color: #6c757d;
}

/* 列表 */
.building-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.building-card {
    padding: 16px 18px;
    background-color: #f6f8fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.building-card:hover {
    background-color: #eef3fa;
    border-color: #2a5b96;
    transform: translateX(2px);
}

.building-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.building-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #17375e;
    margin: 0;
}

.building-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #4a5568;
}

.building-card-info b {
    color: #c47a17;
    font-weight: 600;
}

/* 详情 */
.building-detail-card {
    padding: 24px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.building-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ecedf0;
    gap: 12px;
    flex-wrap: wrap;
}

.building-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: #17375e;
    margin: 0;
}

.building-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 24px;
}

.bd-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bd-label {
    font-size: 12px;
    color: #8a97a8;
}

.bd-value {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
    word-break: break-all;
}

/* 更多产品查询 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.product-item:hover {
    background-color: #f7f9fc;
    border-color: #2a5b96;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-item-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #17375e;
    min-width: 0;
}

.product-item-flag {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.product-item-flag-yes {
    background-color: #e8f7ee;
    color: #1f9d57;
}

.product-item-flag-no {
    background-color: #f0f1f4;
    color: #8a97a8;
}

.product-empty {
    text-align: center;
    color: #8a97a8;
    padding: 20px 0;
    font-size: 14px;
}

/* 产品详情视图 */
/* 独立详情页卡片容器 */
.product-detail-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(20, 40, 80, 0.08);
    padding: 32px 24px;
    max-width: 640px;
    margin: 30px auto 0;
}

.product-detail-img-wrap {
    max-width: 520px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f6f8fb;
    border: 1px solid #ecedf0;
}

.product-detail-img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.product-detail-img-empty {
    padding: 60px 20px;
    text-align: center;
    color: #8a97a8;
    font-size: 14px;
}

.product-detail-name {
    font-size: 20px;
    color: #17375e;
    margin: 0 0 12px 0;
    text-align: center;
    border-left: none;
    padding: 0;
}

.product-detail-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 18px 0;
    text-indent: 2em;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    background-color: #f7f9fc;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.product-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail-label {
    font-size: 12px;
    color: #8a97a8;
}

.product-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #17375e;
}

.product-detail-action {
    text-align: center;
}

.product-download-status {
    display: inline-block;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    vertical-align: middle;
}

.product-download-status-yes {
    background-color: #e8f7ee;
    color: #1f9d57;
}

.product-download-status-no {
    background-color: #f0f1f4;
    color: #8a97a8;
}

.product-download-btn {
    display: inline-block;
    background-color: #07c160;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-download-btn:hover {
    background-color: #06a050;
}

.product-download-btn.is-disabled {
    background-color: #c0c8d4;
    color: #ffffff;
    cursor: not-allowed;
    pointer-events: none;
}

/* 户型全览区域 */
.building-floorplan {
    border-top: 1px solid #ecedf0;
    padding-top: 20px;
}

.unit-list-title {
    font-size: 17px;
    color: #17375e;
    margin: 0 0 6px 0;
    text-align: left;
    border-left: 3px solid #2a5b96;
    padding-left: 10px;
}

.unit-list-count {
    text-align: right;
    font-size: 13px;
    color: #8a97a8;
    margin-bottom: 14px;
}

.unit-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unit-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 10px 14px;
    background-color: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
}

.unit-code {
    font-size: 14px;
    font-weight: 700;
    color: #17375e;
    min-width: 62px;
}

.unit-area {
    font-size: 13px;
    color: #2a5b96;
    font-weight: 600;
    min-width: 58px;
}

.unit-layout {
    font-size: 13px;
    color: #4a5568;
    flex: 1;
    min-width: 100px;
}

.unit-price-new {
    font-size: 13px;
    color: #c47a17;
    font-weight: 600;
}

.unit-price-second {
    font-size: 13px;
    color: #2a5b96;
    font-weight: 600;
}

.unit-empty {
    text-align: center;
    color: #8a97a8;
    padding: 20px 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .building-detail-grid {
        grid-template-columns: 1fr;
    }

    .building-detail-name {
        font-size: 19px;
    }

    .building-card-info {
        gap: 10px 16px;
        font-size: 12px;
    }
}

/* ============================================
   服务器帖子板块
   ============================================ */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.posts-empty {
    padding: 48px 20px;
    text-align: center;
    font-size: 15px;
    color: #8a97a8;
    background-color: #ffffff;
    border-radius: 10px;
}

.post-card {
    position: relative;
    padding: 20px 22px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-delete {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    line-height: 1;
    font-size: 18px;
    color: #b0bac5;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.post-delete:hover {
    color: #e74c3c;
    background-color: #fdeeee;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    color: #17375e;
    padding-right: 40px;
    margin: 0 0 6px;
}

.post-meta {
    font-size: 12px;
    color: #8a97a8;
    margin-bottom: 10px;
}

.post-content {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.post-image {
    max-width: 220px;
    max-height: 220px;
    border-radius: 8px;
    object-fit: cover;
}

.post-files,
.post-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-file-link {
    display: inline-block;
    font-size: 13px;
    color: #2a5b96;
    background-color: #eef3f9;
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none;
    word-break: break-all;
}

.post-file-link:hover {
    background-color: #dfe9f5;
}

.post-link {
    font-size: 13px;
    color: #2a5b96;
    word-break: break-all;
    text-decoration: underline;
}

/* 发布新贴悬浮按钮 */
.post-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2a5b96;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(42, 91, 150, 0.35);
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

.post-fab:hover {
    background-color: #1f4e7e;
    transform: translateY(-2px);
}

/* 编辑器弹窗 */
.post-editor-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
}

.post-editor {
    width: min(680px, calc(100% - 32px));
    max-height: 88vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.post-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.post-editor-title {
    font-size: 18px;
    font-weight: 700;
    color: #17375e;
    margin: 0;
}

.post-editor-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    color: #8a97a8;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.post-editor-close:hover {
    color: #e74c3c;
    background-color: #fdeeee;
}

.post-title-input,
.post-author-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7dfe9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #2c3e50;
    outline: none;
    margin-bottom: 10px;
}

.post-title-input:focus,
.post-author-input:focus {
    border-color: #2a5b96;
}

.post-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.post-toolbar button {
    padding: 7px 16px;
    font-size: 13px;
    color: #2a5b96;
    background-color: #eef3f9;
    border: 1px solid #cfd8e8;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.post-toolbar button:hover {
    background-color: #dfe9f5;
}

.post-content-area {
    width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    border: 1px solid #d7dfe9;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3e50;
    line-height: 1.7;
    resize: vertical;
    outline: none;
}

.post-content-area:focus {
    border-color: #2a5b96;
}

.post-editor-attach {
    margin-top: 10px;
}

.attach-block {
    margin-bottom: 8px;
}

.attach-label {
    font-size: 12px;
    color: #8a97a8;
    margin-right: 8px;
}

.attach-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attach-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2c3e50;
    background-color: #f2f5f9;
    border-radius: 6px;
    padding: 4px 8px;
    max-width: 260px;
    word-break: break-all;
}

.attach-remove {
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 1;
    color: #8a97a8;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.attach-remove:hover {
    color: #e74c3c;
}

.post-editor-foot {
    margin-top: 14px;
    text-align: right;
}

.post-submit-btn {
    padding: 10px 36px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2a5b96;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.post-submit-btn:hover {
    background-color: #1f4e7e;
}

@media (max-width: 768px) {
    .post-fab {
        right: 16px;
        bottom: 16px;
        padding: 11px 20px;
        font-size: 14px;
    }

    .post-editor {
        padding: 16px;
    }

    .post-image {
        max-width: 100%;
    }
}
