:root {
    --primary: #c7000b;
    --text: #222;
    --muted: #888;
    --border: #eee;
    --bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text);
    background: #f7f8fa;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-logo img {
    height: 36px;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
    padding: 8px 14px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: #1a6dff;
}

.nav-item .badge-discount {
    display: inline-block;
    background: #ff6a00;
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 3px;
    font-style: normal;
    margin-left: 2px;
    vertical-align: middle;
}

.nav-item .badge-new {
    display: inline-block;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-style: normal;
    margin-left: 2px;
    vertical-align: middle;
}

.nav-dropdown {
    cursor: pointer;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 140px;
    padding: 8px 0;
    z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f7fa;
    color: #1a6dff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-discount {
    background: #ff6a00;
    color: #fff;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-discount:hover {
    opacity: 0.85;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    overflow: hidden;
    height: 32px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 13px;
    width: 100px;
    height: 100%;
}

.btn-ai-search {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 0 12px;
    font-size: 12px;
    height: 100%;
    cursor: pointer;
    white-space: nowrap;
}

.link-free {
    font-size: 14px;
    color: #ff4d4f;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.link-free:hover {
    opacity: 0.8;
}

.link-login {
    font-size: 14px;
    color: #333;
    transition: color 0.2s;
    white-space: nowrap;
}

.link-login:hover {
    color: #1a6dff;
}

.btn-register {
    background: #1a6dff;
    color: #fff;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-register:hover {
    opacity: 0.85;
}