/* 全局样式 - 顺丰官网黑红配色 */
:root {
    --sf-red: #D50032;
    --sf-dark-red: #A50029;
    --sf-light-red: #FF4D6E;
    --sf-black: #000000;
    --sf-dark-black: #1A1A1A;
    --sf-gray: #F5F5F5;
    --sf-dark-gray: #333333;
    --sf-medium-gray: #666666;
    --sf-light-gray: #E0E0E0;
    --sf-white: #FFFFFF;
    --sf-green: #4CAF50;
    --sf-orange: #FF9800;
    --sf-blue: #2196F3;
    --sf-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sf-hover-shadow: 0 8px 25px rgba(213, 0, 50, 0.15);
    --sf-radius: 12px;
    --sf-transition: all 0.25s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.ico {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.ico-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body {
    background: #f5f5f5;
    color: var(--sf-dark-black);
    line-height: 1.5;
    padding-bottom: 80px;
    min-height: 100vh;
    font-size: 14px;
}

.page-content {
    margin-top: 16px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
}

/* 头部样式 - 顺丰黑红搭配 */
.header {
    background: var(--sf-black);
    color: #fff;
    padding: 12px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--sf-red);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sf-logo {
    font-size: 1.4rem;
    color: #fff;
}

.header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* 步骤进度条 - 简化 */
.step-progress-container {
    margin: 16px 0 20px;
    padding: 16px 12px;
    background: var(--sf-white);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
}

.step-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-progress:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: var(--sf-red);
    z-index: 2;
    transition: var(--sf-transition);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 25%;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--sf-black);
    color: var(--sf-medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: var(--sf-transition);
}

.step.active .step-icon {
    background: var(--sf-red);
    border-color: var(--sf-red);
    color: #fff;
    box-shadow: 0 4px 10px rgba(213, 0, 50, 0.3);
}

.step.completed .step-icon {
    background: var(--sf-red);
    border-color: var(--sf-red);
    color: #fff;
}

.step-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--sf-dark-gray);
    font-weight: 700;
}

.step.completed .step-label {
    color: var(--sf-dark-gray);
    font-weight: 600;
}

/* 表单区域 - 顺丰黑红风格 */
.form-section {
    background: var(--sf-white);
    border-radius: var(--sf-radius);
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--sf-transition);
    border: 1px solid #e0e0e0;
}

.form-section:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sf-black);
}

.section-title {
    display: flex;
    align-items: center;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: var(--sf-black);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-text h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sf-dark-gray);
    line-height: 1.2;
}

