/* hao123 风格导航门页 — 柔和鼠尾草系，无大红大蓝 */

* { box-sizing: border-box; margin: 0; padding: 0; }

body.gate-page {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    background: linear-gradient(165deg, #f5f7f4 0%, #e8ede9 35%, #e2e8e3 70%, #e8e6ec 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #3d403c;
    font-size: 13px;
    line-height: 1.45;
}

.gate-page a { color: #454d46; text-decoration: none; }
.gate-page a:hover { color: #566b58; text-decoration: underline; }

/* 顶栏细条 */
.gate-utility {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(120, 140, 125, 0.18);
    font-size: 12px;
    color: #5c635e;
}
.gate-utility-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.gate-utility a { color: #5c635e; margin-right: 16px; }
.gate-utility a:hover { color: #566b58; }
.gate-utility .sep { color: #c5cec4; margin: 0 4px; }

/* 天气 + 搜索头 */
.gate-head {
    background: linear-gradient(180deg, #fff 0%, #f6f8f6 100%);
    border-bottom: 1px solid rgba(120, 140, 125, 0.15);
    padding: 16px 20px 14px;
    box-shadow: 0 2px 12px rgba(60, 75, 62, 0.05);
}
.gate-head-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px 24px;
    align-items: start;
}

.gate-weather {
    font-size: 12px;
    color: #5c635e;
    padding-top: 4px;
}
.gate-weather .w-city { font-size: 15px; font-weight: 700; color: #4d5e50; margin-bottom: 4px; }
.gate-weather .w-meta { color: #7a827c; line-height: 1.6; }

.gate-brand-search { min-width: 0; }
.gate-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.gate-logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}
.gate-logo .g1 { color: #6b7f6d; }
.gate-logo .g2 { color: #3d403c; }
.gate-logo .g3 { color: #8b7a8f; }
.gate-logo .g4 { font-size: 0.75em; vertical-align: super; color: #8b7a8f; }

.gate-sethome {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #c5cec4;
    border-radius: 20px;
    background: #fff;
    color: #5c635e;
    cursor: default;
}

.gate-search-box {
    display: flex;
    align-items: stretch;
    max-width: 640px;
    box-shadow: 0 2px 10px rgba(60, 80, 65, 0.08);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #c5cec4;
}
.gate-baidu-icon {
    width: 52px;
    min-width: 52px;
    background: linear-gradient(145deg, #eef4ef 0%, #dce6dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(120, 140, 125, 0.2);
}
.gate-baidu-icon svg { width: 28px; height: 28px; opacity: 0.85; }

.gate-search-box input {
    flex: 1;
    border: none;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    min-width: 0;
}
.gate-search-box input::placeholder { color: #9aa399; }

.gate-search-box .gate-btn-search {
    padding: 0 22px;
    background: #566b58;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.gate-search-box .gate-btn-search:hover { background: #465a48; }

.gate-ai-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.gate-ai-pills a {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eef1ec;
    color: #4d5e50;
    border: 1px solid rgba(120, 140, 125, 0.2);
}
.gate-ai-pills a:hover {
    background: #dfe8df;
    text-decoration: none;
}

.gate-head-tools {
    text-align: right;
    padding-top: 4px;
    font-size: 12px;
    color: #7a827c;
}
.gate-head-tools a { display: inline-block; margin-left: 12px; }

/* 新闻源标签条 */
.gate-nav-tabs {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(120, 140, 125, 0.15);
}
.gate-nav-tabs-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 2px;
    align-items: center;
    min-height: 40px;
}
.gate-nav-tabs a {
    padding: 8px 12px;
    font-size: 13px;
    color: #454d46;
    border-radius: 6px 6px 0 0;
}
.gate-nav-tabs a:hover { background: rgba(238, 242, 239, 0.9); text-decoration: none; color: #566b58; }

/* 主内容白底 */
.gate-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px 32px;
}

.gate-card {
    background: #fff;
    border: 1px solid rgba(120, 140, 125, 0.18);
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 2px 14px rgba(60, 75, 62, 0.04);
    overflow: hidden;
}

.gate-card-hd {
    padding: 10px 16px;
    background: linear-gradient(180deg, #f7faf7 0%, #eef1ec 100%);
    border-bottom: 1px solid rgba(120, 140, 125, 0.12);
    font-weight: 700;
    color: #4d5e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.gate-card-hd .tag-soft {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #dfe8df;
    color: #5f7562;
}

.gate-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 2px 4px;
    padding: 12px 14px 14px;
}
@media (min-width: 900px) {
    .gate-icon-grid { grid-template-columns: repeat(12, 1fr); }
}

.gate-icon-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 13px;
    color: #3d403c;
    min-height: 36px;
}
.gate-icon-grid a:hover {
    background: #f0f4f1;
    text-decoration: none;
    color: #455a47;
}
.gate-icon-grid img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: contain;
    background: #fff;
}

.gate-row-title {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #7a827c;
    padding: 8px 6px 4px;
    font-weight: 600;
    border-top: 1px dashed rgba(120, 140, 125, 0.2);
    margin-top: 6px;
}
.gate-row-title:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* 底部分栏 */
.gate-bottom {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 14px;
}
@media (max-width: 880px) {
    .gate-bottom { grid-template-columns: 1fr; }
}

.gate-rank-tabs {
    display: flex;
    gap: 4px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(120, 140, 125, 0.12);
    flex-wrap: wrap;
}
.gate-rank-tabs button {
    border: none;
    background: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #5c635e;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.gate-rank-tabs button.on {
    color: #4d5e50;
    font-weight: 700;
    border-bottom-color: #566b58;
}

.gate-rank-list { padding: 12px 14px; }
.gate-rank-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f0;
}
.gate-rank-item:last-child { border-bottom: none; }
.gate-rank-num {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eef1ec;
    color: #5f7562;
}
.gate-rank-item:nth-child(1) .gate-rank-num { background: #566b58; color: #fff; }
.gate-rank-item:nth-child(2) .gate-rank-num { background: #8fa896; color: #fff; }
.gate-rank-item:nth-child(3) .gate-rank-num { background: #a8b5a8; color: #fff; }
.gate-rank-body { flex: 1; min-width: 0; }
.gate-rank-title { font-weight: 600; color: #3d403c; margin-bottom: 4px; }
.gate-rank-meta { font-size: 12px; color: #8a928c; }

.gate-news-tabs {
    display: flex;
    gap: 4px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(120, 140, 125, 0.12);
    flex-wrap: wrap;
}
.gate-news-tabs button {
    border: none;
    background: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #5c635e;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.gate-news-tabs button.on {
    color: #4d5e50;
    font-weight: 700;
    border-bottom-color: #566b58;
}

.gate-skeleton-wrap { padding: 16px; }
.gate-skeleton-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.gate-skeleton-thumb {
    width: 100px;
    height: 68px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8ece9 0%, #f2f4f3 50%, #e8ece9 100%);
    background-size: 200% 100%;
    animation: gate-shimmer 1.4s ease infinite;
    flex-shrink: 0;
}
.gate-skeleton-lines { flex: 1; padding-top: 4px; }
.gate-skeleton-line {
    height: 13px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #e8ece9 0%, #f2f4f3 50%, #e8ece9 100%);
    background-size: 200% 100%;
    animation: gate-shimmer 1.4s ease infinite;
}
.gate-skeleton-line.short { width: 55%; }
@keyframes gate-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.gate-footer {
    text-align: center;
    padding: 20px 16px 28px;
    font-size: 12px;
    color: #8a928c;
    line-height: 2;
    border-top: 1px solid rgba(120, 140, 125, 0.15);
    background: rgba(255, 255, 255, 0.6);
}
.gate-footer a { color: #6d7d6f; margin: 0 10px; }

/* 右侧悬浮 */
.gate-float {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gate-float a {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    padding: 12px 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(120, 140, 125, 0.25);
    border-radius: 8px;
    color: #4d5e50;
    box-shadow: 0 2px 10px rgba(60, 75, 62, 0.08);
}
.gate-float a:hover {
    background: #f0f4f1;
    text-decoration: none;
}
@media (max-width: 1200px) {
    .gate-float { display: none; }
}

@media (max-width: 768px) {
    .gate-head-inner {
        grid-template-columns: 1fr;
    }
    .gate-weather { order: 2; }
    .gate-brand-search { order: 1; }
    .gate-head-tools { order: 3; text-align: left; }
    .gate-logo { font-size: 28px; }
}
