/**
 * 自定义优化样式 - 跨境商城
 * 用于优化网站页面显示效果
 */

/* ===== 全局优化 ===== */
:root {
    --primary-color: #ffda00;
    --primary-hover: #e0c000;
    --danger-color: #f30240;
    --success-color: #4cb64c;
    --text-color: #333;
    --text-muted: #777;
    --border-color: #e5e5e5;
    --bg-light: #f8f9fa;
}

/* 优化按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(255, 218, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 218, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, var(--danger-color) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(243, 2, 64, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 2, 64, 0.4);
}

/* ===== 产品卡片优化 ===== */
.product-thumb {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.product-thumb:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-thumb .image img {
    transition: transform 0.5s ease;
}

.product-thumb:hover .image img {
    transform: scale(1.05);
}

.product-thumb .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

.product-thumb .price-old {
    font-size: 14px;
    color: #999;
}

/* 加入购物车按钮动画 */
.product-thumb .cart-wrapper .btn {
    position: relative;
    overflow: hidden;
}

.product-thumb .cart-wrapper .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-thumb .cart-wrapper .btn:active::after {
    width: 200px;
    height: 200px;
}

/* ===== 结账页面优化 ===== */
.quick-checkout-wrapper .checkout-section {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.quick-checkout-wrapper .checkout-section:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.quick-checkout-wrapper .checkout-section h2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px 10px 0 0;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 20px;
    margin: -8px -8px 15px -8px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

.quick-checkout-wrapper .form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 10px 15px;
    height: auto;
}

.quick-checkout-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 218, 0, 0.15);
}

/* 订单提交按钮 */
#button-submit {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff4466 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 2, 64, 0.3);
    transition: all 0.3s ease;
}

#button-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 2, 64, 0.4);
}

#button-submit:active {
    transform: translateY(-1px);
}

/* ===== 支付方式选择优化 ===== */
#payment-method-section .radio {
    display: block;
    margin: 10px 0;
}

#payment-method-section .radio label {
    display: block;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

#payment-method-section .radio label:hover {
    border-color: var(--primary-color);
    background: #fffef5;
}

#payment-method-section .radio input:checked + label,
#payment-method-section .radio label.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fffef5 0%, #fff9d4 100%);
    box-shadow: 0 2px 10px rgba(255, 218, 0, 0.2);
}

/* ===== 购物车页面优化 ===== */
.cart-well {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.cart-well .table {
    margin-bottom: 0;
}

.cart-well .table thead th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding: 15px;
}

.cart-well .table tbody td {
    vertical-align: middle;
    padding: 20px 15px;
}

.cart-well .product-name a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.cart-well .product-name a:hover {
    color: var(--primary-color);
}

/* 数量选择器优化 */
.quantity-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-input-wrapper input {
    border: none !important;
    text-align: center;
    width: 60px;
    font-weight: 600;
}

.quantity-input-wrapper a {
    padding: 8px 12px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.quantity-input-wrapper a:hover {
    background: var(--primary-color);
    color: #000;
}

/* ===== 自定义支付方式页面 ===== */
.payment-method-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.payment-method-card .method-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.payment-method-card .method-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.payment-account-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.payment-account-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.payment-account-info .info-item:last-child {
    border-bottom: none;
}

.payment-account-info .info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.payment-account-info .info-value {
    font-weight: 600;
    color: var(--text-color);
}

.payment-qrcode {
    text-align: center;
    padding: 20px;
}

.payment-qrcode img {
    max-width: 200px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    background: var(--primary-color);
    border: none;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.copy-btn i {
    margin-right: 5px;
}

/* ===== 订单成功页面 ===== */
.order-success-wrapper {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    margin: 30px auto;
    max-width: 600px;
}

.order-success-wrapper .success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color) 0%, #5fcf5f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: successPulse 2s infinite;
}

.order-success-wrapper .success-icon i {
    font-size: 50px;
    color: #fff;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 182, 76, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(76, 182, 76, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 182, 76, 0);
    }
}

.order-success-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 15px;
}

