/* ============================================
   跨境电商独立站 - 公共样式文件
   ============================================ */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #e74c3c;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #e74c3c;
}

button {
    cursor: pointer;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button.btn-outline {
    background-color: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

button.btn-outline:hover {
    background-color: #e74c3c;
    color: #fff;
}

button.btn-dark {
    background-color: #333;
}

button.btn-dark:hover {
    background-color: #555;
}

button.btn-gray {
    background-color: #95a5a6;
}

button.btn-gray:hover {
    background-color: #7f8c8d;
}

/* ---------- 容器 ---------- */
.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ---------- 顶部公告栏 ---------- */
.top-bar {
    background-color: #222;
    color: #ccc;
    font-size: 12px;
    padding: 8px 0;
    text-align: center;
}

.top-bar a {
    color: #fff;
    margin: 0 10px;
}

/* ---------- 头部 ---------- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.logo span {
    font-size: 26px;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: 2px;
}

.logo span {
    color: #333;
}

/* ---------- 搜索栏 ---------- */
.search-bar {
    display: flex;
    width: 400px;
    max-width: 100%;
}

.search-bar input {
    flex: 1;
    border-radius: 4px 0 0 4px;
    border-right: none;
    padding: 10px 15px;
}

.search-bar button {
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
}

/* ---------- 头部工具栏 ---------- */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-tools a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #555;
    position: relative;
}

.header-tools a:hover {
    color: #e74c3c;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 主导航 ---------- */
.main-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

/* 有下拉菜单的导航项添加向下箭头 */
.main-nav ul li.has-dropdown > a::after {
    content: '\F282'; /* Bootstrap Icons chevron-down */
    font-family: 'bootstrap-icons' !important;
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.main-nav ul li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
    color: #e74c3c;
    background-color: #fef5f5;
}

/* 导航下拉菜单 */
.main-nav ul li {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    z-index: 999;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 下拉菜单箭头 */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.main-nav ul li:hover .nav-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #333;
    text-align: left;
    transition: all 0.2s ease;
    border-bottom: none;
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}

.nav-dropdown li a:hover {
    background-color: #fef5f5;
    color: #e74c3c;
    padding-left: 25px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* ---------- 幻灯片/轮播 ---------- */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide-item {
    min-width: 100%;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-item .slide-text {
    position: absolute;
    bottom: 40px;
    left: 50px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-item .slide-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.slide-item .slide-text p {
    font-size: 16px;
    margin-bottom: 15px;
}

.slide-item .slide-text a {
    color: #fff;
    background-color: #e74c3c;
    padding: 10px 25px;
    border-radius: 4px;
    display: inline-block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
}

/* ---------- 商品卡片 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card .product-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
}

.product-card .product-info {
    padding: 15px;
}

.product-card .product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 39px;
}

.product-card .product-name:hover {
    color: #e74c3c;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.product-card .product-price .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.product-card .add-cart-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 3px;
}

/* ---------- 分类区块 ---------- */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.category-header a {
    font-size: 13px;
    color: #999;
}

/* ---------- 侧边栏筛选 ---------- */
.list-layout {
    display: flex;
    gap: 25px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar .filter-group {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sidebar .filter-group h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar .filter-group ul li {
    padding: 6px 0;
}

.sidebar .filter-group ul li a,
.sidebar .filter-group ul li label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .filter-group ul li a:hover,
.sidebar .filter-group ul li label:hover {
    color: #e74c3c;
}
.sidebar .filter-group ul li a.active {
    color: #e74c3c;
    font-weight: 600;
    background: #fef5f5;
    border-radius: 4px;
    padding: 4px 8px;
}

.sidebar .filter-group ul .sub-category {
    padding-left: 20px;
    margin-top: 4px;
}

.sidebar .filter-group ul .sub-category li {
    padding: 4px 0;
}

.sidebar .filter-group ul .sub-category li a {
    font-size: 12px;
    color: #888;
    padding: 3px 8px;
    border-radius: 4px;
}

.sidebar .filter-group ul .sub-category li a:hover {
    color: #e74c3c;
    background: #fef5f5;
}

.sidebar .filter-group ul .sub-category li a.active {
    color: #e74c3c;
    font-weight: 600;
    background: #fef5f5;
}



.sidebar .filter-group ul li a.active {
    color: #e74c3c;
    font-weight: 600;
    background: #fef5f5;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.sidebar .filter-group ul .sub-category {
    padding-left: 20px;
    margin-top: 4px;
}

.sidebar .filter-group ul .sub-category li {
    padding: 4px 0;
}

.sidebar .filter-group ul .sub-category li a {
    font-size: 12px;
    color: #888;
    padding: 3px 8px;
    margin: -3px -8px;
    border-radius: 4px;
}

.sidebar .filter-group ul .sub-category li a:hover {
    color: #e74c3c;
    background: #fef5f5;
}

.sidebar .filter-group ul .sub-category li a.active {
    color: #e74c3c;
    font-weight: 600;
    background: #fef5f5;
}

.list-content {
    flex: 1;
}

/* ---------- 排序栏 ---------- */
.sort-bar {
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sort-bar a {
    font-size: 13px;
    color: #666;
    padding: 5px 12px;
    border-radius: 3px;
    transition: all 0.3s;
}

.sort-bar a:hover,
.sort-bar a.active {
    background: #e74c3c;
    color: #fff;
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background: #fff;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.active {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pagination span.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ---------- 商品详情页 ---------- */
.detail-layout {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-gallery {
    width: 450px;
    flex-shrink: 0;
}

.detail-gallery .main-img {
    width: 100%;
    height: 450px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.detail-gallery .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery .thumb-list {
    display: flex;
    gap: 8px;
}

.detail-gallery .thumb-list .thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.detail-gallery .thumb-list .thumb-item:hover,
.detail-gallery .thumb-list .thumb-item.active {
    border-color: #e74c3c;
}

.detail-gallery .thumb-list .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.detail-info .detail-price {
    background: #fef5f5;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.detail-info .detail-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.detail-info .detail-price .original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 15px;
}

.detail-options {
    margin-bottom: 20px;
}

.detail-options .option-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail-options .option-label {
    width: 80px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.detail-options .option-values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-options .option-values span {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.detail-options .option-values span:hover,
.detail-options .option-values span.selected {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fef5f5;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: #eee;
    transform: none;
}

.quantity-selector input {
    width: 60px;
    height: 36px;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.detail-actions button {
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 6px;
}

/* ---------- 详情选项卡 ---------- */
.detail-tabs {
    background: #fff;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #eee;
}

.tab-header .tab-item {
    padding: 15px 30px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-header .tab-item:hover,
.tab-header .tab-item.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.tab-content {
    padding: 25px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---------- 评价 ---------- */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item .review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-item .review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.review-item .review-stars {
    color: #f39c12;
    font-size: 14px;
}

.review-item .review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.review-item .review-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ---------- 购物车 ---------- */
.cart-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: #f8f8f8;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-align: left;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-table .cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-table .cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-table .cart-product .name {
    font-size: 14px;
    color: #333;
}

.cart-table .cart-product .spec {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.cart-table .remove-btn {
    color: #999;
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    padding: 5px;
}

.cart-table .remove-btn:hover {
    color: #e74c3c;
    transform: none;
}

.cart-summary {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-summary .total-price {
    font-size: 14px;
    color: #666;
}

.cart-summary .total-price .amount {
    font-size: 26px;
    font-weight: 700;
    color: #e74c3c;
}

.cart-summary button {
    padding: 14px 50px;
    font-size: 16px;
}

/* ---------- 结算页面 ---------- */
.checkout-layout {
    display: flex;
    gap: 25px;
}

.checkout-main {
    flex: 1;
}

.checkout-side {
    width: 350px;
    flex-shrink: 0;
}

.checkout-block {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.checkout-block h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.address-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.address-card:hover,
.address-card.selected {
    border-color: #e74c3c;
    background: #fef5f5;
}

.address-card .addr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.address-card .addr-name {
    font-weight: 600;
}

.address-card .addr-default-tag {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}

.address-card .addr-detail {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.address-card .addr-actions {
    display: none;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.address-card:hover .addr-actions,
.address-card.selected .addr-actions {
    display: flex;
}

.address-card .addr-actions a {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.address-card .addr-actions a:hover {
    color: #e74c3c;
}

/* 地址弹窗 */
.addr-modal-box {
    max-width: 480px;
    width: 90%;
}

.addr-modal-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.addr-modal-box .form-group {
    margin-bottom: 15px;
}

.addr-modal-box .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.addr-modal-box .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.addr-modal-box .form-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.btn-primary {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #c0392b;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover,
.payment-option.selected {
    border-color: #e74c3c;
    background: #fef5f5;
}

.order-summary-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.order-summary-item .item-info {
    flex: 1;
}

.order-summary-item .item-name {
    font-size: 13px;
    margin-bottom: 4px;
}

.order-summary-item .item-price {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 8px;
}

.summary-row.total .val {
    color: #e74c3c;
    font-size: 22px;
}

/* ---------- 登录/注册弹窗 ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 440px;
    max-width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.modal-close:hover {
    color: #333;
    transform: none;
}

.modal-box h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
}

.form-group .input-error {
    border-color: #e74c3c;
}

.form-group .error-msg {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.auth-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.auth-tabs .tab.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* ---------- 订单 ---------- */
.order-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.order-card-header .order-status {
    color: #e74c3c;
    font-weight: 600;
}

.order-card-body {
    padding: 20px;
}

.order-card-body .order-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.order-card-body .order-product img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.order-card-footer .order-total {
    font-size: 15px;
    font-weight: 600;
}

.order-card-footer .order-total .amount {
    color: #e74c3c;
}

.order-card-footer .order-actions {
    display: flex;
    gap: 10px;
}

.order-card-footer .order-actions button {
    padding: 8px 20px;
    font-size: 13px;
}

/* ---------- 物流信息 ---------- */
.logistics-timeline {
    padding: 20px 0 20px 30px;
    position: relative;
}

.logistics-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-item {
    position: relative;
    padding: 0 0 25px 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #fff;
}

.timeline-item:first-child::before {
    background: #e74c3c;
}

.timeline-item .time {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.timeline-item .desc {
    font-size: 14px;
    color: #333;
}

/* ---------- 地址管理 ---------- */
.address-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.address-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.address-item:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.address-item .default-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}

.address-item .addr-user {
    font-weight: 600;
    margin-bottom: 8px;
}

.address-item .addr-phone {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.address-item .addr-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.address-item .addr-actions {
    display: flex;
    gap: 10px;
}

.address-item .addr-actions a {
    font-size: 13px;
    color: #999;
}

.address-item .addr-actions a:hover {
    color: #e74c3c;
}

.add-address-card {
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    cursor: pointer;
    transition: all 0.3s;
    color: #999;
}

.add-address-card:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.add-address-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* ---------- 尾部 ---------- */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---------- 加载状态 ---------- */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- 提示消息 ---------- */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 99999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- 用户中心侧边栏 ---------- */
.user-layout {
    display: flex;
    gap: 25px;
}

.user-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.user-sidebar .user-menu {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-sidebar .user-menu .user-avatar {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.user-sidebar .user-menu .user-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: #eee;
}

.user-sidebar .user-menu .user-name {
    font-size: 15px;
    font-weight: 600;
}

.user-sidebar .user-menu ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
}

.user-sidebar .user-menu ul li a:hover,
.user-sidebar .user-menu ul li a.active {
    color: #e74c3c;
    background: #fef5f5;
}

.user-content {
    flex: 1;
}

/* ---------- 响应式辅助 ---------- */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ---------- 页面标题区 ---------- */
.page-header {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    color: #fff;
    padding: 35px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
}

.page-header p {
    font-size: 14px;
    color: #ccc;
    margin-top: 8px;
}

/* ---------- 复选框/单选框美化 ---------- */
input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #e74c3c;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: all 0.3s;
    padding: 0;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* ============================================
   响应式适配 - 平板端 (max-width: 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* 头部搜索栏缩小 */
    .search-bar {
        width: 280px;
    }

    /* 商品网格4列变3列 */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid.grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 详情页布局调整 */
    .detail-layout {
        flex-direction: column;
    }

    .detail-gallery {
        width: 100%;
    }

    .detail-gallery .main-img {
        height: 350px;
    }

    /* 结算布局调整 */
    .checkout-layout {
        flex-direction: column;
    }

    .checkout-side {
        width: 100%;
    }

    /* 用户中心布局调整 */
    .user-layout {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .user-sidebar .user-menu {
        display: flex;
        align-items: center;
    }

    .user-sidebar .user-menu .user-avatar {
        border-bottom: none;
        border-right: 1px solid #eee;
        padding: 15px 20px;
    }

    .user-sidebar .user-menu ul {
        display: flex;
        flex-wrap: wrap;
    }

    .user-sidebar .user-menu ul li a {
        border-bottom: none;
        border-right: 1px solid #f5f5f5;
        padding: 12px 15px;
    }

    /* 地址网格3列变2列 */
    .address-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 列表页侧边栏 */
    .sidebar {
        width: 200px;
    }

    /* 幻灯片高度 */
    .slide-item img {
        height: 300px;
    }

    /* 购物车表格 */
    .cart-table {
        overflow-x: auto;
    }

    .cart-table table {
        min-width: 600px;
    }

    /* 购物车结算栏 */
    .cart-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* 页脚网格2列 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   响应式适配 - 手机端 (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {
    /* 顶部公告栏 */
    .top-bar {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* 头部重构 */
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .logo {
        font-size: 22px;
    }

    .logo img {
        height: 34px;
        max-width: 130px;
    }

    .search-bar {
        width: 100%;
        order: 3;
    }

    .header-tools {
        gap: 12px;
    }

    .header-tools a {
        font-size: 13px;
    }

    /* 移动端导航 - 汉堡菜单 */
    .main-nav {
        display: none;
    }

    .main-nav.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-nav.mobile-open ul {
        flex-direction: column;
    }

    .main-nav.mobile-open ul li a {
        padding: 14px 20px;
        border-bottom: 1px solid #f5f5f5;
    }

    /* 移动端有下拉菜单的导航项箭头旋转 */
    .main-nav.mobile-open ul li.has-dropdown > a::after {
        content: '\F282';
        font-family: 'bootstrap-icons' !important;
        float: right;
        margin-left: 6px;
        transition: transform 0.3s ease;
    }

    .main-nav.mobile-open ul li.has-dropdown.open > a::after {
        transform: rotate(180deg);
    }

    .main-nav.mobile-open .nav-dropdown {
        position: static;
        box-shadow: none;
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        margin-top: 0;
        border-radius: 0;
        background-color: #f9f9f9;
        padding-left: 20px;
    }

    /* 移动端展开的下拉菜单 */
    .main-nav.mobile-open ul li.has-dropdown.open > .nav-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .main-nav.mobile-open .nav-dropdown::before {
        display: none;
    }

    .main-nav.mobile-open .nav-dropdown li a {
        font-size: 12px;
        padding: 8px 15px;
        color: #666;
    }

    .main-nav.mobile-open .nav-dropdown li a:hover {
        background-color: #fff;
        color: #e74c3c;
        padding-left: 15px;
    }

    /* 汉堡菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: none;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 20px;
        color: #333;
        cursor: pointer;
        padding: 0;
        transform: none;
    }

    .mobile-menu-btn:hover {
        background: #f5f5f5;
        transform: none;
    }

    /* 幻灯片 */
    .slide-item img {
        height: 200px;
    }

    .slide-item .slide-text {
        bottom: 20px;
        left: 20px;
    }

    .slide-item .slide-text h2 {
        font-size: 20px;
    }

    .slide-item .slide-text p {
        font-size: 13px;
    }

    .slide-item .slide-text a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* 区块标题 */
    .section-title {
        font-size: 20px;
    }

    .section {
        padding: 25px 0;
    }

    /* 商品网格2列 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card .product-img {
        height: 180px;
    }

    .product-card .product-info {
        padding: 10px;
    }

    .product-card .product-name {
        font-size: 13px;
        height: 36px;
    }

    .product-card .product-price {
        font-size: 16px;
    }

    .product-card .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* 列表页 */
    .list-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar .filter-group {
        padding: 15px;
        margin-bottom: 10px;
    }

    .sidebar .filter-group.category-filter-group {
        display: none;
    }

    .sort-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 15px;
    }

    .sort-bar a {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 面包屑 */
    .breadcrumb {
        font-size: 12px;
        padding: 10px 0;
    }

    /* 详情页 */
    .detail-layout {
        padding: 15px;
        gap: 20px;
    }

    .detail-gallery .main-img {
        height: 300px;
    }

    .detail-gallery .thumb-list .thumb-item {
        width: 55px;
        height: 55px;
    }

    .detail-info h1 {
        font-size: 18px;
    }

    .detail-info .detail-price .price {
        font-size: 24px;
    }

    .detail-options .option-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-options .option-label {
        width: auto;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    /* 详情选项卡 */
    .tab-header {
        overflow-x: auto;
    }

    .tab-header .tab-item {
        padding: 12px 18px;
        font-size: 14px;
        white-space: nowrap;
    }

    .tab-content {
        padding: 15px;
    }

    /* 购物车 */
    .cart-summary {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .cart-summary button {
        width: 100%;
    }

    /* 结算页 */
    .checkout-block {
        padding: 18px;
    }

    .checkout-block h3 {
        font-size: 15px;
    }

    /* 订单卡片 */
    .order-card-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .order-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .order-card-footer .order-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .order-card-footer .order-actions button {
        flex: 1;
        min-width: 80px;
    }

    /* 地址网格 */
    .address-grid {
        grid-template-columns: 1fr;
    }

    /* 页面标题 */
    .page-header {
        padding: 25px 0;
    }

    .page-header h1 {
        font-size: 22px;
    }

    /* 弹窗 */
    .modal-box {
        width: 95%;
        padding: 25px;
        margin: 10px;
    }

    /* 页脚 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col h4 {
        margin-bottom: 12px;
    }

    .site-footer {
        padding-top: 30px;
    }

    /* 用户中心侧边栏 */
    .user-sidebar .user-menu {
        flex-direction: column;
    }

    .user-sidebar .user-menu .user-avatar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    .user-sidebar .user-menu ul {
        flex-direction: column;
    }

    .user-sidebar .user-menu ul li a {
        border-right: none;
        border-bottom: 1px solid #f5f5f5;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ============================================
   响应式适配 - 小屏手机 (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        height: 28px;
        max-width: 110px;
    }

    .header-tools a {
        font-size: 12px;
    }

    .header-tools a span {
        display: none;
    }

    .search-bar input {
        padding: 8px 10px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 幻灯片更矮 */
    .slide-item img {
        height: 160px;
    }

    .slide-item .slide-text h2 {
        font-size: 16px;
    }

    .slide-item .slide-text p {
        font-size: 12px;
        display: none;
    }

    .banner-slider {
        margin: 10px 0;
        border-radius: 6px;
    }

    /* 商品卡片更小 */
    .product-card .product-img {
        height: 150px;
    }

    .product-card .product-info {
        padding: 8px;
    }

    .product-card .product-name {
        font-size: 12px;
        height: 33px;
    }

    .product-card .product-price {
        font-size: 14px;
    }

    .product-card .product-price .original-price {
        font-size: 11px;
    }

    .product-card .add-cart-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* 分类标题 */
    .category-header h3 {
        font-size: 16px;
    }

    .category-header a {
        font-size: 12px;
    }

    /* 详情页图片 */
    .detail-gallery .main-img {
        height: 250px;
    }

    .detail-gallery .thumb-list .thumb-item {
        width: 48px;
        height: 48px;
    }

    .detail-info h1 {
        font-size: 16px;
    }

    .detail-info .detail-price {
        padding: 10px 15px;
    }

    .detail-info .detail-price .price {
        font-size: 22px;
    }

    /* 评价 */
    .review-item .review-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* 地址管理标题 */
    .user-content > div:first-child {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* 订单筛选 */
    .order-filter {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    /* 空状态 */
    .empty-state {
        padding: 40px 15px;
    }

    .empty-state .icon {
        font-size: 48px;
    }

    .empty-state h3 {
        font-size: 16px;
    }

    /* 返回顶部 */
    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 15px;
    }
}

/* ============================================
   汉堡菜单按钮（默认隐藏，手机端显示）
   ============================================ */
.mobile-menu-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   移动端导航遮罩
   ============================================ */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.mobile-nav-overlay.show {
    display: block;
}

/* ============================================
   登录页响应式适配
   ============================================ */
@media screen and (max-width: 900px) {
    .login-banner {
        width: 300px;
        padding: 30px 25px;
    }

    .login-banner .brand {
        font-size: 28px;
    }

    .login-banner .features li {
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    .login-page {
        padding: 20px 15px;
    }

    .login-wrapper {
        width: 100%;
        max-width: 480px;
    }

    .login-banner {
        display: none;
    }

    .login-form-area {
        padding: 35px 25px;
    }

    .login-form-area h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .login-form-area {
        padding: 25px 18px;
    }

    .login-form-area h2 {
        font-size: 18px;
    }

    .social-login {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ============================================
   结算页步骤条响应式
   ============================================ */
@media screen and (max-width: 480px) {
    .container > div[style*="justify-content: center"] {
        padding: 15px 0 20px !important;
    }
}

/* ============================================
   全局平滑过渡修复
   ============================================ */
@media screen and (max-width: 768px) {
    .page-header {
        margin-bottom: 20px;
    }

    .section {
        padding: 20px 0;
    }

    .site-footer {
        margin-top: 30px;
    }
}

/* ============================================
   语言切换器样式
   ============================================ */
.lang-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lang-selector .lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-selector .lang-current:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.lang-selector .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    z-index: 1001;
    padding: 6px 0;
    margin-top: 4px;
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-selector .lang-dropdown .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-selector .lang-dropdown .lang-option:hover {
    background: #fef5f5;
    color: #e74c3c;
}

.lang-selector .lang-dropdown .lang-option.active {
    color: #e74c3c;
    font-weight: 600;
}

/* 语言切换器移动端适配 */
@media screen and (max-width: 768px) {
    #langSelector {
        display: none;
    }
}
