/* ============================================
   通用样式（头部、搜索、面包屑、底部、全局重置）
   ============================================ */

/* ===== 全局重置 ===== */
:root {
    --primary: #c0392b;
    --primary-hover: #a93226;
    --bg-body: #f5f7fa;
    --content-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #5e6f82;
    --border-light: #e8ecf1;
    --max-width: 1100px;
    --radius-main: 10px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background: var(--bg-body); color: var(--text-main); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 1px solid var(--border-light); padding: 8px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(6px); background: rgba(255,255,255,0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.logo-wrapper { display: flex; align-items: center; gap: 12px; }
.logo-text { font-size: 24px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 2px; }
.logo-text a { color: var(--text-main); display: flex; align-items: center; gap: 2px; }
.logo-text .char-red { color: var(--primary); position: relative; }
.logo-text .char-red::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 3px; background: var(--primary); border-radius: 2px; opacity: 0.35; }
.logo-text .char-dark { color: var(--text-main); }
.logo-text .char-light { color: var(--text-muted); font-weight: 600; }
.logo-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 30px; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 2px 6px rgba(192,57,43,0.2); white-space: nowrap; }
.logo-badge a { color: #fff !important; }
.header-right { display: flex; align-items: center; font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.header-right .login-area { display: inline-flex; align-items: center; gap: 6px; font-size: 0; }
.header-right .login-area a { font-size: 14px; line-height: 1.4; display: inline-block; }
.header-right .login-area span, .header-right .login-area i { font-size: 0 !important; display: none; }

/* ===== 搜索条 ===== */
.search-wrap { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.search-form { display: flex; max-width: 680px; margin: 0 auto; border-radius: 40px; overflow: hidden; border: 1px solid var(--border-light); background: #fff; transition: border-color 0.3s; }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
.search-form input[type="text"] { flex: 1; padding: 10px 20px; border: none; outline: none; font-size: 16px; background: transparent; height: 46px; }
.search-form input[type="text"]::placeholder { color: #aab4c0; }
.search-form button { padding: 0 28px; border: none; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; height: 46px; letter-spacing: 0.5px; flex-shrink: 0; }
.search-form button:hover { background: var(--primary-hover); }

/* ===== 面包屑 ===== */
.breadcrumb-wrap { padding: 14px 0 8px 0; }
.breadcrumb { font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--text-muted); font-weight: 400; }
.breadcrumb .sep { margin: 0 6px; color: #c7d2dd; }

/* ===== 底部 ===== */
.footer-bottom {
    text-align: center;
    padding: 20px 0 28px;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    background: #fff;
    width: 100%;
}
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom p:last-child { margin-bottom: 0; font-size: 13px; opacity: 0.8; }

/* ===== 通用响应式 ===== */
@media (max-width: 640px) {
    .container { padding: 0 14px; }
    .header { padding: 6px 0; }
    .logo-text { font-size: 20px; }
    .search-form input[type="text"] { padding: 8px 16px; font-size: 15px; height: 42px; }
    .search-form button { padding: 0 18px; font-size: 15px; height: 42px; }
}
@media (max-width: 400px) {
    .logo-text { font-size: 18px; }
    .search-form input[type="text"] { height: 38px; font-size: 14px; }
    .search-form button { height: 38px; font-size: 14px; padding: 0 14px; }
}