.order-success-wrapper .order-number {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.order-success-wrapper .order-number span {
    font-weight: 700;
    color: var(--danger-color);
}

/* ===== 导航栏优化 ===== */
#menu .nav > li > a {
    position: relative;
    overflow: hidden;
}

#menu .nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#menu .nav > li:hover > a::before,
#menu .nav > li.active > a::before {
    width: 100%;
}

/* ===== 页脚优化 ===== */
footer {
    background: linear-gradient(180deg, #f1f2f4 0%, #e4e5e7 100%);
}

footer h5 {
    position: relative;
    padding-bottom: 15px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

footer ul.list-unstyled li a {
    transition: all 0.3s ease;
}

footer ul.list-unstyled li a:hover {
    color: var(--primary-color) !important;
    padding-left: 25px;
}

/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
    .quick-checkout-wrapper .checkout-section {
        margin-bottom: 15px;
    }
    
    .quick-checkout-wrapper .checkout-section h2 {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .payment-method-card {
        padding: 20px;
    }
    
    .payment-method-card .method-title {
        font-size: 16px;
    }
    
    .order-success-wrapper {
        padding: 40px 20px;
        margin: 15px;
    }
    
    .order-success-wrapper h2 {
        font-size: 22px;
    }
    
    #button-submit {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* ===== 加载动画 ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 提示框优化 ===== */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* ===== 表单输入框聚焦效果 ===== */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 218, 0, 0.15);
}

/* ===== 面包屑优化 ===== */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb > li + li:before {
    content: "\f105";
    font-family: FontAwesome;
    color: var(--text-muted);
}

.breadcrumb > li:last-child a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== 分页优化 ===== */
.pagination > li > a,
.pagination > li > span {
    border-radius: 8px !important;
    margin: 0 3px;
    border: none;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.pagination > li > a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

.pagination > .active > a,
.pagination > .active > span {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #000 !important;
}

/* ===== 访客结账提示优化 ===== */
.guest-checkout-notice {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.guest-checkout-notice i {
    font-size: 24px;
    color: var(--success-color);
    margin-right: 15px;
}

.guest-checkout-notice p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

/* ===== 产品详情页优化 ===== */
#product-product .product-price-wrapper {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 10px;
    padding: 20px;
    border: none;
    margin: 20px 0;
}

#product-product .product-cart-action #button-cart {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff4466 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(243, 2, 64, 0.3);
    transition: all 0.3s ease;
}

#product-product .product-cart-action #button-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 2, 64, 0.4);
}

/* ===== 选项卡优化 ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs > li > a {
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-tabs > li.active > a {
    background: var(--primary-color) !important;
    color: #000 !important;
    font-weight: 600;
}

.nav-tabs > li > a:hover {
    background: #f8f9fa !important;
}

.tab-content {
    border-radius: 0 0 10px 10px;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===== 全站移动端响应式优化 ===== */

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #product-product .product-right {
        margin-top: 20px;
    }
}

