/**
 * 晴玖极简发卡系统
 * 基础样式表
 */

:root {
    --primary-color: #4776E6;
    --primary-dark: #3456d6;
    --secondary-color: #8E54E9;
    --accent-color: #FF8C00;
    --danger-color: #FF3860;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition-normal: all 0.3s ease;
    --font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #F5F7FA;
    font-family: var(--font-family);
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
    padding: 1.5rem 0;
}

header h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

header p {
    font-size: 1.05rem;
    opacity: 0.9;
}

header .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    transition: var(--transition-normal);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
}

header .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: white;
    color: var(--primary-color);
}

/* 主容器样式 */
main .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 首页商品列表标题卡片 */
.card.mb-4 {
    border-radius: 1rem;
    background: linear-gradient(to right, #ffffff, #f7f9fc);
    border-left: 4px solid var(--primary-color);
}

.card.mb-4 .card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    box-shadow: var(--card-shadow);
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-normal);
    margin-bottom: 1.5rem;
    background: white;
}

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

.card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* 商品卡片样式增强 */
.col-md-4 .card {
    height: calc(100% - 1.5rem);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.col-md-4 .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: 1rem;
}

.col-md-4 .card:hover::before {
    opacity: 0.05;
}

.col-md-4 .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.col-md-4 .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
    position: relative;
}

.col-md-4 .card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.col-md-4 .card:hover .card-title::after {
    width: 60px;
}

.col-md-4 .card-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1.2rem;
    color: #555;
}

.col-md-4 .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.2rem 1.5rem;
}

/* 价格和库存显示增强 */
.d-flex.justify-content-between {
    margin-bottom: 1.2rem !important;
}

