/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4a6fcb;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    vertical-align: middle;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.nav-link i {
    margin-right: 6px;
    font-size: 1rem;
}

.nav-link:hover {
    color: #4a6fcb;
}

.nav-link.active {
    color: #4a6fcb;
    border-bottom: 2px solid #4a6fcb;
}

/* 下拉子菜单 */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li {
    padding: 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.submenu-link:hover {
    background: #f0f7ff;
    color: #4a6fcb;
}

.submenu-link i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 会员中心下拉菜单左对齐（和会员名左边缘对齐） */
.user-submenu {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    min-width: 160px;
}

/* 用户区域 */
.nav-user {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
    flex-shrink: 0;
}

.btn-register {
    background: linear-gradient(to right, #4a6fcb, #6a11cb);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px;
    font-size: 0.9rem !important;
    transition: all 0.3s;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74,111,203,0.3);
}

.user-name-link {
    color: #4a6fcb !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-name-link i {
    font-size: 1rem;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ========== 容器 ========== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px 10px 10px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.container-wide {
    max-width: 1200px;
}

/* ========== 页头 ========== */
header {
    text-align: center;
    padding: 30px 0;
    color: #333;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #4a6fcb;
}

header p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* ========== 卡片 ========== */
.card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* ========== 表单 ========== */
.form-section {
    padding: 30px;
    background: #ffffff;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 8px;
}

.form-group {
    flex: 1;
    min-width: 180px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    border-color: #4a6fcb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 203, 0.1);
}

input.error-flash {
    animation: errorFlash 0.5s linear 3;
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

@keyframes errorFlash {
    0% { border-color: #e74c3c; }
    50% { border-color: #ff9488; }
    100% { border-color: #e74c3c; }
}

/* ========== 按钮 ========== */
.btn {
    background: linear-gradient(to right, #4a6fcb, #6a11cb);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}

.btn-success {
    background: linear-gradient(to right, #27ae60, #2ecc71);
}

.btn-danger {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.btn-warning {
    background: linear-gradient(to right, #f39c12, #e67e22);
}

.btn-copy {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    max-width: 200px;
    padding: 10px 20px;
    margin-top: 20px;
}

.btn-upload {
    background: linear-gradient(to right, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-add, .btn-remove {
    all: unset;
    color: #4a6fcb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.btn-add:hover, .btn-remove:hover {
    color: #3a5aa8;
}

.btn-add i, .btn-remove i {
    font-size: 1rem;
    margin-right: 5px;
}

/* ========== 上传区域 ========== */
.upload-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #4a6fcb;
    background: #f0f7ff;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-bottom: 15px;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-hint {
    color: #666;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-item .remove-img {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.upload-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.status-success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    display: block;
}

/* ========== 报价项目 ========== */
.calculation-items {
    margin-bottom: 30px;
}

.item-section {
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.item-section::before {
    content: "款式 " attr(data-index);
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0 10px;
    color: #4a6fcb;
    font-weight: 600;
}

.section-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 8px;
    align-items: center;
    width: 100%;
    padding: 0;
    transform: translateY(-2px);
}

.item-error-message {
    color: #e74c3c;
    background: #fdecea;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
    display: none;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.dimension-warning {
    font-size: 0.9rem;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    text-align: left;
    border-left: 3px solid #ffc107;
}

/* ========== 结果区域 ========== */
.result-section {
    display: none;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom right, #ffffff, #e9ecef);
    border-top: 1px solid #eee;
}

.result-section.show {
    display: flex;
}

.price-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: #4a6fcb;
    margin: 15px 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #f0f7ff;
    border-radius: 10px;
    border: 2px solid #cce0ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-display:hover {
    background: #e2edff;
}

.price-note {
    font-size: 0.95rem;
    color: #666;
    max-width: 90%;
    margin-top: 20px;
    padding: 12px;
    background: #eef5ff;
    border-radius: 8px;
    border-left: 3px solid #4a6fcb;
}

/* ========== 分类Tab切换 ========== */
.category-tabs {
    display: flex;
    background: #f0f2f5;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 24px;
    gap: 5px;
}
.category-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.category-tab:hover {
    color: #4a6fcb;
}
.category-tab.active {
    background: #ffffff;
    color: #4a6fcb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== 报价明细 ========== */
.detail-collapse {
    width: 100%;
    margin-top: 20px;
    border: 1px solid #dde2ec;
    border-radius: 10px;
    overflow: hidden;
}

.detail-header {
    background: #f0f7ff;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #4a6fcb;
}

.detail-header i {
    transition: transform 0.3s ease;
}

.detail-header.open i {
    transform: rotate(180deg);
}

.detail-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.detail-body.open {
    max-height: 2000px;
    padding: 20px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.detail-table th, .detail-table td {
    border: 1px solid #e6e9f0;
    padding: 10px 6px;
    text-align: center;
}

.detail-table th {
    background: #f8faff;
    color: #333;
}

.detail-table .total-row {
    background: #eef5ff;
    font-weight: bold;
}

/* ========== 错误/通知 ========== */
.error-message {
    color: #e74c3c;
    background: #fdecea;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    border-left: 3px solid #e74c3c;
}

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.show {
    transform: translateX(0);
}

/* ========== 页脚 ========== */
footer {
    text-align: center;
    padding: 25px 0;
    color: #666;
    font-size: 1rem;
    margin-top: auto;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: #4a6fcb;
}

/* ========== 登录/注册页面 ========== */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 0 20px;
}

.auth-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 40px 35px;
}

.auth-card h2 {
    text-align: center;
    color: #4a6fcb;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .btn {
    margin-top: 10px;
}

.auth-footer {
    text-align: right;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #4a6fcb;
    font-weight: 600;
}

.auth-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.auth-alert-error {
    background: #fdecea;
    color: #721c24;
    border-left: 3px solid #e74c3c;
}

.auth-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

/* ========== 会员中心 ========== */
.member-layout {
    display: flex;
    gap: 25px;
    min-height: calc(100vh - 120px);
}

.member-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.member-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.member-user-info {
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #4a6fcb, #6a11cb);
    color: #fff;
}

.member-user-info i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.member-user-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member-user-info p {
    font-size: 0.85rem;
    opacity: 0.85;
}

.member-menu {
    list-style: none;
    padding: 10px 0;
}

.member-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.member-menu li a:hover {
    background: #f0f7ff;
    color: #4a6fcb;
}

.member-menu li a.active {
    background: #f0f7ff;
    color: #4a6fcb;
    border-left-color: #4a6fcb;
    font-weight: 600;
}

.member-menu li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.member-content {
    flex: 1;
    min-width: 0;
}

.member-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    padding: 25px;
    margin-bottom: 20px;
}

.member-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-card h2 i {
    color: #4a6fcb;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    background: #f8faff;
    color: #444;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.data-table tr:hover td {
    background: #fafbff;
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.data-table .actions a, .data-table .actions button {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-edit {
    background: #e8f0fe;
    color: #4a6fcb;
}

.btn-edit:hover {
    background: #4a6fcb;
    color: #fff;
}

.btn-del {
    background: #fdecea;
    color: #e74c3c;
}

.btn-del:hover {
    background: #e74c3c;
    color: #fff;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #e2e3e5;
    color: #383d41;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* 优惠券 */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.coupon-card {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 2px dashed #ff6b6b;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.15);
}

.coupon-card.claimed {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4, #fff);
}

.coupon-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 5px;
}

.coupon-card.claimed .coupon-amount {
    color: #28a745;
}

.coupon-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.coupon-condition {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.coupon-claim-btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.coupon-claim-btn:hover {
    opacity: 0.9;
}

.coupon-claim-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state p {
    font-size: 1.1rem;
}

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal h3 {
    color: #4a6fcb;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-buttons .btn {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
}

/* 产品介绍页 */
.product-intro {
    padding: 30px;
}

.product-intro h2 {
    color: #4a6fcb;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.product-intro p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: #4a6fcb;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .member-layout {
        flex-direction: column;
    }
    .member-sidebar {
        width: 100%;
    }
    .member-sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .category-tab {
        font-size: 14px;
        padding: 12px 8px;
    }
    .category-tabs {
        flex-wrap: wrap;
    }
    .category-tabs .category-tab {
        flex: 1 1 auto;
        min-width: 80px;
    }
    .price-display {
        font-size: 2.8rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-item {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    .nav-link {
        justify-content: center;
        padding: 10px 20px;
    }
    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        display: none;
    }
    .nav-item:hover .submenu {
        display: block;
    }
    .section-controls {
        margin-top: 15px;
    }
    .upload-preview {
        max-height: 150px;
    }
    .btn-upload {
        width: 100%;
    }
    .detail-table th, .detail-table td {
        padding: 6px 3px;
        font-size: 0.8rem;
    }
    .data-table {
        font-size: 0.85rem;
    }
    .data-table th, .data-table td {
        padding: 8px 5px;
    }
    .coupon-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        height: 60px;
        padding: 0;
    }
    .logo {
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    body {
        padding-top: 70px;
    }
    .notification {
        top: 80px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }
    .form-section {
        padding: 20px 15px;
    }
    .member-card {
        padding: 18px 15px;
    }
}

/* ===== 底部下单栏 ===== */
.bottom-order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    padding: 12px 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.bottom-order-bar.show {
    transform: translateY(0);
}
.bottom-order-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottom-order-price {
    font-size: 1.1rem;
    color: #333;
}
.bottom-order-price strong {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-left: 5px;
}
.btn-order-bottom {
    background: linear-gradient(to right, #27ae60, #2ecc71) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}
.btn-order-bottom:hover {
    opacity: 0.9;
}

/* 隐藏页面内多余的立即下单按钮（保留底部统一栏） */
#orderBtn, .order-btn, .btn-order {
    display: none !important;
}

/* 模态框通用样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.show {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* ========== 网站公告横条（扁平化风格） ========== */
.site-notice {
    background: #db1882;
    border-bottom: 1px solid #b8126b;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}
.notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
.notice-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.notice-text {
    display: inline-block;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    padding-left: 100%;
    animation: noticeScroll 20s linear infinite;
}
.notice-text:hover {
    animation-play-state: paused;
}
@keyframes noticeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* 公告文字较短时不滚动 */
.notice-scroll.no-scroll .notice-text {
    padding-left: 0;
    animation: none;
}

/* 有公告时导航栏下移 */
.has-notice .navbar {
    top: 48px;
}
.has-notice {
    padding-top: 108px;
}

@media (max-width: 768px) {
    .notice-inner {
        padding: 0 15px;
    }
    .notice-text {
        font-size: 0.95rem;
        animation-duration: 15s;
    }
    .has-notice .navbar {
        top: 44px;
    }
    .has-notice {
        padding-top: 104px;
    }
}