.section-text p {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

/* 表单控件 - 更紧凑 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--sf-dark-gray);
    font-size: 0.9rem;
}

.required:after {
    content: "*";
    color: var(--sf-red);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--sf-black);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--sf-transition);
    background: var(--sf-white);
    color: var(--sf-dark-black);
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--sf-red);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(213, 0, 50, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
}

/* 电话输入组合样式 */
.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.area-code-container {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.area-code-select {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: 0.9rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 针对苹果浏览器的特殊样式 */
@supports (-webkit-appearance: none) {
    .area-code-select {
        -webkit-appearance: none;
        border-radius: 0;
        background: transparent;
    }
}

.area-code-select option {
    text-align: center;
    -webkit-appearance: none;
}

.phone-number-container {
    flex: 1;
}

.phone-number-input {
    padding-left: 40px;
    text-align: center;
}

/* 调整区号选择器的图标位置 */
.area-code-container i {
    left: 12px;
    font-size: 0.9rem;
}

/* 商品信息提示样式 */
.product-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    background: linear-gradient(135deg, #D50032, #A50029);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(213, 0, 50, 0.3);
    max-width: 300px;
    font-size: 0.9rem;
}

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    line-height: 1.4;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 商品类型禁用状态样式 */
.item-type-option.disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.item-type-option.locked {
    pointer-events: none !important;
    opacity: 0.5 !important;
    position: relative;
}

/* 锁定且激活的商品类型选项 - 最高优先级 */
.item-type-option.locked.active,
.item-type-option.active.locked.selected {
    opacity: 1 !important;
    background: #D50032 !important;
    color: white !important;
    border-color: #D50032 !important;
}

/* 锁定激活状态下的图标和文字样式 */
.item-type-option.locked.active .item-type-icon,
.item-type-option.active.locked.selected .item-type-icon {
    color: white !important;
    transform: scale(1.1);
}

.item-type-option.locked.active .item-type-name,
.item-type-option.active.locked.selected .item-type-name {
    color: white !important;
}

/* 只读输入框样式 */
input[readonly].form-control {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
    cursor: not-allowed !important;
}

input[readonly].form-control:focus {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

.input-with-icon .form-control {
    padding-left: 40px;
}

/* Grid Layouts - 更紧凑 */
.item-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 一行3个 */
    gap: 10px;
}

.item-type-option {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--sf-transition);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.item-type-option:hover {
    border-color: var(--sf-red);
    transform: translateY(-2px);
    box-shadow: var(--sf-hover-shadow);
}

.item-type-option.selected {
    border-color: var(--sf-red);
    background: rgba(213, 0, 50, 0.04);
    color: var(--sf-red);
}

.item-type-icon {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 6px;
    transition: var(--sf-transition);
}

.item-type-option.selected .item-type-icon {
    color: var(--sf-red);
    transform: scale(1.1);
}

.item-type-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Delivery Time & Shipping Options - More dense */
.delivery-time-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 一行2个 */
    gap: 10px;
}

.delivery-time-option {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--sf-transition);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
}

.delivery-time-option:hover {
    border-color: var(--sf-red);
    transform: translateY(-2px);
    box-shadow: var(--sf-hover-shadow);
}

.delivery-time-option.selected {
    border-color: var(--sf-red);
    background: rgba(213, 0, 50, 0.04);
}

.delivery-time-text {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.delivery-time-desc {
    font-size: 0.75rem;
    color: #999;
}

/* Payment Options - Enhanced Design */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.payment-option {
    border: 2px solid var(--sf-black);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sf-black);
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--sf-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.payment-option:hover::before {
    background: var(--sf-red);
    height: 4px;
}

.payment-option.selected {
    border-color: var(--sf-red);
    background: #fff;
    box-shadow: 0 6px 20px rgba(213, 0, 50, 0.25);
    transform: translateY(-1px);
}

.payment-option.selected::before {
    background: var(--sf-red);
    height: 4px;
}

.payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sf-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid var(--sf-black);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.payment-option:hover .payment-icon {
    background: var(--sf-red);
    color: #fff;
    border-color: var(--sf-red);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(213, 0, 50, 0.3);
}

.payment-option.selected .payment-icon {
    background: var(--sf-red);
    color: #fff;
    border-color: var(--sf-dark-red);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(213, 0, 50, 0.4);
}

.payment-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--sf-dark-gray);
    transition: color 0.3s ease;
}

.payment-option:hover .payment-info h4,
.payment-option.selected .payment-info h4 {
    color: var(--sf-red);
}

.payment-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.payment-option:hover .payment-info p,
.payment-option.selected .payment-info p {
    color: #555;
}

/* Payment Details - Conditional Display */
.payment-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.payment-details.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.payment-details h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sf-dark-gray);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.payment-details h4 i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.summary h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sf-dark-gray);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary h4 i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Upload Area - Cleaner */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    transition: var(--sf-transition);
}

.upload-area:hover {
    border-color: var(--sf-red);
    background: rgba(213, 0, 50, 0.02);
}

.upload-icon {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 8px;
}

.upload-area:hover .upload-icon {
    color: var(--sf-red);
}

.upload-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

/* Product Image Display */
.product-image-container {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.product-image {
    max-width: 100%;
    /* width: 400px; */
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: var(--sf-transition);
    margin: 0 auto;
}

.product-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Product Preview */
.product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.product-preview-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(213, 0, 50, 0.10) 0%, rgba(255, 77, 110, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-red);
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.product-preview-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sf-dark-gray);
    line-height: 1.25;
}

.product-preview:hover {
    border-color: rgba(213, 0, 50, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(213, 0, 50, 0.08);
}

/* Buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--sf-transition);
}

.btn-primary {
    background: var(--sf-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(213, 0, 50, 0.3);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 0, 50, 0.4);
    background: var(--sf-dark-red);
}

.btn-secondary {
    background: #fff;
    color: var(--sf-black);
    border: 2px solid var(--sf-black);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--sf-black);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Summary Box */
.summary {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.summary h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--sf-dark-gray);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.summary-total {
    border-top: 1px dashed #ddd;
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 700;
    color: var(--sf-red);
    font-size: 1.2rem;
}

/* Rate Table - Compact */
.shipping-rate-table {
    margin-top: 8px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
}

.rate-table-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.rate-table-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sf-dark-gray);
}