/* 手机设备 (< 768px) */
@media (max-width: 767px) {
    /* 顶部导航栏移动端优化 */
    #top {
        padding: 8px 0;
    }
    
    #top .list-inline > li {
        padding: 0 5px;
    }
    
    #top .list-inline > li > a {
        font-size: 13px;
    }
    
    /* 头部区域移动端 */
    header {
        padding: 10px 0;
    }
    
    #logo img {
        max-height: 40px;
    }
    
    /* 搜索框移动端 - 显示在导航下方 */
    #search {
        margin: 10px 0;
    }
    
    #search input {
        height: 40px;
        font-size: 14px;
    }
    
    /* 购物车小图标移动端 */
    .cart-wrapper {
        position: relative;
    }
    
    #cart {
        padding: 8px;
    }
    
    #cart .dropdown-toggle {
        font-size: 13px;
    }
    
    /* 导航菜单移动端 */
    .navbar-collapse {
        max-height: 350px;
        overflow-y: auto;
    }
    
    .mega-dropdown .dropdown-menu {
        position: static !important;
        width: 100% !important;
        border: none;
        box-shadow: none;
        padding: 10px;
    }
    
    /* 轮播图移动端 */
    .slideshow {
        margin-bottom: 15px;
    }
    
    .slideshow .carousel-caption {
        display: none;
    }
    
    /* 产品列表移动端 */
    .product-layout {
        margin-bottom: 15px;
    }
    
    .product-thumb {
        margin-bottom: 15px;
    }
    
    .product-thumb .caption h4 {
        font-size: 13px;
        line-height: 1.3;
        height: auto;
        max-height: 2.6em;
        overflow: hidden;
    }
    
    .product-thumb .price {
        font-size: 15px;
    }
    
    .product-thumb .price-old {
        font-size: 12px;
    }
    
    .product-thumb .button-group button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* 产品详情页移动端 */
    #product-product h1 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    #product-product .thumbnails {
        margin-top: 10px;
    }
    
    #product-product .thumbnails a {
        padding: 3px;
    }
    
    #product-product .thumbnails img {
        max-width: 50px;
    }
    
    #product-product .product-price-wrapper h2 {
        font-size: 24px;
    }
    
    #product-product #button-cart {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    /* 结账页面移动端 */
    .checkout-section h2 {
        font-size: 14px;
    }
    
    .checkout-content {
        padding: 15px;
    }
    
    /* 订单成功页面移动端 */
    .order-success-wrapper {
        padding: 30px 15px;
        margin: 10px;
    }
    
    .order-success-wrapper .success-icon {
        font-size: 50px;
    }
    
    .order-success-wrapper h2 {
        font-size: 20px;
    }
    
    /* 账户页面移动端 */
    .account-menu {
        margin-bottom: 20px;
    }
    
    .account-menu .list-group-item {
        padding: 12px 15px;
    }
    
    /* 侧边栏移动端 - 显示在主内容下方 */
    aside.sidebar {
        margin-top: 20px;
    }
    
    /* 面板移动端 */
    .panel-heading {
        padding: 10px 12px;
    }
    
    .panel-title {
        font-size: 14px;
    }
    
    .panel-body {
        padding: 12px;
    }
    
    /* 表格移动端 */
    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* 按钮移动端 - 增大触摸目标 */
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 表单移动端 */
    .form-control {
        height: 42px;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    textarea.form-control {
        height: auto;
    }
    
    /* 页脚移动端 */
    footer {
        padding: 30px 0;
    }
    
    footer h5 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    footer .list-unstyled li {
        margin-bottom: 8px;
    }
    
    footer .list-unstyled li a {
        font-size: 13px;
    }
    
    /* 面包屑移动端 */
    .breadcrumb {
        padding: 10px 0;
        font-size: 12px;
    }
    
    .breadcrumb > li {
        display: inline-block;
    }
    
    /* 分页移动端 */
    .pagination > li > a,
    .pagination > li > span {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 超小屏幕 (< 480px) */
@media (max-width: 480px) {
    /* 顶部导航极简化 */
    #top .list-inline > li > a span {
        display: none;
    }
    
    #top .list-inline > li > a i {
        font-size: 16px;
    }
    
    /* Logo缩小 */
    #logo img {
        max-height: 35px;
    }
    
    /* 产品列表两列布局 */
    .product-layout.col-xs-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .product-thumb {
        padding: 8px;
    }
    
    .product-thumb .caption {
        padding: 8px 0;
    }
    
    .product-thumb .caption h4 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .product-thumb .price {
        font-size: 14px;
    }
    
    .product-thumb .button-group {
        padding: 5px 0;
    }
    
    .product-thumb .button-group button {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    /* 产品详情页极小屏幕 */
    #product-product h1 {
        font-size: 16px;
    }
    
    #product-product .product-price-wrapper h2 {
        font-size: 22px;
    }
    
    /* 模态框移动端 */
    .modal-dialog {
        margin: 10px;
        width: auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
    
    /* 警告框移动端 */
    .alert {
        padding: 12px;
        font-size: 13px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .btn {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .list-group-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* 禁用悬停效果 */
    .product-thumb:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* 下拉菜单触摸优化 */
    .dropdown-menu > li > a {
        padding: 12px 20px;
    }
    
    /* 导航链接触摸优化 */
    .nav > li > a {
        padding: 12px 15px;
    }
}

/* 横屏手机优化 */
@media (max-width: 767px) and (orientation: landscape) {
    .slideshow .carousel-inner {
        max-height: 200px;
    }
    
    .slideshow .carousel-inner img {
        object-fit: cover;
        max-height: 200px;
    }
    
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* iOS Safari 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    #top {
        padding-top: env(safe-area-inset-top);
    }
    
    footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* 高对比度/暗色模式支持 (可选) */
@media (prefers-color-scheme: dark) {
    /* 如果需要支持暗色模式,在此添加样式 */
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 访客快速结账样式 ===== */
.simple-guest-checkout {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.simple-guest-checkout .title-wrapper h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simple-guest-checkout .title-wrapper h2 i {
    color: var(--primary-color);
}

.simple-guest-checkout .simple-checkout-info p {
    margin-bottom: 20px;
    color: #666;
}

.simple-guest-checkout .guest-pay-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.simple-guest-checkout .radio-group {
    margin-top: 10px;
}

.simple-guest-checkout .radio-inline {
    margin-right: 25px;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simple-guest-checkout .radio-inline:hover {
    border-color: var(--primary-color);
    background: #fffef5;
}

.simple-guest-checkout .radio-inline input:checked + span,
.simple-guest-checkout .radio-inline.active {
    border-color: var(--primary-color);
    background: #fffef5;
}

.simple-guest-checkout .login-register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.simple-guest-checkout .login-register-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.simple-guest-checkout .login-register-link a:hover {
    text-decoration: underline;
}

/* ===== 代付功能样式 ===== */
.payment-action-box {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff8e6 0%, #fff4d4 100%);
    border-radius: 12px;
    border: 1px solid #ffe58f;
    text-align: center;
}

.payment-action-box h4 {
    margin-top: 0;
    color: #d48806;
    font-size: 18px;
}

.payment-action-box .share-payment {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ffe58f;
}

.payment-action-box .share-payment label {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.payment-action-box .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.payment-action-box .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #fff;
}

/* ===== 手机端结账页面优化 ===== */
@media (max-width: 768px) {
    .simple-guest-checkout {
        padding: 15px;
        margin: 0 -15px 15px;
        border-radius: 0;
    }
    
    .simple-guest-checkout .title-wrapper h2 {
        font-size: 16px;
    }
    
    .simple-guest-checkout .radio-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .simple-guest-checkout .radio-inline {
        display: block;
        margin-right: 0;
        text-align: center;
    }
    
    .simple-guest-checkout .form-control {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    /* 结账按钮优化 */
    #button-submit {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        z-index: 999;
        padding: 18px;
        font-size: 18px;
    }
    
    .button-submit-wrapper {
        padding-bottom: 70px;
    }
    
    /* 代付分享框优化 */
    .payment-action-box {
        padding: 20px 15px;
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .payment-action-box .input-group {
        flex-direction: column;
    }
    
    .payment-action-box .input-group .form-control {
        border-radius: 8px !important;
        margin-bottom: 10px;
    }
    
    .payment-action-box .input-group .btn {
        border-radius: 8px !important;
        width: 100%;
    }
    
    /* 购物车页面优化 */
    .cart-well {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .cart-well .table-responsive {
        border: none;
    }
    
    /* 结账页面布局优化 */
    .quick-checkout-wrapper {
        margin: 0 -15px;
    }
    
    .quick-checkout-wrapper .checkout-section {
        border-radius: 0;
        margin-bottom: 10px;
    }
    
    /* 支付方式大按钮 */
    #payment-method-section .radio label {
        padding: 18px 15px;
        font-size: 16px;
    }
}

/* ===== 超小屏幕优化 ===== */
@media (max-width: 480px) {
    .simple-guest-checkout .title-wrapper h2 {
        font-size: 15px;
    }
    
    .payment-action-box h4 {
        font-size: 16px;
    }
    
    .payment-action-box .btn-lg {
        padding: 12px 25px;
        font-size: 16px;
    }
}
