
/* 单页购买模式容器 - 确保宽度 */
.single-page-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 主卡片容器 - 确保100%宽度 */
.main-card {
    width: 100%;
    background: rgba(248, 248, 248, 0.5);
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 20px;
    box-sizing: border-box;
}

/* 区块标题 */
.section-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 15px; }

/* 商品选择列表 */
.goods-select-list { width: 100%; }

/* 商品选择按钮 - 确保100%宽度 */
.goods-select-item {
    display: block;
    width: 100%;
    background: #fff;

    border-radius: 8px;
    padding: 8px 15px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.goods-select-item:last-child { margin-bottom: 0; }
.goods-select-item:hover { background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.05); border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3); }
.goods-select-item.active { background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); border-color: var(--theme-primary, #2196F3); color: var(--theme-primary-dark, #1976D2); font-weight: 500; position: relative; }
.goods-select-item.active::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 12px 12px; border-color: transparent transparent var(--theme-primary, #2196F3) transparent; }

/* 规格选择区域 */
.spec-section { display: none; margin-top: 20px; width: 100%; }
.spec-section.show { display: block; }
.spec-group { margin-bottom: 15px; width: 100%; }
.spec-group:last-child { margin-bottom: 0; }
.spec-group-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 15px; }
.spec-options { width: 100%; }
.spec-list { width: 100%; }

/* 规格选项 - 确保100%宽度 */
.spec-option {
    display: block;
    width: 100%;
    padding: 8px 15px;
    overflow: hidden;
    border: 1px solid transparent;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.spec-option:last-child { margin-bottom: 0; }
.spec-option:hover { background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.05); border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3); }
.spec-option.active { background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); border-color: var(--theme-primary, #2196F3); color: var(--theme-primary-dark, #1976D2); font-weight: 500; position: relative; }
.spec-option.active::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 12px 12px; border-color: transparent transparent var(--theme-primary, #2196F3) transparent; }
.spec-option.disabled { opacity: 0.5; cursor: not-allowed; background: #eee; text-decoration: line-through; }
/* 购买表单区域 */
.buy-form-section { display: none; margin-top: 20px; width: 100%; }
.buy-form-section.show { display: block; }

/* 小标题 */
.section-label { font-size: 16px; color: #333; font-weight: 600; margin-bottom: 12px; }
.required-star { color: var(--theme-price, #ff6600); margin-right: 4px; }

/* 商品描述框 */
.goods-description-box { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 20px; width: 100%; box-sizing: border-box; border: 1px solid #eee;}
.goods-description-box .intro { font-size: 13px; line-height: 1.8; color: #555; padding: 0; margin: 0; }
.goods-description-box .intro img { max-width: 100%; border-radius: 8px; margin: 10px 0; }

/* 价格和数量同行布局 */
.price-quantity-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding: 0px 0; }
.price-section, .quantity-section { display: flex; flex-direction: column; gap: 8px; }
.section-value { font-size: 18px; color: var(--theme-price, #ff6600); font-weight: 700; padding-left: 10px; }
.section-value .unit { font-size: 13px; color: #999; font-weight: normal; }
.market-price { font-size: 13px; color: #bbb; font-weight: normal; text-decoration: line-through; margin-left: 8px; }

/* 数量选择器 */
.quantity-selector { display: flex; align-items: center; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.quantity-btn { width: 28px; height: 28px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; border: none; font-size: 16px; }
.quantity-btn:hover { background: #f5f5f5; }
.quantity-input { width: 36px; height: 28px; border: none; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 13px; font-weight: 600; color: #333; outline: none; }

/* 库存显示 */
.stock-row { margin-bottom: 20px; font-size: 13px; color: #666; }
.stock-row .stock-value { color: var(--theme-primary, #2196F3); font-weight: 500; }

/* 输入字段 */
.input-field-row { margin-bottom: 18px; width: 100%; }
.input-field-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.input-field-header .section-label { white-space: nowrap; flex-shrink: 0; margin-bottom: 0; font-size: 16px; }
.input-field-input { flex: 1; height: 40px; border: none; border-bottom: 1px solid #eee; outline: none; font-size: 15px; color: #f95926 !important; background: #fff; padding: 0 8px; }
.input-field-input:focus { border-bottom-color: var(--theme-primary, #2196F3); }
.input-field-input::placeholder { color: #bbb; }
.input-field-note { font-size: 12px; color: var(--theme-price, #ff6600); padding-left: 14px; margin-top: 4px; }

/* 邮箱字段开关样式 */
.email-field-row { margin-bottom: 18px; }
.email-field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.email-field-title { font-size: 16px; font-weight: 600; color: #333; }
.email-field-desc { font-size: 13px; color: #333; margin-top: 8px; }
.email-input-wrap { margin-top: 12px; }
.email-input-wrap .email-input { width: 100%; height: 42px; border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; font-size: 14px; background: #fff; box-sizing: border-box; }
.email-input-wrap .email-input:focus { border-color: var(--theme-primary, #2196F3); outline: none; }
.email-input-wrap .email-input::placeholder { color: #999; }
/* 开关样式 */
.email-switch-label { position: relative; display: inline-block; width: 50px; height: 28px; cursor: pointer; }
.email-switch-input { opacity: 0; width: 0; height: 0; position: absolute; }
.email-switch-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #ddd; border-radius: 28px; transition: 0.3s; }
.email-switch-slider:before { content: ""; position: absolute; height: 24px; width: 24px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.email-switch-input:checked + .email-switch-slider { background-color: var(--theme-primary, #2196F3); }
.email-switch-input:checked + .email-switch-slider:before { transform: translateX(22px); }

/* 支付方式 */
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
.payment-item { padding: 12px; border: 1px solid #eee; border-radius: 10px; background: #fff; transition: all 0.2s; position: relative; display: flex; align-items: center; cursor: pointer; }
.payment-item:hover { border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3); background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.03); }
.payment-item.active { border-color: var(--theme-primary, #2196F3); background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); }
.payment-icon { width: 32px; height: 32px; margin-right: 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: #f5f5f5; }
.payment-icon img { width: 22px; height: 22px; }
.payment-name { font-size: 13px; font-weight: 500; color: #333; }
.payment-checked { width: 20px; height: 20px; color: var(--theme-primary, #2196F3); position: absolute; top: -6px; right: -6px; background: #fff; border-radius: 50%; font-size: 18px; line-height: 1; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.payment-item.active .payment-checked { display: flex; }

/* 底部支付栏 */
.drawer-footer { margin-top: 20px; width: 100%; position: relative; }
.pay-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(248, 248, 248, 0.8); border-radius: 8px; padding: 12px 15px; box-shadow: inset 0px 0px 4px rgb(255 255 255/0%), inset 3px 3px 10px rgb(55 84 170/10%), inset -3px -3px 10px rgb(55 84 170/8%), 0px 0px 0px rgb(255 255 255/20%) !important; }
.pay-amount { font-size: 13px; color: #333; }
.pay-amount .dynamic-price { font-size: 18px; font-weight: 700; color: var(--theme-price, #ff6600); }
.pay-btn { background: var(--theme-button, #2f69d9); color: #fff; border: none; border-radius: 8px; padding: 12px 35px; font-size: 13px; font-weight: 500; cursor: pointer; }
.pay-btn:hover { background: var(--theme-button-dark, #2558c4); }

/* 单页购买模式默认隐藏底部信息 */
.main-footer { display: none; background: transparent !important; border-top: none !important; margin-top: 0 !important; }
.footer-nav { display: none; }
/* 单页购买模式底部占位：移动端固定购买栏会脱离文档流，占位放在卡片外，避免卡片内容被遮住 */
.single-page-bottom-spacer { display: none; }

/* PC端适配 - 参考商品详情页样式 */
@media (min-width: 769px) {
    /* 容器使用与商品详情页相同的宽度 */
    .single-page-container { 
        max-width: 1140px; 
        margin: 30px auto; 
        padding: 0 15px;
    }
    .main-card { 
        padding: 40px; 
        border-radius: 16px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .section-title { font-size: 18px; margin-bottom: 20px; }
    
    /* 商品选择 - PC端横向排列 */
    .goods-select-list { display: flex; flex-wrap: wrap; gap: 12px; }
    .goods-select-item { 
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        padding: 8px 20px; 
        font-size: 14px;
        margin-bottom: 0;
    }
    
    /* 规格区域 */
    .spec-section { margin-top: 25px; }
    .spec-group { margin-bottom: 20px; }
    
    /* 规格选项 - PC端横向排列 */
    .spec-options { display: flex; flex-wrap: wrap; gap: 12px; }
    .spec-option { 
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        padding: 8px 20px; 
        font-size: 14px;
        margin-bottom: 0;
    }
    
    /* 购买表单区域 */
    .buy-form-section { margin-top: 25px; }
    
    /* 商品描述框 */
    .goods-description-box { padding: 20px; }
    
    /* 价格和数量 */
    .price-quantity-row { padding: 15px 0; margin-bottom: 25px; }
    .section-label { font-size: 16.5px; font-weight: bold; }
    .section-value { font-size: 23px; padding-left: 12px; }
    .section-value .unit { font-size: 14px; }
    
    /* 数量选择器 */
    .quantity-selector { border-radius: 8px; }
    .quantity-btn { width: 38px; height: 38px; font-size: 14px; }
    .quantity-input { width: 50px; height: 38px; font-size: 15px; }
    
    /* 库存显示 */
    .stock-row { font-size: 14px; margin-bottom: 25px; }
    
    /* 输入字段 */
    .input-field-row { margin-bottom: 20px; }
    .input-field-header { gap: 15px; margin-bottom: 8px; }
    .input-field-input { height: 40px; font-size: 14px; padding: 0 10px; }
    .input-field-note { font-size: 13px; padding-left: 14px; margin-top: 5px; }
    
    /* 支付方式 */
    .payment-methods { gap: 15px; }
    .payment-item { padding: 15px; border-radius: 10px; }
    .payment-icon { width: 36px; height: 36px; margin-right: 12px; }
    .payment-icon img { width: 24px; height: 24px; }
    .payment-name { font-size: 14px; font-weight: 600; }
    
    /* 底部支付栏 */
    .drawer-footer { margin-top: 30px; }
    .pay-bar { padding: 12px 15px; border-radius: 8px; }
    .pay-amount { font-size: 15px; }
    .pay-amount .dynamic-price { font-size: 20px; }
    .pay-btn { padding: 12px 35px; font-size: 16px; border-radius: 6px; }
    /* PC端倒计时条位置 - 确保与商品详情页一致 */
    #coupon-countdown-bar { top: -25px; right: 15px; }
    #coupon-countdown { font-size: 14px; padding: 8px 25px; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .single-page-container { margin: 15px auto; }
    .payment-methods { grid-template-columns: repeat(2, 1fr); }
    .price-quantity-row { gap: 20px; }
    .drawer-footer { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid rgba(0, 0, 0, 0.1); padding: 10px 15px; margin-top: 0; z-index: 999; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); padding-bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 0; }
    .pay-bar { padding: 8px 12px; }
    .pay-btn { padding: 10px 25px; font-size: 13px; }
    .buy-form-section.show { padding-bottom: 0; }
    /* 移动端底部付款栏是 fixed，占位放在卡片外面，避免卡片内部出现大块空白 */
    .single-page-bottom-spacer { display: block; height: calc(96px + env(safe-area-inset-bottom)); }
    /* 移动端给底部信息留出空间 */
    .main-footer { padding-bottom: 100px !important; }
}

/* 批发优惠弹窗样式 */
.discount-layer { background: #fff; border-radius: 12px; overflow: hidden; }
.discount-layer .layui-layer-content { background: #fff; }
.discount-layer .layui-layer-btn { background: #fff; border-top: 1px solid #eee; padding: 15px; }
.discount-layer .layui-layer-btn a { background: var(--theme-primary, #0c6be1); color: #fff; border-radius: 8px; height: 40px; line-height: 40px; }

/* 右侧悬浮按钮 */
.float-help-btn {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    width: 45px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.float-help-btn:hover {
    transform: translateY(-50%) scale(1.1);
}
.float-help-btn img {
    width: 100%;
    height: auto;
}
@media (min-width: 769px) {
    .float-help-btn {
        right: calc((100vw - 1140px) / 2 - 70px);
        width: 50px;
    }
}
@media (min-width: 1400px) {
    .float-help-btn {
        right: calc((100vw - 1140px) / 2 - 80px);
    }
}

/* 优惠券区域样式 */
.coupon-toggle-row { background: #fff; border-radius: 8px; padding: 10px 15px 10px 15px;border: 1px solid #eee; }
.coupon-toggle-header { display: flex; align-items: center; }
.coupon-checkbox-label { display: flex; align-items: center; cursor: pointer; user-select: none; }
.coupon-checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.coupon-checkbox-box { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 4px; margin-right: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; flex-shrink: 0; }
.coupon-checkbox:checked + .coupon-checkbox-box { background: var(--theme-accent, #ff9800); border-color: var(--theme-accent, #ff9800); }
.coupon-checkbox:checked + .coupon-checkbox-box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: bold; }
.coupon-toggle-text { font-size: 14px; color: #666; font-weight: 500; }
.coupon-input-area { margin-top: 15px; border-top: 1px dashed #eee; }
.coupon-input-row { display: flex; gap: 10px; margin-top: 15px;}
.coupon-input { flex: 1; height: 40px; border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; font-size: 14px; background: #fff; outline: none; }
.coupon-input:focus { border-color: #ff9800; }
.coupon-check-btn { height: 40px; padding: 0 20px; background: #ff9800; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.coupon-check-btn:hover { background: #f57c00; }
.coupon-result { margin-top: 10px; font-size: 13px; }
.coupon-result.success { color: #4caf50; }
.coupon-result.error { color: #f44336; }
.coupon-result .coupon-discount { color: #ff5722; font-weight: bold; font-size: 15px; }
/* 隐藏 layui 渲染的复选框 */
.coupon-checkbox-label .layui-form-checkbox { display: none !important; }

/* 优惠券倒计时条样式 - 悬浮在确认付款按钮上方 */
#coupon-countdown-bar {
    position: absolute;
    top: -25px;
    right: 15px;
    transform: scale(0.8);
    transform-origin: right center;
    z-index: 10;
}
#coupon-countdown {
    color: #fff;
    font-size: 14px;
    padding: 8px 25px;
    background: url(https://ktv91.xyz.hr/content/plugins/coupon/qianggoubj.png) no-repeat center center;
    background-size: 100% 100%;
    text-align: center;
    white-space: nowrap;
}

/* 深色模式适配 */
html[data-theme="dark"] .main-card,
html.dark-mode .main-card { background: #1e1e1e; }
html[data-theme="dark"] .section-title,
html.dark-mode .section-title { color: #e0e0e0; }
html[data-theme="dark"] .goods-select-item,
html.dark-mode .goods-select-item { background: #2a2a2a; color: #e0e0e0; border-color: #333; }
html[data-theme="dark"] .goods-select-item:hover,
html.dark-mode .goods-select-item:hover { background: #333; border-color: #555; }
html[data-theme="dark"] .goods-select-item.active,
html.dark-mode .goods-select-item.active { background: rgba(var(--theme-primary-rgb), 0.2); border-color: var(--theme-primary); color: var(--theme-primary-light); }
html[data-theme="dark"] .spec-option,
html.dark-mode .spec-option { background: #2a2a2a; color: #e0e0e0; border-color: #333; }
html[data-theme="dark"] .spec-option:hover,
html.dark-mode .spec-option:hover { background: #333; border-color: #555; }
html[data-theme="dark"] .spec-option.active,
html.dark-mode .spec-option.active { background: rgba(var(--theme-primary-rgb), 0.2); border-color: var(--theme-primary); color: var(--theme-primary-light); }
html[data-theme="dark"] .spec-group-title,
html[data-theme="dark"] .section-label,
html.dark-mode .spec-group-title,
html.dark-mode .section-label { color: #e0e0e0; }
html[data-theme="dark"] .goods-description-box,
html.dark-mode .goods-description-box { background: #252525; }
html[data-theme="dark"] .goods-description-box .intro,
html.dark-mode .goods-description-box .intro { color: #b0b0b0; }
html[data-theme="dark"] .input-field-input,
html.dark-mode .input-field-input { background: transparent; color: #e0e0e0 !important; border-bottom-color: #444; }
html[data-theme="dark"] .input-field-input::placeholder,
html.dark-mode .input-field-input::placeholder { color: #666; }
html[data-theme="dark"] .email-field-row,
html.dark-mode .email-field-row { background: #252525 !important; }
html[data-theme="dark"] .email-field-title,
html[data-theme="dark"] .email-field-desc,
html.dark-mode .email-field-title,
html.dark-mode .email-field-desc { color: #b0b0b0; }
html[data-theme="dark"] .email-input,
html.dark-mode .email-input { background: #2a2a2a !important; border-color: #444 !important; color: #e0e0e0 !important; }
html[data-theme="dark"] .payment-item,
html.dark-mode .payment-item { background: #252525; border-color: #333; }
html[data-theme="dark"] .payment-item:hover,
html.dark-mode .payment-item:hover { background: #2a2a2a; border-color: #555; }
html[data-theme="dark"] .payment-item.active,
html.dark-mode .payment-item.active { background: rgba(var(--theme-primary-rgb), 0.2); border-color: var(--theme-primary); }
html[data-theme="dark"] .payment-name,
html.dark-mode .payment-name { color: #e0e0e0; }
html[data-theme="dark"] .payment-icon,
html.dark-mode .payment-icon { background: #333; }
html[data-theme="dark"] .pay-bar,
html.dark-mode .pay-bar { background: #252525; }
html[data-theme="dark"] .pay-amount,
html.dark-mode .pay-amount { color: #e0e0e0; }
html[data-theme="dark"] .quantity-selector,
html.dark-mode .quantity-selector { border-color: #444; }
html[data-theme="dark"] .quantity-btn,
html.dark-mode .quantity-btn { background: #2a2a2a; color: #e0e0e0; }
html[data-theme="dark"] .quantity-btn:hover,
html.dark-mode .quantity-btn:hover { background: #333; }
html[data-theme="dark"] .quantity-input,
html.dark-mode .quantity-input { background: #252525; color: #e0e0e0; border-color: #444; }
html[data-theme="dark"] .coupon-toggle-row,
html.dark-mode .coupon-toggle-row { background: #252525; }
html[data-theme="dark"] .coupon-checkbox-box,
html.dark-mode .coupon-checkbox-box { background: #2a2a2a; border-color: #444; }
html[data-theme="dark"] .coupon-toggle-text,
html.dark-mode .coupon-toggle-text { color: #b0b0b0; }
html[data-theme="dark"] .coupon-input-area,
html.dark-mode .coupon-input-area { border-top-color: #444; }
html[data-theme="dark"] .coupon-input,
html.dark-mode .coupon-input { background: #2a2a2a; border-color: #444; color: #e0e0e0; }
html[data-theme="dark"] .drawer-footer,
html.dark-mode .drawer-footer { background: #1e1e1e; }
/* 单页模式公告样式 */
.single-notice-card { 
    background: rgba(248, 248, 248, 0.5); 
    border: 2px solid #fff;
    border-radius: 8px; 
    padding: 20px 25px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    margin-bottom: 20px; 
    border-left: 4px solid var(--theme-primary, #2196F3);
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
}
.single-notice-card-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    padding-bottom: 12px; 
    border-bottom: 1px dashed #eee; 
}
.single-notice-card-header i { 
    color: var(--theme-primary, #2196F3); 
    font-size: 20px; 
    margin-right: 10px; 
}
.single-notice-card-header span { 
    font-size: 16px; 
    font-weight: 600; 
    color: #333; 
}
.single-notice-card-content { 
    font-size: 14px; 
    color: #555; 
    line-height: 2; 
}
.single-notice-card-content a { 
    color: var(--theme-primary, #2196F3); 
    text-decoration: none; 
}
.single-notice-card-content a:hover { 
    text-decoration: underline; 
}

.single-roll-notice-bar { 
    background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); 
    border: 1px solid rgba(var(--theme-primary-rgb, 33, 150, 243), 0.2);
    border-radius: 6px;
    padding: 10px 15px; 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    overflow: hidden; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
}
.single-roll-notice-bar i { 
    color: var(--theme-primary, #2196F3); 
    font-size: 16px; 
    margin-right: 10px; 
    flex-shrink: 0;
}
.single-roll-notice-content { 
    flex: 1; 
    overflow: hidden; 
    white-space: nowrap; 
}
.single-roll-notice-vticker {
    flex: 1;
    overflow: hidden;
    height: 20px;
    line-height: 20px;
}
.single-roll-notice-vitem {
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--theme-primary, #2196F3);
    font-size: 14px;
}
.single-roll-notice-content span { 
    display: inline-block; 
    color: var(--theme-primary, #2196F3); 
    font-size: 14px; 
    animation: roll-scroll 15s linear infinite; 
}
@keyframes roll-scroll { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}

/* 深色模式适配 */
html[data-theme="dark"] .single-notice-card { 
    background: #1e1e1e; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
}
html[data-theme="dark"] .single-notice-card-header { 
    border-bottom-color: #333; 
}
html[data-theme="dark"] .single-notice-card-header span { 
    color: #e0e0e0; 
}
html[data-theme="dark"] .single-notice-card-content { 
    color: #b0b0b0; 
}
html[data-theme="dark"] .single-roll-notice-bar { 
    background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.15); 
    border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3);
}
html[data-theme="dark"] .single-roll-notice-bar i { 
    color: var(--theme-primary-light, #64B5F6); 
}
html[data-theme="dark"] .single-roll-notice-content span { 
    color: var(--theme-primary-light, #64B5F6); 
}

@media (min-width: 769px) { 
    .single-notice-card, .single-roll-notice-bar { 
        max-width: 1140px; 
    } 
}