.rate-note {
    font-size: 0.8rem;
    color: #666;
}

.rate-category {
    margin-bottom: 20px;
}

.rate-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-weight: 700;
    color: var(--sf-dark-gray);
    margin-bottom: 12px;
    font-size: 0.9rem;
    border-left: none;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}

.rate-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.rate-item {
    padding: 14px 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: var(--sf-transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.rate-item:hover {
    border-color: rgba(213, 0, 50, 0.35);
    box-shadow: var(--sf-hover-shadow);
    transform: translateY(-2px);
}

.rate-item.selected {
    border-color: var(--sf-red);
    background: rgba(213, 0, 50, 0.04);
    box-shadow: 0 4px 12px rgba(213, 0, 50, 0.15);
}

.rate-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sf-dark-gray);
    margin-bottom: 4px;
}

.rate-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sf-red);
    margin-bottom: 4px;
}

.rate-desc {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.3;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.2);
    padding: 16px;
    margin: 20px 0;
    text-align: left;
    border-radius: 8px;
    border-left: none; /* Re-add warning-box styling without left border */
}

/* Modal Mask + Dialog */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.55);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 999;
}

.modal-mask.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f1f1;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sf-dark-gray);
}

.modal-body {
    padding: 14px 16px 16px;
}

.modal-body p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.modal-actions .btn {
    padding: 12px;
    border-radius: 12px;
}

/* 关闭按钮样式 */
.btn-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: #f5f5f5;
    color: #666;
}

.btn-close .ico {
    width: 18px;
    height: 18px;
}

/* Footer - 顺丰黑红风格 */
.footer {
    background: var(--sf-black);
    color: #fff;
    padding: 12px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.75rem;
    border-top: 2px solid var(--sf-red);
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Error Message */
.error-message {
    color: var(--sf-red);
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Shipping Payment Options - Compact */
.shipping-payment-options {
    display: flex;
    gap: 10px;
}

.shipping-payment-option {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--sf-transition);
    background: #fff;
}

.shipping-payment-option:hover {
    border-color: var(--sf-red);
    background: rgba(213, 0, 50, 0.04);
}

.shipping-payment-option.selected {
    border-color: var(--sf-red);
    background: rgba(213, 0, 50, 0.08);
    color: var(--sf-red);
    font-weight: 600;
}

.copy-btn {
    border: 1px solid var(--sf-red);
    color: var(--sf-red);
    background: #fff;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Mobile Responsive - Button Size Optimization */
@media (max-width: 768px) {
    /* Navigation Buttons - Smaller on mobile */
    .nav-buttons {
        gap: 8px;
        margin-top: 16px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    /* Shipping Rate Table - Mobile Layout */
    .rate-items {
        grid-template-columns: repeat(3, 1fr); /* 手机端一行3个 */
        gap: 8px;
    }
    
    .rate-item {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .rate-item .rate-name {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .rate-item .rate-price {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 4px;
    }
    
    .rate-item .rate-desc {
        font-size: 0.7rem;
        color: #666;
    }

    /* Payment Options - Smaller on mobile */
    .payment-options {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .payment-option {
        padding: 12px 8px;
        border-radius: 8px;
    }
    
    .payment-option::before {
        height: 2px;
    }
    
    .payment-option.selected::before {
        height: 3px;
    }
    
    .payment-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    .payment-info h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .payment-info p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .payment-option:hover {
        transform: translateY(-1px);
    }
    
    .payment-option.selected {
        transform: translateY(0px);
    }
    
    .payment-option:hover .payment-icon {
        transform: scale(1.02);
    }
    
    .payment-option.selected .payment-icon {
        transform: scale(1);
    }
}

/* Small Mobile - Even Smaller */
@media (max-width: 480px) {
    /* Shipping Rate Table - Small Mobile Layout */
    .rate-items {
        grid-template-columns: repeat(3, 1fr); /* 小屏幕一行3个 */
        gap: 4px;
    }
    
    .rate-item {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .rate-item .rate-name {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .rate-item .rate-price {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .rate-item .rate-desc {
        font-size: 0.65rem;
    }
    .btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 18px;
    }
    
    .payment-option {
        padding: 10px 6px;
    }
    
    .payment-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .payment-info h4 {
        font-size: 0.85rem;
    }
    
    .payment-info p {
        font-size: 0.7rem;
    }
}
