/* ====================
   0. 置顶角标样式
===================== */

/* 置顶角标 - 三角形样式，位于左侧容器右上角 */
.top-corner-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    z-index: 999;
    cursor: pointer;
}

/* 首页置顶角标 - 红色三角形 */
.top-corner-badge.home-top {
    border-top: 50px solid #ff4757;
    border-left: 50px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.top-corner-badge.home-top::after {
    content: '首页置顶';
    position: absolute;
    top: -45px;
    right: 0px;
    color: white;
    font-size: 9px;
 
    transform: rotate(45deg);
    transform-origin: center;
    white-space: nowrap;
    letter-spacing: 0.3px;

}

/* 分类置顶角标 - 蓝色三角形 */
.top-corner-badge.category-top {
    border-top: 50px solid #3742fa;
    border-left: 50px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.top-corner-badge.category-top::after {
    content: '分类置顶';
    position: absolute;
    top: -45px;
    right: 0px;
    color: white;
    font-size: 9px;

    transform: rotate(45deg);
    transform-origin: center;
    white-space: nowrap;
    letter-spacing: 0.3px;

}

/* 角标悬停效果 */
.top-corner-badge:hover {
    transform: scale(1.05);

}

.top-corner-badge.home-top:hover {
    border-top-color: #ff3742;
}

.top-corner-badge.category-top:hover {
    border-top-color: #2f3542;
}

/* 置顶标签样式（已废弃，保留用于兼容性） */
.top-tag {
    display: inline-block;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 8px;
    font-weight: normal;
    vertical-align: middle;
    line-height: 1.2;
}

/* 根据置顶类型设置不同颜色 */
.yui-info-left .top-tag {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
}

/* 如果是分类置顶，使用蓝色 */
.yui-info-left[data-top-type="category"] .top-tag {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
}

/* 主题适配 */
.theme-red .top-tag {
    background-color: var(--primary-color, #e53935);
}

.theme-blue .top-tag {
    background-color: var(--primary-color, #4285f4);
}

.theme-orange .top-tag {
    background-color: var(--primary-color, #ff6b01);
}

.theme-green .top-tag {
    background-color: var(--primary-color, #4caf50);
}

.theme-purple .top-tag {
    background-color: var(--primary-color, #9c27b0);
}

.theme-pink .top-tag {
    background-color: var(--primary-color, #e91e63);
}



/* ====================
   1. 页面布局与导航
===================== */

/* 面包屑导航样式 */
.breadcrumb-container { margin: 0px 0 10px 0; padding: 10px; border: none; background-color: #fff; width: 100%; box-sizing: border-box; margin-top: 10px; }
.breadcrumb { font-size: 14px; color: #666; display: flex; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: #EE3131; text-decoration: none; }
.breadcrumb .separator { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: #EE3131; }

/* 主内容区域布局 */
.yui-info { display: flex; justify-content: space-between; }
.yui-info-left { width: 900px; min-height: 400px; float: left; position: relative; padding:15px ; }
.yui-info-right { width: 260px; min-height: 600px; float: right; }

/* ====================
   2. 信息展示模块
===================== */

/* 信息标题 */
.yui-info-title h1 { font-size: 24px; color: #333; line-height: 50px; }
.yui-info-qt { border-bottom: 1px #ebebeb solid; height: 40px; color: #888; }
.yui-info-qt p { line-height: 35px; }
.yui-info-qt p span { margin-right: 20px; }
.yui-info-qt a { margin-left: 10px; font-size: 14px; }
.yui-info-qt a:hover { opacity: 0.8; text-decoration: none; }

/* 管理链接样式 */
.yui-info-qt .manage-links a {
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}
.yui-info-qt .manage-links a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 信息内容 */
.yui-content-wrap { line-height: 30px; padding: 10px 10px 10px 0; font-size: 16px; word-break: break-all; margin-bottom: 10px; }
.yui-content-wrap video { max-width: 890px; }
.yui-content-wrap img, .yui-content-wrap p img { max-width: 500px; margin-bottom: 10px; }

/* 使用须知样式 */
.infoquote { margin-bottom: 25px; }
.infoquote p { line-height: 1.6; }
.infoquote .t { font-weight: bold; }

/* 标签样式 */
.info-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 15px; }
.info-tag { display: inline-flex; align-items: center; padding: 4px 10px; background-color: #e1f5fe; color: #0288d1; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.info-tag.main-area { background-color: #e8f5e9; color: #2e7d32; }
.info-tag.sub-area { background-color: #f1f8e9; color: #558b2f; margin-left: 8px; position: relative; }
.info-tag.main-category { background-color: #e3f2fd; color: #1565c0; }
.info-tag.sub-category { background-color: #e8eaf6; color: #3949ab; margin-left: 8px; position: relative; }
.info-tag.sub-area:before, .info-tag.sub-category:before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.info-tag.sub-area:before { border-left: 4px solid #2e7d32; }
.info-tag.sub-category:before { border-left: 4px solid #1565c0; }

/* 图片画廊样式 - 用于展示信息图片集 */
.image-gallery { margin: 20px 0; width: 100%; }
.gallery-grid { display: flex; flex-wrap: wrap; margin: -10px; }
.gallery-item { width: calc(33.333% - 20px); margin: 10px; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: relative; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; cursor: pointer; }
.gallery-item img:hover { transform: scale(1.05); }

/* 联系信息 */
.contact-box { display: flex; gap: 20px; margin-bottom: 15px; }
.contact-item { font-size: 14px; }
.contact-item strong { color: #333; font-weight: bold; }

/* 信息状态 */
.expired-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg); z-index: 10; opacity: 0.7; }
.expired-text { color: #e74c3c; }

/* ====================
   3. 右侧边栏
===================== */

/* 右侧模块样式 - 与列表页保持一致 */
.bbs-hot { 
    background: #fff; 
    margin-bottom: 10px; 
    padding: 0 10px 10px 10px;
    border-radius: 4px;
}
.yui-img-list { 
    margin-bottom: 10px; 
}
.yui-img-list img { 
    width: 100%; 
    height: auto;
    margin: 5px 0; 
    box-sizing: border-box;
    display: block;
}
.yui-small-list ul { 
    padding: 5px 0; 
}
.yui-small-list ul li { 
    line-height: 28px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.yui-small-list ul li a { 
    color: #666; 
    font-size: 14px; 
}
.yui-small-list ul li a:hover { 
    color: #EE3131; 
}

/* ====================
   4. 交互元素
===================== */

/* 弹窗样式 */
#yui-popup { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 250px; height: auto; background-color: #FFF; border: 1px solid #ccc; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 9999; padding: 0 0 10px; }
#yui-popup .title { height: 42px; line-height: 42px; border-bottom: 1px solid #eee; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-color: #F8F8F8; border-radius: 2px 2px 0 0; padding: 0 80px 0 20px; }
#yui-popup .image { text-align: center; }
#yui-popup .image img { width: 250px; height: 230px; }
#yui-popup .button { text-align: right; margin-right: 10px; margin-top: 10px; }
#yui-popup button { background-color: #2e8ded; color: #fff; height: 28px; line-height: 28px; border: 1px solid #dedede; border-radius: 2px; font-weight: 400; cursor: pointer; text-decoration: none; border-color: #4898d5; margin: 0 6px; padding: 0 15px; }
.yui_mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 9998; display: none; }

/* 灯箱样式 - 用于图片放大预览 */
.lightbox-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; flex-direction: column; cursor: pointer; }
.lightbox-container { position: relative; max-width: 90%; max-height: 90vh; background-color: #fff; border-radius: 6px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); overflow: hidden; cursor: default; margin: 0 auto; padding: 10px; opacity: 0; }
.lightbox-content { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; border: none; margin: 0 auto; }
.lightbox-caption { color: #333; font-size: 16px; padding: 10px; text-align: center; width: 100%; background-color: #fff; margin-top: 10px; }
.lightbox-close { position: absolute; top: 5px; right: 10px; color: #333; font-size: 30px; font-weight: bold; cursor: pointer; z-index: 10000; line-height: 30px; width: 30px; height: 30px; text-align: center; border-radius: 50%; }
.lightbox-close:hover { color: #EE3131; background-color: rgba(0, 0, 0, 0.1); }
/* 切换箭头固定在视窗两侧，不随图片大小变化位置 */
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); color: #fff; font-size: 28px; font-weight: bold; cursor: pointer; padding: 15px; background-color: rgba(0, 0, 0, 0.6); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; z-index: 10001; border: 2px solid rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-50%) scale(1.1); }
/* 只有一张图片时隐藏切换箭头 */
.lightbox-overlay.single-image .lightbox-prev,
.lightbox-overlay.single-image .lightbox-next { display: none; }
/* 响应式设计：在小屏幕上调整箭头位置 */
@media (max-width: 768px) {
    .lightbox-prev { left: 15px; width: 45px; height: 45px; font-size: 24px; }
    .lightbox-next { right: 15px; width: 45px; height: 45px; font-size: 24px; }
}

/* 操作提示弹出层样式 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-content { background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); width: 330px; height: 220px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; box-sizing: border-box; }
.modal-icon { font-size: 48px; margin: 0 0 12px; flex-shrink: 0; }
.error-icon { color: #ff4757; }
.success-icon { color: #2ed573; }
.modal-title { font-size: 16px; font-weight: bold; margin: 0 0 8px; color: #333; flex-shrink: 0; }
.modal-message { font-size: 13px; color: #666; margin: 0 0 16px; padding: 0 20px; line-height: 1.5; flex-shrink: 0; }
.modal-buttons { padding: 0 20px; flex-shrink: 0; }
.modal-btn { background: #2e8ded; color: #fff; border: none; padding: 8px 24px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.modal-btn:hover { background: #1e7bd7; }
.modal-btn.primary { background: #2e8ded; }

/* 加载提示样式 */
.loading-modal { padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.loading-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #2e8ded; border-radius: 50%; margin: 0 0 12px; flex-shrink: 0; animation: spin 1s linear infinite; }
.loading-text { font-size: 13px; color: #666; margin: 0; flex-shrink: 0; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================
   5. 通用样式
===================== */

/* 通用按钮样式 */
button { background: none; border: 0; outline: none; padding: 0; cursor: pointer; }

/* 辅助类 */
.mt10 { margin-top: 10px; }
.pt20 { padding-top: 20px; }
.yui-clear { clear: both; }

/* 弹出层样式 */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.password-modal-content {
    position: relative;
    width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);

}



.modal-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #999;
    cursor: pointer;

    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

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

.modal-body {
    padding: 20px;
}

.password-input-group {
    margin-bottom: 15px;
}

.password-input-group input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;

    box-sizing: border-box;
}

.password-input-group input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    outline: none;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.modal-footer button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;

    border: none;
    margin-left: 10px;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-submit {
    background: #0066cc;
    color: #fff;
}

.btn-submit:hover {
    background: #0052a3;
}

/* 管理链接样式 */
.manage-links a {
    margin-left: 15px !important;
    text-decoration: none;
}

.manage-links a:first-child {
    margin-left: 0 !important;
}

.manage-links a:hover {
    opacity: 0.8;
}

/* ====================
   6. 联系方式区域样式
===================== */

/* 联系方式区域样式 */
.contact-info {
    margin: 15px 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.contact-item {
    margin-bottom: 8px;
    line-height: 24px;
    font-size: 14px;
}

.contact-label {
    display: inline-block;
    width: 60px;
    color: #666;
}

.contact-value {
    color: #333;
    font-weight: bold;
}

.contact-value .phone-text {
    font-weight: bold;
}

.expired-text {
    color: #ff4d4f;
    font-weight: normal;
}

/* 温馨提示样式 - 简洁大方版 */
.contact-tip {
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
}

.contact-tip i {
    font-size: 16px;
    color: #007bff;
    flex-shrink: 0;
}

.contact-tip span {
    flex: 1;
    line-height: 1.5;
}

.contact-tip a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-tip a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ========================================
   发布须知/使用须知样式
   ======================================== */
.posting-notice {
    margin: 0 0 15px;
    background: #fff8db;
    border: 1px solid #ffd77a;
    border-radius: 4px;
    box-sizing: border-box;
}

.notice-title {
    margin: 0;
    padding: 8px 12px;
    background: #fff5cc;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffd77a;
}

.notice-title i.fa-exclamation-circle {
    color: #ff9900;
    font-size: 14px;
    margin-right: 6px;
}

.notice-title span {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.notice-content {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.notice-content p {
    margin: 0 0 4px;
    padding-left: 16px;
    position: relative;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-content p:before {
    content: "①";
    position: absolute;
    left: 0;
    color: #ff9900;
}

.notice-content p:nth-child(2):before { content: "②"; }
.notice-content p:nth-child(3):before { content: "③"; }
.notice-content p:nth-child(4):before { content: "④"; }
.notice-content p:nth-child(5):before { content: "⑤"; }
.notice-content p:nth-child(6):before { content: "⑥"; }
.notice-content p:nth-child(7):before { content: "⑦"; }
.notice-content p:nth-child(8):before { content: "⑧"; }

.notice-content p.highlight {
    color: #f56c6c;
    font-weight: 500;
}

.notice-content .agreement-link {
    color: #0066cc;
    text-decoration: none;
}

.notice-content .agreement-link:hover {
    color: #f60;
    text-decoration: underline;
}

/* 电话号码图片样式 */
.phone-image {
    height: auto;
    max-height: 28px;
    vertical-align: middle;
    margin-left: 0;
}

/* 联系认证标签 */
.contact-verify {
    margin: 10px 0;
}

.verify-tag {
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
    color: #666;
}

.verify-tag img {
    vertical-align: middle;
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.user-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23666' d='M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z'%3E%3C/path%3E%3C/svg%3E");
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23666' d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'%3E%3C/path%3E%3C/svg%3E");
}

.address-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23666' d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'%3E%3C/path%3E%3C/svg%3E");
}

.phone-call-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    margin-left: 5px;
}

/* ====================
   7. 置顶模态框样式
===================== */

/* 置顶模态框样式 - 优化布局版本 */
.top-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.top-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 500px;
    height: 420px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);

    position: relative;
    overflow: hidden;
}



.top-modal-header {
    padding: 12px 20px 10px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafbfc;
    height: 42px;
    box-sizing: border-box;
}

.top-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.top-modal-close {
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;

    background: transparent;
    border: none;
}

.top-modal-close:hover {
    color: #666;
    background: #f5f5f5;
}

.top-modal-body {
    padding: 15px 20px 18px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

/* ====================
   7. 通用样式与辅助类
===================== */

/* 通用按钮样式 */
button { background: none; border: 0; outline: none; padding: 0; cursor: pointer; }

/* 辅助类 */
.mt10 { margin-top: 10px; }
.pt20 { padding-top: 20px; }
.yui-clear { clear: both; }


/* 确保父容器也是inline布局 */
div[style*="display: flex; align-items: center"] .payment-methods.inline {
    display: inline-flex !important;
    margin-left: auto !important;
}

.payment-method {
    flex: 0 0 auto;
    min-width: 85px;
    max-width: 105px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;

    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.payment-method:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.12);
    transform: translateY(-1px);
    background: #f8fbff;
}

.payment-method.selected {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.12);
}

.payment-icon {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: normal;
    background: none !important;

}

.payment-method .wechat-icon {
    color: #09bb07;
    background: none !important;
}

.payment-method .alipay-icon {
    color: #1677ff;
    background: none !important;
}

.wechat-only-tip {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 12px;
    color: #0066cc;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wechat-only-tip i {
    font-size: 14px;
    color: #0066cc;
}

.payment-method:hover .payment-icon {
    transform: scale(1.05);
}

.payment-method.selected .payment-icon {
    transform: scale(1.1);
}

.payment-text {
    font-size: 10px;
    color: #333;
    font-weight: normal;
    margin-top: 0;
}

.payment-image {
    width: 100%;
    height: auto;
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 4px;
    padding: 0;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;

    margin-top: 0;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
}

.submit-btn:hover:not(:disabled) {
    background: #0056b3;
    box-shadow: 0 3px 8px rgba(0,123,255,0.3);
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.submit-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
    transform: none;
}

.loading, .error, .no-configs {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 12px;
}

.error {
    color: #dc3545;
}

.success {
    color: #28a745;
}

/* ====================
   9. 订单详情页面样式
===================== */

.order-details {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.order-info {
    flex: 1;
    margin-bottom: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

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

.order-item.total {
    font-weight: 600;
    font-size: 18px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid #007bff;
    background: #fff;
    margin: 16px -20px -20px -20px;
    padding: 16px 20px;
    border-radius: 0 0 8px 8px;
}

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

.order-item .value {
    color: #333;
    font-weight: 500;
}

.order-item .price {
    color: #ff4757;
    font-size: 22px;
    font-weight: 700;
}

/* ====================
   10. 支付页面样式
===================== */

/* 支付页面样式 */
.payment-page {
    text-align: center;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.qr-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-code {
    margin: 0 auto 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-code img {
    max-width: 140px;
    max-height: 140px;
}

/* 二维码加载状态样式 */
.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    width: 140px;
}

.qr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;

}



.payment-amount {
    font-size: 20px;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 4px;
}

.payment-tips {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.payment-status {
    margin-bottom: 8px;
    flex-shrink: 0;
}

.status-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    font-weight: 500;
}

.countdown {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.countdown span {
    color: #ff4757;
    font-weight: 600;
}

.submit-btn.secondary {
    background: #6c757d;
}

.submit-btn.secondary:hover:not(:disabled) {
    background: #545b62;
}

/* ====================
   11. 支付成功页面样式
===================== */

/* 支付成功页面样式 */
.payment-success {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.payment-success-detail {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    overflow-y: auto;
}

.success-header {
    margin-bottom: 8px;
    text-align: center;
}

.success-icon {
    font-size: 9px;
    color: #28a745;
    margin-bottom: 2px;
    line-height: 1;
}

.success-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.success-message {
    font-size: 9px;
    color: #666;
    margin-bottom: 1px;
    line-height: 1;
}

.order-detail-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

/* 2列网格布局 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin-bottom: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 12px;
    line-height: 1.4;
}

.detail-label {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    margin-bottom: 3px;
    white-space: nowrap;
}

.detail-value {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    word-wrap: break-word;
}

.detail-value.price {
    color: #ff4757;
    font-weight: 700;
    font-size: 14px;
}

/* 订单号单独一行 */
.detail-order-no {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 11px;
    margin-top: 4px;
    gap: 6px;
}

.detail-order-no .detail-label {
    color: #999;
    font-weight: 400;
    margin-bottom: 0;
}

.detail-order-no .detail-value {
    color: #666;
    font-weight: 500;
    font-size: 11px;
}

.detail-value.highlight {
    color: #007bff;
    font-weight: 600;
}

.detail-value.price {
    color: #ff4757;
    font-weight: 700;
}

.detail-value.expire {
    color: #28a745;
    font-weight: 600;
}

.success-tips {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.success-actions {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 0;
    justify-content: center;
}

.success-actions .submit-btn {
    width: auto;
    padding: 8px 20px;
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.3;
    min-height: 32px;
    background: #007bff;
    color: white;
}

.success-actions .submit-btn.primary {
    background: #28a745;
    color: white;
}

.success-actions .submit-btn.primary:hover:not(:disabled) {
    background: #218838;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

/* 紧凑的成功提示头部 */
.success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.success-icon-small {
    font-size: 20px;
    color: #28a745;
    line-height: 1;
}

.success-title-small {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

/* 支付成功页面的图标专用样式 - 覆盖上面的通用样式 */
.payment-success-detail .success-icon {
    font-size: 9px !important;
    color: #28a745;
    margin-bottom: 2px;
    line-height: 1;
}

/* 行内图标样式 */
.success-icon-inline {
    font-size: 16px;
    color: #28a745;
    margin: 0;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ====================
   12. Toast 提示和加载状态
===================== */

/* Toast 提示样式 */
.toast {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 按钮加载状态 */
.submit-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.submit-btn .fa-spinner {
}

/* 改进的加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.loading .fa-spinner {
}

/* 改进的错误状态 */
.error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #dc3545;
    font-size: 14px;
}

/* 改进的成功状态 */
.success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
}

/* ====================
   13. 支付处理和响应式样式
===================== */

/* PC端支付处理中提示样式 */
.payment-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.payment-processing-content {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 320px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.payment-processing-icon {
    margin-bottom: 20px;
}

.payment-processing-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.payment-processing-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 置顶模态框响应式设计 */
@media (max-width: 768px) {
    .top-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .top-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;

    }



    .top-modal-header {
        padding: 20px 24px 16px;
    }

    .top-modal-header h3 {
        font-size: 20px;
    }

    .top-modal-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .top-modal-body {
        padding: 16px 20px 20px;
    }

    .top-type-tabs {
        margin-bottom: 12px;
    }

    .top-type-tab {
        padding: 12px 16px;
        font-size: 15px;
    }

    .config-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .config-item {
        padding: 10px 6px;
        min-height: 50px;
    }

    .payment-methods {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .payment-methods.inline {
        display: inline-flex !important;
        margin-bottom: 0 !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        width: auto !important;
    }

    .payment-method {
        padding: 14px 12px;
        min-width: 90px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .top-modal {
        padding: 5px;
    }

    .top-modal-header {
        padding: 16px 20px 12px;
    }

    .top-modal-header h3 {
        font-size: 18px;
    }

    .top-modal-body {
        padding: 16px 20px 20px;
    }

    .top-type-tab {
        padding: 10px 12px;
        font-size: 14px;
    }

    .config-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .config-item {
        padding: 8px 4px;
        min-height: 45px;
    }

    .payment-method {
        padding: 12px;
    }

    .submit-btn {
        padding: 14px 16px;
        font-size: 16px;
    }
}

/* 防止模态框被其他元素遮挡 */
.top-modal {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 确保模态框在最顶层 */
.top-modal-content {
    position: relative;
    z-index: 1;
}

/* 优化滚动条样式 */
.top-modal-body::-webkit-scrollbar {
    width: 6px;
}

.top-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.top-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.top-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}