/* ====================================
   Penshurst洗鞋服务 - 现代化响应式CSS
   ==================================== */

/* CSS变量定义 */
:root {
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ====================================
   Hero Header
   ==================================== */
.hero-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.hero-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.header-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ====================================
   订单追踪区
   ==================================== */
.order-tracker {
    margin-bottom: 30px;
}

.tracker-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.tracker-box h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.tracker-input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.tracker-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s;
}

.tracker-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-track {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-track:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tracker-hint {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.track-results {
    margin-top: 30px;
    text-align: left;
}

.track-order-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.track-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.track-order-id {
    font-weight: 600;
    color: var(--primary-color);
}

.track-status {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-en_route,
.status-delivering {
    background: #ffedd5;
    color: #9a3412;
}

.status-picked {
    background: #dbeafe;
    color: #1e40af;
}

.status-washing,
.status-drying {
    background: #e0e7ff;
    color: #3730a3;
}

.status-done {
    background: #c7d2fe;
    color: #312e81;
}

.status-returned {
    background: #f3f4f6;
    color: #374151;
}

.track-headline {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.track-pay {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6efe6;
    color: #3d2a1c;
}
.track-pay p {
    margin: 0 0 6px;
}
.track-pay p:last-child {
    margin-bottom: 0;
}

.order-timeline {
    list-style: none;
    margin: 18px 0 0;
    padding: 0 0 0 8px;
}

.order-step {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    padding: 0 0 18px 4px;
}

.order-step:last-child {
    padding-bottom: 0;
}

.order-step::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: #e4d6c8;
}

.order-step:last-child::before {
    display: none;
}

.order-step-dot {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    border-radius: 50%;
    border: 2px solid #c9a078;
    background: #fff8ef;
    z-index: 1;
}

.order-step.done .order-step-dot {
    background: #8a4b2a;
    border-color: #8a4b2a;
}

.order-step.current .order-step-dot {
    background: #c9a078;
    border-color: #8a4b2a;
    box-shadow: 0 0 0 4px rgba(138, 75, 42, 0.12);
}

.order-step.upcoming {
    opacity: 0.48;
}

.order-step-body strong {
    display: block;
    font-size: 0.95rem;
}

.order-step.current .order-step-body strong {
    color: #8a4b2a;
}

.order-step-body p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.order-step-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.order-step-photos img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eadfd4;
}

.step-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.step-upload input[type="file"] {
    max-width: 220px;
    font-size: 0.82rem;
}

.track-order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ====================================
   服务选择卡片
   ==================================== */
.service-selection {
    margin-bottom: 30px;
}

.service-selection h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 35px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, #eef2ff 0%, white 100%);
}

.service-card.selected::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 15px 0;
}

