* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a0e27;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 动态背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(88, 86, 214, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 138, 101, 0.2) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 导航栏 */
nav {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav .nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '⚡';
    -webkit-text-fill-color: #667eea;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主容器 */
.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    width: 100%;
}

/* 头部 */
header {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.card h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 15px;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 表单 */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    font-size: 1.05em;
}

select, input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

select:hover, input:hover {
    border-color: #667eea;
}

select:focus, input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 地址框 */
.address-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.address-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.address-box:hover::before {
    left: 100%;
}

.address-box:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.address-box .label {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-box .label::before {
    content: '📋';
}

.address-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.address-text {
    flex: 1;
}

.address {
    font-size: 1.15em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrcode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    font-weight: 600;
}

.qrcode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* 二维码弹窗 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.qrcode-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qrcode-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s;
    max-width: 90%;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qrcode-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qrcode-close:hover {
    background: #da190b;
    transform: rotate(90deg);
}

.qrcode-content h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.qrcode-image {
    width: 280px;
    height: 280px;
    margin: 20px auto;
    border: 3px solid #667eea;
    border-radius: 12px;
    padding: 10px;
    background: white;
}

.qrcode-address {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    color: #333;
    font-size: 0.9em;
}

/* 价格显示 */
.price-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s;
}

.price-display:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.price-display .amount {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.price-display .label {
    color: #666;
    font-size: 1.1em;
}

/* 信息列表 */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-left: 35px;
    position: relative;
    transition: all 0.3s;
}

.info-list li:hover {
    padding-left: 40px;
    background: rgba(102, 126, 234, 0.03);
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.3em;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
}

