* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.header {
    background: #1e293b;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-wrap {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.user-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.logo {
    width: 120px;
    height: 36px;
    background: linear-gradient(90deg, #40b0ff, #297aff);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    margin-right: 30px;
}
.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.nav-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    padding: 0 4px;
    line-height: 60px;
}
.nav-list a:hover {
    color: linear-gradient(90deg, #40b0ff, #297aff);
}
.nav-list a.active {
    color: linear-gradient(90deg, #40b0ff, #297aff);
    border-bottom: 3px solid linear-gradient(90deg, #40b0ff, #297aff);
    font-weight: 600;
}
.search-box {
    flex: 1;
    max-width: 450px;
    margin: 0 40px;
    position: relative;
}
.search-box input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 14px;
    background: linear-gradient(160deg, #0c1324, #050914);
    color: #e2e8f0;
}
.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(90deg, #40b0ff, #297aff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 2;
}
/* 搜索历史下拉面板 */
.search-history {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: #1e293b;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 0;
    display: none;
    z-index: 1000;
}
.search-history.show {
    display: block;
}
.history-section {
    padding-bottom: 8px;
}
.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 8px;
    font-size: 13px;
    color: #94a3b8;
}
.history-clear {
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
}
.history-clear:hover {
    color: linear-gradient(90deg, #40b0ff, #297aff);
}
.history-list {
    max-height: 80px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    padding: 4px 8px;
    align-content: flex-start;
}
.history-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    margin: 4px;
    border-radius: 16px;
    background: #334155;
    line-height: 1.5;
}
.history-item:hover {
    background: #475569;
    color: #fff;
}
.history-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.history-del {
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
    margin-left: 6px;
}
.history-del:hover {
    color: #f43f5e;
}
.history-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.hot-search {
    padding: 12px 16px;
    margin-top: 0;
    background: transparent;
}
.hot-search-head {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.hot-search-list {
    display: flex;
    justify-content: space-between;
}
.hot-search-left, .hot-search-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hot-search-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
}
.hot-search-item:hover {
    color: linear-gradient(90deg, #40b0ff, #297aff);
}
.hot-search-rank {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}
.hot-search-rank.top3 {
    background: #ef4444;
}
.hot-search-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.login-btn {
    background: linear-gradient(90deg, #40b0ff, #297aff);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.login-btn:hover {
    opacity: 0.9;
}
.register-btn {
    background: linear-gradient(90deg, #40b0ff, #297aff);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.register-btn:hover {
    opacity: 0.9;
}
.upload-btn {
    background: linear-gradient(90deg, #40b0ff, #297aff);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
}
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
}

/* ========== 产品中心下拉菜单 ========== */
.header {
    position: relative;
}
.product-menu-item {
    position: relative;
    padding-left: 28px;
}
.hot-tag {
    position: absolute;
    top: 12px;
    left: 0;
    background: #f53f3f;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.product-menu {
    position: relative;
}
.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #f53f3f;
    transition: all 0.3s ease;
}
.product-drop {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #1e293b;
    display: none;
    flex-direction: row;
    z-index: 998;
    border-top: 1px solid #334155;
}
.product-drop.show {
    display: flex;
}

/* 左侧分类栏 */
.drop-left {
    width: 200px;
    background: linear-gradient(160deg, #0c1324, #050914);
    padding: 30px 20px;
    flex-shrink: 0;
}
.drop-left h2 {
    font-size: 36px;
    color: linear-gradient(90deg, #40b0ff, #297aff);
    margin-bottom: 30px;
    font-weight: normal;
}
.drop-left a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.5;
}
.drop-left a:hover,
.drop-left a.active {
    color: linear-gradient(90deg, #40b0ff, #297aff);
    font-weight: bold;
}

/* 右侧内容区域 */
.drop-right {
    flex: 1;
    padding: 30px;
}
.top-search-row {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-box-wrapper {
    position: relative;
}
.product-search-input {
    width: 350px;
    height: 36px;
    border: none;
    padding: 0 20px;
    border-radius: 18px;
    font-size: 14px;
    background: linear-gradient(160deg, #0c1324, #050914);
    color: #e2e8f0;
    outline: none;
}
.product-search-input::placeholder {
    color: #64748b;
}
.product-search-history {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: #1e293b;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 12px;
    display: none;
    z-index: 1001;
}
.product-search-history.show {
    display: block;
}
.product-search-history .history-section {
    padding-bottom: 8px;
}
.product-search-history .history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px 8px;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
    margin-bottom: 8px;
}
.product-search-history .history-clear {
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
}
.product-search-history .history-clear:hover {
    color: #40b0ff;
}
.product-search-history .history-list {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-search-history .history-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 16px;
    background: #334155;
    line-height: 1.5;
}
.product-search-history .history-item:hover {
    background: #475569;
    color: #fff;
}
.product-search-history .history-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.product-search-history .history-del {
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
    margin-left: 6px;
}
.product-search-history .history-del:hover {
    color: #f43f5e;
}
.search-results {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: #1e293b;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 12px;
    display: none;
    z-index: 1000;
}
.search-results.show {
    display: block;
}
.tag-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    margin: 2px;
    border-radius: 16px;
    background: #334155;
    line-height: 1.5;
    border: none;
}
.tag-button:hover {
    background: #475569;
    color: #fff;
}

.content-row {
    display: flex;
    gap: 24px;
}
.prod-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.prod-card {
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(160deg, #0c1324, #050914);
}
.card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.flag {
    width: 28px;
    height: 20px;
}
.tag-red-border {
    border: 1px solid #f53f3f;
    color: #f53f3f;
    font-size: 12px;
    padding: 2px 6px;
}
.tag-red-bg {
    background: #f53f3f;
    color: #f8fafc;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
}
.tag-green-bg {
    background: #00b42a;
    color: #f8fafc;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
}
.card-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}
.ad-box {
    width: 330px;
    flex-shrink: 0;
}
.ad-box img {
    width: 100%;
    border-radius: 8px;
}