.price-unit {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.popular-tag {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.price-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 28px auto 0;
}

.guide-col {
    background: white;
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    border: 1px solid var(--border-color);
}

.guide-col h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.guide-col p {
    color: var(--text-secondary);
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.guide-col ul {
    margin: 0;
    padding-left: 1.1em;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guide-col li {
    margin: 0 0 8px;
}

.guide-ok {
    border-color: #c9d4c4;
}

.guide-no {
    border-color: #e4cfc3;
    background: #fbf6f2;
}

.check-three {
    max-width: 900px;
    margin: 20px auto 0;
    background: #fff8ef;
    border: 1px solid #e4cfc3;
    border-radius: var(--radius-xl);
    padding: 22px 24px;
}

.check-three h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.check-three p,
.check-three li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.check-three ol {
    margin: 0 0 12px;
    padding-left: 1.3em;
}

.check-three li {
    margin: 0 0 8px;
}

.check-three-note {
    margin: 0;
}

.risk-hint {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.risk-hint.risk-refuse {
    background: #f8e8e4;
    color: #7a2e22;
}

.risk-hint.risk-warn {
    background: #f7efd8;
    color: #6a4b12;
}

/* ====================================
   订单表单
   ==================================== */
.order-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.order-form h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.label-icon {
    font-size: 1.2rem;
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.radio-option:hover {
    border-color: var(--primary-light);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #eef2ff;
}

.radio-label {
    font-weight: 400 !important;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.upload-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

.image-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-preview img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ====================================
   PayID 支付区域
   ==================================== */
.payid-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.payid-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.payid-info {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.payid-info p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.payid-info strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ====================================
   复选框组
   ==================================== */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.checkbox-label strong {
    color: var(--danger-color);
}

/* ====================================
   管理后台 - 照片上传区域
   ==================================== */
.photo-upload-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.photo-display {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.photo-item {
    flex: 1;
    text-align: center;
}

.photo-upload-controls {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.upload-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-group label {
    font-weight: 600;
    color: var(--text-secondary);
}

.upload-group input[type="file"] {
    font-size: 0.9rem;
}

.btn-upload {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-upload:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ====================================
   订单追踪 - 照片显示
   ==================================== */
.track-photos {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.photo-thumb {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-thumb:hover {
    transform: scale(1.05);
}

.form-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.summary-item span:first-child {
    color: var(--text-secondary);
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* ====================================
   FAQ 区域
   ==================================== */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.faq-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================================
   页脚
   ==================================== */
.site-footer {
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-xl);
    padding: 50px 40px 30px;
    margin-bottom: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ====================================
   AI客服聊天窗口
   ==================================== */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.chat-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.chat-icon {
    font-size: 1.3rem;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.message.ai {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.message.human {
    background: #f3e8d8;
    color: var(--text-primary);
    border-left: 3px solid #8a6a3d;
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#chatPhone {
    flex: 1 1 100%;
}

#chatPhone.need-phone {
    border-color: #c45c4a;
    background: #fff6f4;
    box-shadow: 0 0 0 3px rgba(196, 92, 74, 0.18);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input-area button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    background: var(--primary-dark);
}

/* ====================================
   管理后台样式
   ==================================== */
.admin-container {
    max-width: 1400px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px 30px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.admin-header h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
}

.admin-risk-guide {
    background: #fff8ef;
    border: 1px solid #e4cfc3;
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.admin-risk-guide h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.admin-risk-guide p,
.admin-risk-guide li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.admin-risk-guide p {
    margin: 0 0 10px;
}

.admin-risk-flags,
.admin-risk-questions {
    margin: 0;
    padding-left: 1.3em;
}

.admin-risk-flags {
    margin-bottom: 10px;
}

.admin-risk-flags li,
.admin-risk-questions li {
    margin: 0 0 6px;
}

.admin-risk-questions {
    background: white;
    border-radius: 10px;
    padding: 10px 12px 10px 2em;
}

/* 统计卡片区域 */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 今日取鞋清单区域 */
.pickup-today-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.pickup-today-section h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.tonight-sub {
    margin: 18px 0 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tonight-hint {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.run-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.run-head h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #1a73e8;
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-maps:hover {
    background: #1557b0;
}

.btn-maps-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.run-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.run-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.run-group-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.run-group-head p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.run-stop {
    align-items: flex-start;
    background: #fff;
    border-left-color: #2563eb;
}

.run-stop-body {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.run-stop-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.run-seq {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.run-kind {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.run-kind.is-pick {
    background: #dbeafe;
    color: #1d4ed8;
}

.run-kind.is-drop {
    background: #dcfce7;
    color: #15803d;
}

.run-stop-meta,
.run-stop-addr,
.run-stop-note {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.run-stop-addr {
    color: var(--text-primary);
}

.run-stop-warn {
    color: #7a2e22;
    font-size: 0.85rem;
}

.order-suburb {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.pickup-list {
    display: grid;
    gap: 12px;
}

.pickup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.pickup-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pickup-name {
    font-weight: 600;
    color: var(--text-primary);
}

.pickup-phone {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pickup-service {
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.pickup-actions {
    display: flex;
    gap: 8px;
}

.btn-status-update {
    padding: 8px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-status-update:hover {
    background: #059669;
}

.pickup-loading,
.pickup-empty,
.pickup-error {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.pickup-error {
    color: var(--danger-color);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: #eef2ff;
}

.btn-danger {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
}

.filter-bar {
    background: white;
    padding: 24px;
    margin-bottom: 25px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.filter-bar h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-controls input,
.filter-controls select {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-controls input:focus,
.filter-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-controls input {
    flex: 1;
    min-width: 200px;
}

.btn-filter {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-filter:hover {
    background: var(--primary-dark);
}

.orders-table-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: var(--bg-secondary);
}

.orders-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.orders-table tbody tr:hover {
    background: var(--bg-secondary);
}

.status-badge {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.action-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 5px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--primary-dark);
}

.action-btn.delete {
    background: var(--danger-color);
}

.action-btn.delete:hover {
    background: #dc2626;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-view {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-dark);
}

.btn-delete {
    padding: 6px 12px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-logout {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #dc2626;
}

.admin-user {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 状态样式 */
.status-awaiting_confirm { color: #9a3412; font-weight: 600; }
.status-refused { color: #7a2e22; font-weight: 600; }
.status-pending { color: var(--warning-color); font-weight: 600; }
.status-en_route { color: #9a3412; font-weight: 600; }
.status-picked { color: var(--secondary-color); font-weight: 600; }
.status-washing { color: var(--primary-color); font-weight: 600; }
.status-drying { color: #8b5cf6; font-weight: 600; }
.status-done { color: var(--success-color); font-weight: 600; }
.status-delivering { color: #9a3412; font-weight: 600; }
.status-returned { color: var(--text-light); font-weight: 600; }

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 8px;
}

.pagination button {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-primary);
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.message {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 0.95rem;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 25px;
}

.pagination button {
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination button:hover {
    border-color: var(--primary-light);
    background: #eef2ff;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ====================================
   代售管理后台样式
   ==================================== */

/* 导航标签栏 */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #eef2ff;
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 管理面板显示/隐藏 */
.admin-panel {
    display: block;
}

/* 查看市场按钮 */
.btn-market {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-market:hover {
    opacity: 0.92;
}

.shop-apk-card {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.shop-apk-card .btn-primary {
    display: inline-block;
    text-decoration: none;
}
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 表单操作按钮组 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
}

/* 代售详情 */
.consignment-detail {
    padding: 20px 0;
}

.consignment-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.consignment-detail-info {
    margin-bottom: 20px;
}

.consignment-detail-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.consignment-detail-info p {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.consignment-detail-info .price-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--radius-lg);
    margin: 15px 0;
}

.consignment-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-withdraw {
    padding: 10px 20px;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-withdraw:hover {
    background: #d97706;
}

.btn-confirm {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-confirm:hover {
    background: #059669;
}

/* 买家信息 */
.buyer-info {
    background: #eef2ff;
    padding: 15px;
    border-radius: var(--radius-lg);
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.buyer-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.buyer-info p {
    margin: 5px 0;
    color: var(--text-primary);
}

/* 付款截图 */
.receipt-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-lg);
    margin: 15px 0;
    border: 2px solid var(--border-color);
}

/* ====================================
   响应式设计
   ==================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-header {
        padding: 40px 25px;
    }

    .hero-header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tracker-input-group {
        flex-direction: column;
    }

    .btn-track {
        width: 100%;
    }

    .service-cards,
    .price-guide {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .order-form {
        padding: 25px;
    }

    .chat-window {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 90px;
    }

    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .orders-table {
        font-size: 0.85rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-header h1 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 25px;
    }

    .price {
        font-size: 2rem;
    }

    .login-box {
        padding: 30px;
    }
}

/* ====================================
   动画
   ==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.order-form,
.faq-section,
.tracker-box {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* ====================================
   代售模块样式
   ==================================== */

/* 市场信息区域 */
.market-info {
    margin: 30px 0;
}

.market-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.market-info-box h2 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rules-list li:last-child {
    border-bottom: none;
}

/* 市场过滤器 */
.market-filters {
    margin: 20px 0;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls select,
.filter-controls input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-controls select:focus,
.filter-controls input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-controls input {
    flex: 1;
    min-width: 200px;
}

/* 代售商品网格 */
.consignment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* 代售商品卡片 */
.consignment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.consignment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
}

.card-image .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.badge-available {
    background: #4caf50;
    color: white;
}

.badge-sold {
    background: #f44336;
    color: white;
}

.badge-pending {
    background: #ff9800;
    color: white;
}

.badge-withdrawn {
    background: #9e9e9e;
    color: white;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #333;
}

.card-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex: 1;
}

.price-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.card-pricing {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.price-current,
.price-original,
.price-floor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.price-label {
    color: #666;
    font-size: 0.9rem;
}

.price-value {
    font-weight: 600;
    color: #333;
}

.price-current .price-value {
    font-size: 1.3rem;
    color: #667eea;
}

.price-original .price-value {
    text-decoration: line-through;
    color: #999;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.btn-purchase {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-disabled {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: #e0e0e0;
    color: #999;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    font-weight: 600;
}

/* 购买弹窗 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.purchase-item-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.purchase-item-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.purchase-item-info p {
    margin: 5px 0;
    color: #666;
}

.payid-section {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.payid-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.payid-info p {
    margin: 8px 0;
    color: #856404;
}

.payid-warning {
    font-weight: 600;
    margin-top: 10px !important;
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: #667eea;
}

.file-upload-hint {
    color: #999;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    font-size: 1.2rem;
    margin: 0;
}

/* Toast 通知 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background: #4caf50;
}

.toast-error {
    background: #f44336;
}

.toast-info {
    background: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .consignment-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls input {
        width: 100%;
    }

    .market-info-box {
        padding: 20px;
    }

    .card-image {
        height: 200px;
    }
}

/* ====================================
   Atelier visual system (overrides)
   ==================================== */
:root {
    --ink: #171410;
    --ink-soft: #2a241c;
    --paper: #f4efe6;
    --paper-2: #ebe3d4;
    --cream: #faf6ef;
    --leather: #8a4b2a;
    --leather-dark: #6c3a20;
    --copper: #b4532a;
    --line: #d4c8b4;
    --primary-color: #8a4b2a;
    --primary-light: #a35c36;
    --primary-dark: #6c3a20;
    --secondary-color: #2a241c;
    --accent-color: #b4532a;
    --success-color: #3f6b4a;
    --danger-color: #9b3a2f;
    --warning-color: #b4532a;
    --text-primary: #1f1a14;
    --text-secondary: #6b6256;
    --text-light: #8a8174;
    --bg-primary: #faf6ef;
    --bg-secondary: #f4efe6;
    --bg-tertiary: #ebe3d4;
    --border-color: #d4c8b4;
    --shadow-sm: 0 1px 2px rgba(23, 20, 16, 0.05);
    --shadow-md: 0 10px 28px rgba(23, 20, 16, 0.07);
    --shadow-lg: 0 22px 48px rgba(23, 20, 16, 0.12);
    --shadow-xl: 0 28px 60px rgba(138, 75, 42, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(1100px 520px at 92% -8%, #ead9c2 0%, transparent 58%),
        radial-gradient(780px 420px at -12% 28%, #e6d8c4 0%, transparent 52%),
        var(--paper);
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.container {
    max-width: 1080px;
    padding: 0 24px 48px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    background: rgba(244, 239, 230, 0.86);
    border-bottom: 1px solid rgba(212, 200, 180, 0.7);
    backdrop-filter: blur(14px);
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.wordmark-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--leather);
    border-radius: 50% 50% 40% 40%;
    position: relative;
}

.wordmark-mark::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 2px;
    background: var(--leather);
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--ink);
}

.hero-header,
.hero-header::before {
    background: var(--ink);
    overflow: visible;
}

.hero-header::before {
    display: none;
}

.hero-header {
    margin: 28px 0 52px;
    padding: 40px 40px 0;
    color: var(--cream);
    text-align: left;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #2a241c;
    position: relative;
}

.hero-header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(420px 220px at 88% 18%, rgba(180, 83, 42, 0.28), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 220px;
}

.hero-shoe {
    width: min(100%, 320px);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,0.35));
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 22px;
    background: var(--cream) !important;
    color: var(--ink) !important;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.hero-cta:hover {
    background: #fff8ef !important;
}

.hero-secondary {
    color: #f0d9c4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(240, 217, 196, 0.4);
    padding-bottom: 2px;
}

.hero-secondary:hover {
    color: #fff;
}

.hero-kicker,
.section-kicker,
.card-kind,
.login-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 12px;
}

.hero-header h1,
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 500;
    line-height: 1.18;
    margin-bottom: 16px;
    text-shadow: none;
    max-width: 16ch;
    color: var(--cream);
}

.hero-header h1 em {
    font-style: italic;
    color: #f0d9c4;
}

.subtitle,
.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 42ch;
    opacity: 1;
    color: #d8cfc2;
    margin-bottom: 24px;
}

.header-badges {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 36px;
}

.badge {
    background: transparent;
    border: 1px solid rgba(240, 217, 196, 0.35);
    color: #f0d9c4;
    backdrop-filter: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

.process-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    margin: 8px 0 -28px;
    position: relative;
    z-index: 2;
    padding: 0 0 8px;
}

.process-strip li {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.process-strip li:last-child {
    border-right: none;
}

.process-strip span {
    display: block;
    font-family: var(--font-serif);
    color: var(--leather);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.section-kicker {
    text-align: left;
}

.section-lead {
    color: var(--text-secondary);
    margin: -8px 0 24px;
    max-width: 46ch;
}

.service-selection h2,
.order-form h2,
.faq-section h2,
.tracker-box h2,
.settings-header h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    text-align: left;
    font-size: 2rem;
    color: var(--ink);
}

.tracker-box,
.order-form,
.faq-section,
.stat-card,
.admin-header,
.filter-bar,
.pickup-today-section,
.login-box,
.success-box,
.settings-form,
.market-info-box {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    animation: none;
}

.tracker-box {
    padding: 32px;
    text-align: left;
}

.tracker-input-group {
    max-width: none;
    margin: 0;
}

.tracker-input-group input,
.form-group input,
.form-group textarea,
.chat-input-area input,
.filter-controls select,
.filter-controls input,
.login-box input {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(23, 20, 16, 0.03);
}

.tracker-input-group input:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--leather);
    box-shadow: 0 0 0 3px rgba(138, 75, 42, 0.12);
    background: #fff;
}

.btn-track,
.btn-primary,
.btn-upload,
.chat-input-area button,
.btn-logout,
.btn-filter,
.tab-btn.active {
    background: var(--ink);
    color: var(--cream);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(23, 20, 16, 0.16);
    transform: none;
}

.btn-primary::before {
    display: none;
}

.btn-track:hover,
.btn-primary:hover,
.btn-upload:hover,
.chat-toggle-btn:hover {
    background: var(--leather);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(138, 75, 42, 0.22);
}

.service-cards {
    max-width: none;
    gap: 16px;
}

.service-card,
.service-card::before {
    background: var(--cream);
    border-radius: var(--radius-xl);
    animation: none;
}

.service-card {
    padding: 0 28px 24px;
    text-align: left;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.service-card::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    height: auto;
    background: var(--leather);
    transform: none;
    transition: width 0.2s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #c4b49a;
    box-shadow: var(--shadow-lg);
}

.service-card.selected {
    background: #fffdf8;
    border-color: var(--leather);
    border-width: 2px;
    outline: none;
    box-shadow: var(--shadow-xl);
    padding-bottom: 44px;
}

.service-card.selected::before {
    width: 5px;
}

.service-card.selected::after {
    content: "已选择";
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--leather);
    font-weight: 700;
}

.card-visual {
    margin: 0 -28px 18px;
    padding: 22px 20px 8px;
    background:
        linear-gradient(180deg, #f7efe4 0%, #efe4d3 100%);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: center;
}

.card-visual svg {
    width: 150px;
    height: 84px;
}

.card-icon {
    display: none;
}

.service-card h3 {
    font-family: var(--font-serif);
    color: var(--ink);
    font-weight: 500;
    font-size: 1.6rem;
}

.price {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 2.4rem;
}

.feature-list li {
    border-top: none;
    padding: 7px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--copper);
    margin-top: 8px;
    flex-shrink: 0;
}

.popular-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    transform: none;
    background: var(--ink);
    color: var(--cream);
    padding: 5px 11px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    z-index: 1;
}

.order-form {
    padding: 36px;
}

.radio-option,
.radio-option:has(input:checked),
.checkbox-option {
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.radio-option:has(input:checked) {
    border-color: var(--leather);
    background: #f7efe6;
}

.payid-section {
    background: #f7efe6;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.payid-title {
    text-align: left;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.25rem;
}

.payid-info {
    background: transparent;
    text-align: left;
    padding: 0;
}

.payid-info strong {
    color: var(--ink);
}

.form-summary {
    background: var(--ink);
    color: var(--cream);
    border-radius: 16px;
}

.form-summary .summary-item span:first-child,
.form-summary .summary-item span:last-child {
    color: var(--cream);
}

.faq-section {
    padding: 36px;
}

.faq-item {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.faq-item h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
}

.site-footer {
    background: var(--ink);
    border-radius: 24px;
    padding: 48px 28px 24px;
    box-shadow: var(--shadow-lg);
}

.chat-toggle-btn,
.chat-header {
    background: var(--ink);
    box-shadow: var(--shadow-lg);
    border-radius: 999px;
}

.chat-toggle-btn {
    padding: 14px 20px;
}

.chat-window {
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chat-header {
    border-radius: 0;
}

.message.user {
    background: var(--ink);
}

.admin-container {
    padding: 24px;
}

.admin-header h1,
.settings-header h1,
.login-box h2,
.success-box h2 {
    font-family: var(--font-serif);
    font-weight: 500;
}

.stat-icon {
    background: var(--paper-2);
    color: var(--leather);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.tab-btn {
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line);
}

.market-info-box {
    background: var(--ink);
    color: var(--cream);
}

.market-info-box h2 {
    font-family: var(--font-serif);
    font-weight: 500;
}

.rules-list li {
    border-bottom-color: rgba(240, 217, 196, 0.2);
}

.consignment-card,
.modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.login-container,
.success-container {
    background:
        radial-gradient(900px 420px at 80% 0%, #ead9c2 0%, transparent 55%),
        var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-wordmark {
    margin-bottom: 22px;
}

.login-box {
    width: min(100%, 420px);
    padding: 36px 32px;
}

.login-box h2 {
    text-align: left;
    margin-bottom: 24px;
}

.file-upload-area {
    border-radius: 14px;
    border-color: var(--line);
    background: #fff;
}

.file-upload-area:hover {
    border-color: var(--leather);
}

.success-icon {
    display: none;
}

.terms-box {
    margin-bottom: 28px;
}

.terms-list {
    list-style: decimal;
    padding-left: 1.25em;
}

.terms-box .terms-list li {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.delivery-fields {
    margin-bottom: 16px;
}

.delivery-fields[hidden] {
    display: none !important;
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.filter-controls {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.header-nav .nav-link {
    color: #f0d9c4;
}

@media (max-width: 768px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .hero-header {
        padding: 28px 20px 0;
        border-radius: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 0;
        order: -1;
    }

    .hero-shoe {
        width: 220px;
    }

    .process-strip {
        grid-template-columns: 1fr;
        margin: 4px 0 -16px;
    }

    .process-strip li {
        border-right: none;
        border-bottom: none;
    }

    .service-selection h2,
    .order-form h2,
    .faq-section h2,
    .tracker-box h2 {
        font-size: 1.6rem;
    }
}

.inbox-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.inbox-thread-wrap {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 12px;
}
.inbox-thread {
    min-height: 240px;
    max-height: 420px;
    overflow: auto;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}
.inbox-thread .message {
    margin-bottom: 10px;
}
.conversation-row.is-active td {
    background: #eef2ff;
}
.inbox-compose {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.inbox-compose-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inbox-compose-actions {
    display: flex;
    gap: 8px;
}
.inbox-compose textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font: inherit;
}
.bag-slip {
    text-align: left;
    margin: 20px 0;
    padding: 18px;
    border: 2px dashed #8a6a3d;
    border-radius: 12px;
    background: #fbf6ee;
}
.bag-slip-kicker {
    margin: 0 0 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #8a6a3d;
}
.bag-slip h3 {
    margin: 0 0 12px;
}
.bag-slip dl {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}
.bag-slip dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eadfce;
    padding-bottom: 6px;
}
.bag-slip dt {
    color: var(--text-secondary);
}
.bag-slip dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}
.bag-slip-hint {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

