* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    font-size: 14px;
    color: #333;
}
.main-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    padding: 20px;
    margin-bottom: 16px;
}
.header {
    text-align: center;
    margin-bottom: 20px;
}
.header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.sub-title {
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
}
.btn-highlight {
    background: linear-gradient(to right, #FF7800, #FF5000);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.2);
    transition: all 0.3s;
}
.btn-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 120, 0, 0.3);
}
.link-parser {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 14px;
}
#pasteBox {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    background: white;
}
#pasteBox:focus {
    outline: none;
    border-color: #40bef8;
    box-shadow: 0 0 0 2px rgba(64, 190, 248, 0.2);
}
.btn-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.btn {
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn-paste {
    background: linear-gradient(to right, #6c5ce7, #a29bfe);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
}
.btn-go {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
}
.btn-clear {
    background: linear-gradient(to right, #9b59b6, #8e44ad); !important;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
}
.btn-home {
    background: linear-gradient(to right, #5bc8fa, #40bef8);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.input-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}
.coupon-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.coupon-panel {
    border-radius: 14px;
    overflow: hidden;
    background: white;
}
.coupon-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}
.coupon-panel-header:hover {
    background: #f8f9fa;
}
.panel-title-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    margin-right: 8px;
}
/* 核心修复：补充所有模块的标题栏颜色 */
.meituan-blue { background: linear-gradient(to bottom, #5bc8fa, #40bef8); }
.taobao-orange { background: linear-gradient(to bottom, #ff9500, #ff5e3a); }
.jd-red { background: linear-gradient(to bottom, #f44878, #f9215e); }
.dianping-red { background: linear-gradient(to bottom, #fe6700, #ff4757); } /* 大众点评 */
.taxi-green { background: linear-gradient(to bottom, #2ecc71, #27ae60); } /* 打车 */
.ticket-blue { background: linear-gradient(to bottom, #3498db, #2980b9); } /* 机票火车票 */
.other-gray { background: linear-gradient(to bottom, #95a5a6, #7f8c8d); } /* 流量卡 */
.panel-icon {
    transition: transform 0.3s ease;
    font-size: 13px;
    color: #666;
}
.panel-icon.expanded { transform: rotate(180deg); }
.coupon-panel-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-top: 1px solid #f0f0f0;
}
.coupon-panel-content.expanded {
    max-height: 2000px;
    padding: 14px;
}
.coupon-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    position: relative;
}
.coupon-card:last-child { margin-bottom: 0; }
.coupon-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.coupon-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}
.coupon-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-direct { background: linear-gradient(to right, #5bc8fa, #40bef8); color: white; font-size: 13px; padding: 10px 8px; flex: 1; border-radius: 8px; }
.btn-code { background: linear-gradient(to right, #3eca61, #3eca61); color: white; font-size: 13px; padding: 10px 8px; flex: 1; border-radius: 8px; }
.btn-copy { background: linear-gradient(to right, #1a8fe3, #2d68ff); color: white; font-size: 13px; padding: 10px 8px; flex: 1; border-radius: 8px; }
.btn-jd { background: linear-gradient(to right, #f44878, #f9215e); color: white; border-radius: 8px; }
.service-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.btn-meituan-hotel, .btn-meituan-group, .btn-meituan-flight, .btn-meituan-train, .btn-didi, .btn-t3, .btn-hxz, .btn-tc {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 8px;
    color: white;
}
.btn-meituan-hotel { background: linear-gradient(to right, #3498db, #2980b9); }
.btn-meituan-group { background: linear-gradient(to right, #9b59b6, #8e44ad); }
.btn-meituan-flight { background: linear-gradient(to right, #3498db, #2980b9); }
.btn-meituan-train { background: linear-gradient(to right, #2980b9, #1f6dad); }
.btn-didi { background: linear-gradient(to right, #3498db, #2980b9); }
.btn-t3 { background: linear-gradient(to right, #9b59b6, #8e44ad); }
.btn-hxz { background: linear-gradient(to right, #f39c12, #d35400); }
.btn-tc { background: linear-gradient(to right, #2ecc71, #27ae60); }
.coupon-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    padding: 6px 0;
}
.note {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}
.btn-flow { background: linear-gradient(to right, #95a5a6, #7f8c8d); color: white; font-size: 13px; padding: 10px 8px; border-radius: 8px; width: 100%; }
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}
.close:hover { color: #333; }
.qr-code { margin: 14px 0; padding: 10px; background: white; border-radius: 10px; display: inline-block; }
.qr-code img { width: 100%; max-width: 180px; height: auto; border-radius: 6px; }
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    z-index: 1001;
    display: none;
    font-size: 13px;
}
.toast.show { display: block; }
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}
/* 使用方法图片容器样式 */
.method-image-container {
    margin: 15px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.method-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
/* 标签样式 */
.tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(to right, #FF7800, #FF5000);
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.btn-method {
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: white;
    font-size: 13px;
    padding: 10px 8px;
    flex: 1;
    border-radius: 8px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    body { padding: 10px; font-size: 13px; }
    .main-container { padding: 16px; }
    .btn { font-size: 12px; padding: 10px 8px; }
    .header h2 { font-size: 20px; }
}
@media (max-width: 480px) {
    .btn-group { flex-wrap: wrap; gap: 6px; }
    .btn {
        min-width: calc(50% - 3px);
        font-size: 12px;
        padding: 11px 8px;
        white-space: nowrap;
    }
    .coupon-actions { flex-wrap: wrap; }
}
@media (max-width: 360px) {
    .btn { font-size: 11px; padding: 10px 6px; }
}