/* 机器人链接 */
.bot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.bot-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* 提示框 */
.status-box, .warning-box, .success-box {
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.status-box {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.success-box {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* 特色卡片 */
.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 兑换方向 */
.exchange-direction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
}

.exchange-direction span {
    font-size: 1.5em;
    font-weight: 600;
    color: #667eea;
}

.exchange-direction .arrow {
    font-size: 2em;
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.exchange-rate {
    text-align: center;
    color: #666;
    font-size: 1em;
    margin-top: 15px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

/* 悬浮按钮 */
.floating-service {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.service-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    position: relative;
}

.service-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.service-btn:active {
    transform: scale(0.95);
}

.service-btn .tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 0.5em;
}

.service-btn:hover .tooltip {
    opacity: 1;
}

.back-top-btn {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 服务弹窗 */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.service-modal.active {
    display: flex;
}

.service-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s;
    max-width: 400px;
    width: 90%;
}

.service-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-close:hover {
    background: #da190b;
    transform: rotate(90deg);
}

.service-content h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.service-content .telegram-id {
    font-size: 1.3em;
    color: #333;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
}

.service-content .telegram-id:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.service-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.service-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.open-btn {
    background: #4CAF50;
    color: white;
}

.open-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* 页脚 */
footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 20px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 10px 0;
}

footer .container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    display: none;
    z-index: 1001;
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.toast.error {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

/* 响应式 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    .card {
        padding: 25px;
    }

    .card h2 {
        font-size: 1.5em;
    }

    .price-display .amount {
        font-size: 2.2em;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9em;
    }

    .address-content {
        flex-direction: column;
    }

    .qrcode-image {
        width: 240px;
        height: 240px;
    }

    .floating-service {
        right: 20px;
        bottom: 80px;
    }

    .service-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }

    .service-btn .tooltip {
        display: none;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ==================== 能量闪租新版样式 ==================== */

/* 重置卡片内边距以适应顶部横幅 */
.energy-special-card {
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important; /* 背景改为纯白以匹配截图 */
    border: none;
}

/* 顶部绿色横幅 */
.es-header {
    background: #9ce61c; /* 截图中的亮绿色 */
    background: linear-gradient(90deg, #9ce61c 0%, #b4ea2e 100%);
    padding: 25px 0;
    text-align: center;
}

.es-header h2 {
    margin: 0;
    color: #000;
    font-size: 2em;
    font-weight: bold;
    justify-content: center;
    padding: 0;
}
/* 去掉原来的标题下划线装饰 */
.es-header h2::after {
    display: none;
}

/* 主内容区布局 */
.es-body {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 40px;
    gap: 40px;
    color: #333;
}

/* 三栏布局 */
.es-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
.es-title {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    border: none !important; /* 移除旧的装饰 */
}

/* 列表样式 (第一栏) */
.es-list {
    list-style: none;
    padding: 0;
}

.es-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
    border-bottom: none !important; /* 移除旧的下划线 */
}

.es-list li::before {
    content: "•";
    color: #ccc;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    background: none !important; /* 移除旧的圆形背景 */
    width: auto !important;
    height: auto !important;
}

/* 选择框组 (第二栏) */
.es-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.es-select-group select {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    color: #333;
    font-size: 0.9em;
}

.es-multiply {
    color: #999;
    font-weight: bold;
}

.es-static-input {
    flex: 1.2;
    background: #e0e0e0; /* 灰色背景表示只读 */
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #555;
    font-size: 0.9em;
    text-align: center;
    white-space: nowrap;
}

.es-notes p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.es-notes .highlight {
    color: #d32f2f;
    font-weight: bold;
}

.es-notes a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

/* 地址和支付 (第三栏) */
.es-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.es-qr-icon {
    background: none;
    border: none;
    color: #9ce61c;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.es-qr-icon svg {
    stroke: #8cc63f;
}

.es-address-box {
    background: #e8e8e8;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: monospace;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
    border: 1px solid #ddd;
    transition: background 0.2s;
}

.es-address-box:hover {
    background: #dcdcdc;
    border-color: #bbb;
}

/* 覆盖原本 .address-box 的样式影响 */
.es-address-box::before {
    display: none;
}

.es-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.es-price-label {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.es-price-num {
    color: #d32f2f; /* 红色价格 */
    font-size: 1.4em;
    font-weight: bold;
}

.es-badge-trx {
    background: #1a1a1a;
    color: #9ce61c;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.es-footer-note {
    font-size: 0.8em;
    color: #888;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .es-body {
        flex-direction: column;
        gap: 30px;
    }
    
    .es-column {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .es-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ==================== 闪兑卡片补充样式 ==================== */

/* 让输入框在聚焦时边框变色，保持风格统一 */
.es-select-group input:focus {
    outline: none;
    border-color: #9ce61c !important;
    background: #fff !important;
}

/* 针对汇率文字过长的情况进行微调 */
#exchangeRate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保生成的图片在容器中居中 */
.qrcode-image {
    width: 280px;
    height: 280px;
    margin: 20px auto;
    border: 3px solid #667eea;
    border-radius: 12px;
    padding: 10px;
    background: white;
    /* 新增 Flex 布局实现居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 限制生成的 img 标签大小，防止溢出 */
.qrcode-image img {
    max-width: 100%;
    height: auto;
    display: block; /* 消除底部空隙 */
}

/* ========================= 页面居中 + 卡片左右留白优化 ========================= */

/* 确保 main-wrapper / container 生效（若 HTML 已包裹） */
.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 48px 16px; /* 顶部底部留白 + 水平小内边距 */
}

.container {
    width: 100%;
    max-width: 1100px; /* 页面最大宽度（可根据需要调小或调大） */
    padding: 0 24px; /* 卡片与浏览器左右的留白（实际左右留白 = 浏览器宽度 - max-width 再除以2，加上这里的 padding） */
    box-sizing: border-box;
}

/* 让所有卡片在 container 内水平居中并限制最大宽度 */
.card {
    margin: 28px auto; /* 居中显示（auto），并在垂直维度保有间距 */
    max-width: 100%;   /* 默认占满 container 的宽度，但不会超出 container */
    width: 100%;
    box-sizing: border-box;
}

/* 对于大型横向内容（如 .es-body 的三列），限制其最大内容宽度，避免贴边 */
.es-body {
    max-width: 100%;
    box-sizing: border-box;
}

/* 若你希望更窄的主列宽可以改为 900px： */
/* .container { max-width: 900px; } */

/* ========================= 移动端进一步优化 ========================= */

/* 常规断点：平板 / 手机 横向调整 */
@media (max-width: 900px) {
    .main-wrapper {
        padding: 30px 12px;
    }

    .container {
        padding: 0 16px;
    }

    /* 卡片内边距减小，页面更紧凑 */
    .card {
        padding: 20px;
        border-radius: 14px;
    }

    /* 能量卡特殊处理（原来强制 padding:0 的地方） */
    .energy-special-card {
        padding: 0 !important;
    }

    /* es-body 已在你的 CSS 中处理为列式，这里仅微调间距 */
    .es-body {
        padding: 20px 20px;
        gap: 20px;
    }
}

/* 小屏更严格的优化：更小手机 */
@media (max-width: 480px) {
    header {
        padding: 30px 12px 20px;
    }

    header h1 { font-size: 1.6em; }
    header p { font-size: 0.95em; }

    .card {
        padding: 16px;
        margin: 18px 0;
        border-radius: 12px;
    }

    /* 缩小卡片内部标题/文字 */
    .card h2 { font-size: 1.25em; }
    .card h2::after { width: 40px; height: 3px; }

    /* 缩小 .es-header 字体，避免溢出 */
    .es-header h2 { font-size: 1.3em; padding: 12px 8px; }

    /* 调整 qrcode 容器以适配窄屏 */
    .qrcode-image { width: 200px; height: 200px; }

    /* 悬浮按钮改为更小并靠右下角，避免遮挡内容；若需要可直接隐藏（display:none） */
    .floating-service {
        right: 12px;
        bottom: 60px;
        gap: 10px;
    }

    .service-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2em;
    }

    /* 隐藏工具提示文本以防遮挡 */
    .service-btn .tooltip { display: none; }

    /* 若悬浮按钮仍然遮挡，可以隐藏备用：
    .floating-service { display: none; }
    */
}

/* 更宽屏时（例如桌面大屏），限制 container 的左右内边距使卡片不显得过宽 */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .card {
        padding: 48px;
    }
}