.text-danger.fw-bold {
    font-size: 1.5rem !important;
    color: var(--danger-color) !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    position: relative;
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge.bg-success {
    background: linear-gradient(45deg, #34a853, #26c766) !important;
}

.badge.bg-danger {
    background: linear-gradient(45deg, #ea4335, #ff5252) !important;
}

/* 购买按钮样式增强 */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(71, 118, 230, 0.35);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(71, 118, 230, 0.5);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.btn-primary:hover::after {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #666;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #e9ecef;
    color: #444;
}

.btn-secondary:disabled {
    opacity: 0.7;
    box-shadow: none;
}

/* 订单卡片样式 */
.order-card {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.order-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.order-card-header::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.order-card-header::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.order-card-header h2 {
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.card-info {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-family: var(--font-family);
    line-height: 1.6;
}

.card-info:last-child {
    border-bottom: none;
}

.card-info h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1rem;
}

.card-info h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    height: 1rem;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.card-content {
    background-color: #f8f9fa;
    padding: 1.2rem;
    border-radius: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 1rem;
    word-break: break-all;
    position: relative;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 二维码容器样式 */
.qrcode-container {
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 1.2rem;
    border: 2px dashed var(--border-color);
    text-align: center;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.qrcode-container img {
    max-width: 220px;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    background: white;
    transition: var(--transition-normal);
    border: 1px solid #f0f0f0;
}

.qrcode-container img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timer-container {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-color);
    background: #f8f9fa;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* 状态检查样式 */
.status-checking {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(71, 118, 230, 0.1);
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.check-success {
    color: var(--secondary-color);
    font-weight: 600;
}

.check-pending {
    color: var(--accent-color);
    font-weight: 600;
}

.check-failure {
    color: var(--danger-color);
    font-weight: 600;
}

/* 表单样式 */
.form-control {
    border-radius: 0.8rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(71, 118, 230, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.7rem;
}

.form-text {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 支付方式选择 */
.payment-methods .form-check {
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.payment-methods .form-check:hover {
    background-color: rgba(71, 118, 230, 0.05);
    border-color: rgba(71, 118, 230, 0.3);
    transform: translateY(-2px);
}

.payment-methods .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-methods .form-check-input:checked ~ .payment-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.payment-methods .payment-icon {
    opacity: 0.7;
    transition: var(--transition-normal);
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

/* 警告和提示框 */
.alert {
    border-radius: 0.8rem;
    padding: 1.2rem 1.5rem;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(52, 168, 83, 0.15);
    color: #2a6f4b;
    border-left: 4px solid #34a853;
}

.alert-danger {
    background-color: rgba(234, 67, 53, 0.15);
    color: #a0342a;
    border-left: 4px solid #ea4335;
}

.alert-warning {
    background-color: rgba(251, 188, 5, 0.15);
    color: #a67c00;
    border-left: 4px solid #fbbc05;
}

.alert-info {
    background-color: rgba(71, 118, 230, 0.15);
    color: #2c5fba;
    border-left: 4px solid #4776E6;
}

/* 页脚样式 */
footer {
    background-color: #fff !important;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 !important;
    margin-top: 3rem !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.02);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
    font-weight: 500;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* 商品描述HTML内容样式 */
.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.card-text p {
    margin-bottom: 1rem;
}

.card-text h1, .card-text h2, .card-text h3, .card-text h4, .card-text h5, .card-text h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.card-text ul, .card-text ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.card-text li {
    margin-bottom: 0.7rem;
}

.card-text img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin: 1.2rem 0;
    object-fit: cover;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 根据卡片尺寸限制图片大小 */
.col-md-4 .card-text img,
.col-md-4 .product-img {
    max-height: 180px;
    margin: 15px auto;
    transition: transform 0.5s ease;
    transform-origin: center;
}

.col-md-4 .card:hover .card-text img,
.col-md-4 .card:hover .product-img {
    transform: scale(1.05);
}

.product-header img {
    max-height: 250px;
    width: auto;
    margin: 0 auto;
    border-radius: 0.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 商品描述中的特殊容器 */
.card-text .usage-guide {
    background-color: rgba(71, 118, 230, 0.1);
    padding: 1.2rem 1.5rem;
    border-radius: 0.8rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 商品描述中的提示信息 */
.card-text .tip, .card-text .notice {
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
    border-radius: 0.8rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
}

.card-text .tip {
    background-color: rgba(255, 140, 0, 0.1);
    border-left: 4px solid var(--accent-color);
}

.card-text .notice {
    background-color: rgba(71, 118, 230, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* 商品描述中的产品图片头部 */
.card-text .product-header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    border-radius: 0.8rem;
}

/* 脉冲效果 */
.pulse-effect {
    animation: pulse 1.2s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    header {
        text-align: center;
        padding: 1.2rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    header .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .col-md-4 .card {
        margin-bottom: 1.5rem;
        height: auto;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.2rem;
    }
    
    .order-card-header {
        padding: 1.2rem;
    }
    
    .qrcode-container {
        padding: 1.5rem;
    }
    
    .status-checking {
        flex-wrap: wrap;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* 改善移动端表单间距 */
    .form-control, .input-group {
        margin-bottom: 0.5rem;
    }
    
    /* 改善移动端订单信息布局 */
    .card-info .row .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    /* 改善移动端卡片内边距 */
    .card-info {
        padding: 1.2rem;
    }
    
    /* 改善移动端缺货显示 */
    .out-of-stock .btn-secondary {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* 改善移动端表格显示 */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* 改善小屏幕设备上的商品列表 */
    main .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 575.98px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .order-card-header h2 {
        font-size: 1.3rem;
    }
    
    .text-danger.fw-bold {
        font-size: 1.3rem !important;
    }
    
    .badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .card-info h5 {
        font-size: 1.1rem;
    }
    
    /* 超小屏幕缺货样式 */
    .out-of-stock .btn-secondary {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* 表单间距进一步调整 */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    /* 按钮字体调整 */
    .btn {
        font-size: 0.9rem;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .card, footer, .qrcode-container {
        background-color: #1e1e1e;
    }
    
    .card-info, .alert-secondary {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .form-control {
        background-color: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .btn-outline-light {
        color: #fff;
        border-color: rgba(255,255,255,0.5);
    }
    
    .btn-outline-secondary {
        color: #e0e0e0;
        border-color: #666;
        background-color: #2d2d2d;
    }
    
    .text-muted, .form-text {
        color: #aaa !important;
    }
    
    .card-content, .timer-container {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .col-md-4 .card::before {
        background: linear-gradient(135deg, var(--primary-color) 0%, transparent 60%);
    }
    
    .col-md-4 .card:hover::before {
        opacity: 0.1;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 商品图片专用样式增强 */
.product-img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

/* 控制不同布局中的图片大小 */
.col-md-4 .product-img {
    max-height: 180px;
    display: block;
    margin: 15px auto;
}

.product-card .product-img {
    max-height: 250px;
    display: block;
    margin: 15px auto;
}

/* 缺货按钮样式 */
.out-of-stock .btn-secondary {
    position: relative;
    background: linear-gradient(45deg, #e9ecef, #f8f9fa);
    border: 1px dashed rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.out-of-stock .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.empty-state svg {
    color: #c8c8c8;
    margin-bottom: 1rem;
}

/* 支付页面优化 */
.payment-page {
    max-width: 800px;
    margin: 0 auto;
}

/* 订单创建成功提示 */
.order-success-tip {
    background-color: #e8f4ea;
    border-left: 5px solid #4caf50;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.order-success-tip h4 {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 8px;
}

.order-success-tip p {
    color: #4b7553;
    margin-bottom: 0;
}

/* 支付容器优化 */
.payment-box {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 20px;
}

.payment-amount {
    margin-bottom: 20px;
    text-align: center;
}

.payment-amount .amount-label {
    font-size: 16px;
    color: #666;
}

.payment-amount .amount-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff3860;
}

/* QR码容器 */
.qrcode-image-wrapper {
    display: inline-block;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin: 15px auto 20px;
    position: relative;
    border: 1px solid #f0f0f0;
}

.qrcode-image-wrapper img {
    max-width: 200px;
    height: auto;
    display: block;
}

.qrcode-image-wrapper::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234776E6"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
    background-size: contain;
    bottom: -10px;
    right: -10px;
}

/* 倒计时容器 */
.countdown-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.countdown-area .timer-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.countdown-timer {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: 600;
    color: #ff3860;
}

/* 订单信息卡片 */
.order-info-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border-left: 3px solid #4776E6;
}

.order-info-title {
    color: #4776E6;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.order-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-info-label {
    color: #666;
    font-weight: 500;
}

.order-info-value {
    font-weight: 500;
}

/* 状态检查区域优化 */
.check-status-area {
    margin: 20px 0;
}

.check-status-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(71, 118, 230, 0.08);
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.check-status-text {
    margin-left: 8px;
    font-size: 14px;
}

.check-count {
    background: rgba(71, 118, 230, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

.manual-check-btn {
    background: linear-gradient(45deg, #4776E6, #8E54E9);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(71, 118, 230, 0.2);
    transition: all 0.3s ease;
}

.manual-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.3);
}

.manual-check-btn:active {
    transform: translateY(0);
}

/* 订单结果页样式 */
.order-result-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.order-result-header {
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.order-result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="%23FFFFFF" opacity="0.1"><circle cx="25" cy="25" r="20"/><circle cx="75" cy="75" r="20"/></svg>');
    background-size: 100px 100px;
    opacity: 0.1;
}

.order-result-header h3 {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
}

.order-result-body {
    padding: 25px;
}

.order-card-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid #4776E6;
}

.order-card-item h4 {
    color: #4776E6;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-status.success {
    background-color: rgba(52, 168, 83, 0.15);
    color: #2a6f4b;
}

.card-status.pending {
    background-color: rgba(251, 188, 5, 0.15);
    color: #a67c00;
}

.card-status.failed {
    background-color: rgba(234, 67, 53, 0.15);
    color: #a0342a;
}

/* 移动端适配增强 */
@media (max-width: 767.98px) {
    .payment-box {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .qrcode-image-wrapper {
        padding: 10px;
    }
    
    .qrcode-image-wrapper img {
        max-width: 180px;
    }
    
    .payment-amount .amount-value {
        font-size: 20px;
    }
    
    .order-info-card {
        padding: 15px;
    }
    
    .order-result-header {
        padding: 20px 15px;
    }
    
    .order-result-header h3 {
        font-size: 20px;
    }
    
    .order-result-body {
        padding: 15px;
    }
    
    .order-card-item {
        padding: 15px;
    }
}

/* 支付图标样式 */
.payment-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 4px;
}

.alipay-icon {
    background: #00a0e9;
}

.wxpay-icon {
    background: #09bb07;
}

.qqpay-icon {
    background: #12b7f5;
}

/* 设置默认图标颜色 */
.bi {
    fill: currentColor;
}

/* 修复某些浏览器中的图标显示问题 */
@font-face {
    font-family: "bootstrap-icons";
    src: url("../fonts/bootstrap-icons.woff2") format("woff2"),
         url("../fonts/bootstrap-icons.woff") format("woff");
}

/* 针对支付页面的特定样式 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-buy {
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    border: none;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #3a61c7, #7542ce);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.4);
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .product-price-stock {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-section {
        padding: 15px;
    }
} 