/* 尚品购（ShangPinGou） - 全站公共组件样式 (common.css) */

/* ================= 1. 顶栏快捷导航栏 (.shortcut) ================= */
.shortcut {
    height: 30px;
    line-height: 30px;
    background-color: #333333;
    color: #b0b0b0;
    font-size: 12px;
}

.shortcut a {
    color: #b0b0b0;
}

.shortcut a:hover {
    color: #ffffff;
}

.shortcut .welcome-msg {
    margin-right: 15px;
}

.shortcut .welcome-msg .link-login {
    color: #e4393c;
    margin-left: 5px;
    margin-right: 5px;
}

.shortcut .shortcut-right ul li {
    float: left;
    position: relative;
}

.shortcut .shortcut-right ul li .spacer {
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: #555555;
    margin: 0 10px;
    vertical-align: middle;
}

.shortcut .shortcut-right .badge {
    background-color: #e4393c;
    color: #ffffff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 3px;
}

/* ================= 2. 品牌 Header 区域 (.header) ================= */
.header {
    height: 100px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo 品牌区 */
.header .logo {
    width: 200px;
    height: 60px;
}

.header .logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.header .logo-badge {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e4393c, #c02d30);
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(228, 57, 60, 0.3);
    margin-right: 10px;
}

.header .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #e4393c;
    letter-spacing: -0.5px;
}

.header .logo-subtext {
    font-size: 11px;
    color: #888888;
    display: block;
    font-weight: normal;
    letter-spacing: 1px;
}

/* 实时搜索框 */
.header .search-box-wrap {
    width: 520px;
}

.header .search-box {
    display: flex;
    border: 2px solid #e4393c;
    border-radius: 4px;
    overflow: hidden;
}

.header .search-input {
    flex: 1;
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
    color: #333333;
}

.header .search-btn {
    width: 90px;
    height: 38px;
    background-color: #e4393c;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.header .search-btn:hover {
    background-color: #c02d30;
}

.header .hot-keywords {
    margin-top: 5px;
    font-size: 12px;
    color: #999999;
}

.header .hot-keywords a {
    margin-right: 12px;
    color: #888888;
}

.header .hot-keywords a:hover {
    color: #e4393c;
}

/* 购物车快捷入口 */
.header .mini-cart {
    width: 140px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header .mini-cart:hover {
    border-color: #e4393c;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(228, 57, 60, 0.15);
}

.header .mini-cart a {
    color: #e4393c;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================= 3. 主导航栏 (.nav) ================= */
.nav {
    height: 45px;
    background-color: #ffffff;
    border-bottom: 2px solid #e4393c;
}

.nav .category-title {
    width: 200px;
    height: 45px;
    line-height: 45px;
    background-color: #e4393c;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding-left: 15px;
    float: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav .nav-items {
    float: left;
    display: flex;
    height: 45px;
    line-height: 45px;
}

.nav .nav-items li a {
    display: block;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
}

.nav .nav-items li a:hover,
.nav .nav-items li.active a {
    color: #e4393c;
}

/* ================= 4. 全站页脚 (.footer) ================= */
.footer {
    background-color: #eaeaea;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer .slogan {
    padding-bottom: 25px;
    border-bottom: 1px solid #dcdcdc;
}

.footer .slogan ul {
    display: flex;
    justify-content: space-around;
}

.footer .slogan li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer .slogan .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e4393c;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .slogan h4 {
    font-size: 16px;
    color: #333333;
    font-weight: bold;
}

.footer .slogan p {
    font-size: 12px;
    color: #888888;
}

/* 帮助中心与链接 */
.footer .help-links {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
}

.footer .help-col h5 {
    font-size: 14px;
    color: #333333;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer .help-col ul li {
    margin-bottom: 6px;
    font-size: 12px;
}

.footer .help-col ul li a {
    color: #666666;
}

.footer .help-col ul li a:hover {
    color: #e4393c;
}

.footer .copyright {
    background-color: #e1e1e1;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #777777;
    line-height: 1.8;
}

.footer .copyright a {
    color: #666666;
    margin: 0 6px;
}
