@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0, #2563eb 100%);
    --primary-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-primary: #fff;
    --bg-secondary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / .1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 15px 20px
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95)
}

.nav-buttons {
    display: inline-flex;
    background: var(--bg-secondary);
    padding: 3px;
    border-radius: 8px;
    gap: 0
}

.nav-button {
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
    position: relative;
    border-radius: 6px;
    min-width: 70px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden
}

.nav-button:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.08)
}

.nav-button.active {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0, #2563eb 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3)
}

.nav-button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 7px;
    background: linear-gradient(135deg, #3b82f6 0, #2563eb 100%);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: -1
}

.nav-button:hover::before {
    opacity: .1
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all .3s ease;
    transform: translateX(-50%)
}

.nav-button:hover::after {
    width: 80%
}

.nav-button.active::after {
    width: 100%;
    background: #fff
}

.nav-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple .6s linear;
    pointer-events: none
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

.floating-calculator {
    position: fixed;
    right: -280px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    border-radius: 16px 0 0 16px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 280px;
    z-index: 900;
    transition: right .3s ease
}

.floating-calculator.show {
    right: 0
}

.calculator-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    padding: 15px 8px;
    background: var(--primary-color);
    color: white;
    border: 0;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1)
}

.calculator-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px
}

.calculator-tab {
    flex: 1;
    padding: 8px;
    font-size: 12px;
    background: var(--bg-secondary);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all .2s ease
}

.calculator-tab.active {
    background: var(--primary-color);
    color: white
}

.calculator-content>div {
    display: none
}

.calculator-content>div.active {
    display: block
}

.floating-input-group {
    margin-bottom: 12px
}

.floating-input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px
}

.floating-input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px
}

.floating-result {
    margin-top: 12px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 500
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

.language-switch a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s ease
}

.language-switch a.active {
    color: var(--primary-color)
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all .3s ease
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1
}

@media(max-width:480px) {
    .floating-calculator {
        width: 260px;
        right: -260px
    }

    .calculator-toggle {
        left: -35px;
        width: 35px;
        font-size: 13px;
        padding: 12px 6px
    }

    .nav-button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 60px
    }

    .nav-buttons {
        padding: 2px
    }

    .language-switch {
        font-size: 12px
    }
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0;
    padding-top: 20px
}

.energy-page {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05)
}

.price-info {
    background: linear-gradient(135deg, #3b82f6 0, #2563eb 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    display: inline-block
}

.price-info strong {
    font-weight: 600;
    margin-right: 8px
}

.address-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden
}

.address-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px)
}

.address {
    font-family: monospace;
    font-size: 15px;
    word-break: break-all;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 1
}

.address-tip {
    font-size: 14px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 6px
}

.address-tip::before {
    content: '⚡';
    font-size: 16px
}

.warning-list {
    background: #fff8f1;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    list-style: none
}

.warning-list li {
    color: #c2410c;
    font-size: 14px;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5
}

.warning-list li:last-child {
    margin-bottom: 0
}

.warning-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 14px
}

.table-container {
    margin: 20px 0;
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05)
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px
}

th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px
}

td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary)
}

tr:hover td {
    background-color: var(--bg-secondary)
}

@media(max-width:480px) {
    .energy-page {
        padding: 16px
    }

    .price-info {
        font-size: 14px;
        padding: 10px 16px
    }

    .address-box {
        padding: 16px
    }

    .address {
        font-size: 13px
    }

    .address-tip {
        font-size: 13px
    }

    .warning-list {
        padding: 12px 16px
    }

    .warning-list li {
        font-size: 13px
    }

    th,
    td {
        padding: 10px 12px;
        font-size: 13px
    }
}

@keyframes copySuccess {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }

    100% {
        transform: scale(1)
    }
}

.copy-success {
    animation: copySuccess .3s ease
}

.about-container {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05)
}

.energy-info,
.tips-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px
}

.energy-info h2,
.tips-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px
}

.energy-info h2::before {
    content: '⚡'
}

.tips-info h2::before {
    content: '💡'
}

.energy-info p,
.tips-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 14px;
    padding-left: 24px;
    position: relative
}

.energy-info p::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: var(--primary-color);
    font-size: 18px
}

.tips-info p::before {
    content: '✓';
    position: absolute;
    left: 8px;
    color: var(--success-color)
}

.energy-info p:last-child,
.tips-info p:last-child {
    margin-bottom: 0
}

.energy-info p strong {
    color: var(--primary-color);
    font-weight: 600
}

@media(max-width:480px) {
    .about-container {
        padding: 16px
    }

    .energy-info,
    .tips-info {
        padding: 16px
    }

    .energy-info h2,
    .tips-info h2 {
        font-size: 16px
    }

    .energy-info p,
    .tips-info p {
        font-size: 13px;
        padding-left: 20px
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

#aboutContent {
    animation: fadeIn .3s ease-out
}

.social-buttons {
    position: fixed;
    right: 20px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1)
}

.line-button {
    background: #00b900;
    color: white
}

.line-button:hover {
    background: #00a000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.2)
}

.telegram-button {
    background: #08c;
    color: white
}

.telegram-button:hover {
    background: #0077b3;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.2)
}

@media(max-width:768px) {
    .social-buttons {
        right: 15px;
        top: 80px
    }

    .social-button {
        width: 36px;
        height: 36px
    }

    .social-button svg {
        width: 20px;
        height: 20px
    }
}

#hourlyContent,
#unlimitedContent,
#exchangeContent,
#aboutContent {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    transform: translateY(20px);
    transition: all .3s ease-out
}

#hourlyContent.active,
#unlimitedContent.active,
#exchangeContent.active,
#aboutContent.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0)
}

/* 视觉优化 */
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 5%, rgba(96, 165, 250, .18), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(129, 140, 248, .14), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.container {
    max-width: 860px;
    padding: 92px 18px 8px;
}

.top-nav {
    top: 12px;
    left: 50%;
    right: auto;
    width: min(820px, calc(100% - 24px));
    transform: translateX(-50%);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .09);
}

.nav-buttons {
    width: 100%;
    padding: 4px;
    gap: 4px;
    background: #eef2f7;
}

.nav-button {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 8px;
}

.nav-button.active {
    box-shadow: 0 5px 14px rgba(37, 99, 235, .26);
}

h1 {
    margin: 12px 0 22px;
    padding: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.25;
    letter-spacing: -.025em;
    text-align: center;
}

.energy-page,
.about-container,
.exchange-container {
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .07);
}

.price-info,
.rate-info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    width: 100%;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(110deg, #0284c7, #2563eb, #4f46e5, #0284c7);
    background-size: 300% 100%;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
    animation: telegramGlow 2.2s ease-in-out infinite, telegramGradient 5s linear infinite;
}

.price-info::before,
.rate-info::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: rotate(20deg);
    animation: telegramShine 3s ease-in-out infinite;
}

.price-info > *,
.rate-info > * {
    position: relative;
    z-index: 1;
}

.price-info button,
.rate-info button {
    float: none;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.price-info button:hover,
.rate-info button:hover {
    background: rgba(255, 255, 255, .26);
    transform: translateY(-1px);
}

.address-box {
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f8fbff, #eff6ff);
    box-shadow: inset 4px 0 0 #3b82f6;
}

.address-box > :first-child,
.address-box:not(:has(.address)) {
    color: #1d4ed8;
}

.hourly-rental-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    cursor: default;
}

.hourly-address-content {
    min-width: 0;
    padding: 6px 0;
    cursor: pointer;
}

.hourly-address-content .address {
    margin-bottom: 10px;
}

.hourly-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 132px;
    padding-left: 20px;
    border-left: 1px solid #bfdbfe;
    text-align: center;
}

.hourly-inline-price {
    margin-bottom: 8px;
    color: #1e3a8a;
    font-size: 13px;
    white-space: nowrap;
}

.hourly-inline-price strong {
    margin-right: 4px;
}

.inline-qr-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .12);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.inline-qr-button:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

#inlineHourlyQr,
#inlineHourlyQr img,
#inlineHourlyQr canvas,
#inlineExchangeQr,
#inlineExchangeQr img,
#inlineExchangeQr canvas {
    display: block;
}

.exchange-qr-panel {
    min-width: 190px;
}

.exchange-inline-rate {
    font-size: 12px;
}

.inline-qr-tip {
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
}

.address-tip {
    color: #475569;
}

.warning-list {
    border-color: #fde7c4;
    background: linear-gradient(135deg, #fffaf2, #fff7ed);
}

.table-container,
table {
    overflow: hidden;
    border-radius: 14px;
}

th {
    color: #334155;
    background: #eef4fb;
}

tr:hover td {
    background: #f8fbff;
}

#qrcodeOverlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#qrcodeModal {
    width: min(320px, calc(100% - 32px));
    padding: 24px !important;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28) !important;
}

#qrcode canvas,
#qrcode img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
}

#qrcodeAddress {
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .2s ease;
}

#qrcodeAddress:hover {
    background: #eff6ff;
}

.social-button {
    box-shadow: 0 8px 20px rgba(0, 136, 204, .25);
}

@media (max-width: 600px) {
    .container {
        padding: 84px 12px 6px;
    }

    .top-nav {
        top: 8px;
        width: calc(100% - 16px);
    }

    .nav-button {
        padding: 8px 6px;
        font-size: 12px;
    }

    .energy-page,
    .about-container,
    .exchange-container {
        padding: 16px;
        border-radius: 16px;
    }

    .price-info,
    .rate-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .price-info button,
    .rate-info button {
        float: none;
        width: 100%;
    }

    .address-box {
        margin: 16px 0;
    }

    .hourly-rental-card {
        gap: 10px;
        padding: 12px;
    }

    .hourly-qr-panel {
        min-width: 94px;
        padding-left: 10px;
    }

    .hourly-inline-price {
        font-size: 11px;
    }

    .exchange-qr-panel {
        min-width: 112px;
    }

    .exchange-inline-rate {
        max-width: 118px;
        white-space: normal;
        line-height: 1.4;
    }

    .inline-qr-button {
        padding: 4px;
    }

    .inline-qr-tip {
        font-size: 10px;
    }

    .social-buttons {
        right: 12px;
        top: auto;
        bottom: 18px;
    }
}

.telegram-ad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(824px, calc(100% - 24px));
    margin: 8px auto 24px;
    padding: 16px 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;
    color: #422006;
    background: linear-gradient(110deg, #f59e0b, #fde047, #fbbf24, #fff3a3, #f59e0b);
    background-size: 300% 100%;
    box-shadow: 0 10px 28px rgba(245, 158, 11, .34);
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    animation: goldGlow 2.2s ease-in-out infinite, telegramGradient 5s linear infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}

.telegram-ad::before {
    content: '';
    position: absolute;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: rotate(20deg);
    animation: telegramShine 3s ease-in-out infinite;
}

.telegram-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 38px rgba(245, 158, 11, .55);
}

.telegram-ad-icon {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    color: #168acd;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .9));
    animation: lightningFlash 1.1s ease-in-out infinite;
}

.telegram-ad::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0 47%, rgba(255,255,255,.8) 48%, transparent 49% 100%),
        linear-gradient(62deg, transparent 0 53%, rgba(255,246,185,.65) 54%, transparent 55% 100%),
        linear-gradient(138deg, transparent 0 42%, rgba(255,255,255,.55) 43%, transparent 44% 100%);
    background-size: 210px 100%, 290px 100%, 370px 100%;
    background-position: 0 0, 80px 0, 160px 0;
    background-repeat: repeat-x;
    filter: drop-shadow(0 0 2px rgba(255,255,255,.8)) drop-shadow(0 0 5px rgba(245,158,11,.6));
    animation: electricField 4.2s ease-in-out infinite;
}

.telegram-ad::after {
    display: none;
}

.telegram-lightning {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.telegram-ad > * {
    position: relative;
    z-index: 2;
}

.telegram-ad > .telegram-lightning {
    position: absolute;
    z-index: 1;
}

.telegram-ad-top {
    width: 100%;
    margin: 0 auto 18px;
}

@keyframes telegramGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(37, 99, 235, .24); }
    50% { box-shadow: 0 12px 34px rgba(79, 70, 229, .5); }
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(245, 158, 11, .3); }
    50% { box-shadow: 0 13px 36px rgba(251, 191, 36, .65); }
}

@keyframes lightningFlash {
    0%, 100% { opacity: .65; transform: scale(.92); }
    45% { opacity: 1; transform: scale(1.18); }
    52% { opacity: .45; }
    60% { opacity: 1; transform: scale(1.08); }
}

@keyframes electricField {
    0%, 100% { opacity: .12; background-position: 0 0, 80px 0, 160px 0; }
    35% { opacity: .42; background-position: 70px 0, 135px 0, 215px 0; }
    48% { opacity: .18; }
    58% { opacity: .5; background-position: 115px 0, 190px 0, 270px 0; }
    72% { opacity: .16; }
}

@keyframes telegramGradient {
    to { background-position: 300% 0; }
}

@keyframes telegramShine {
    0%, 35% { left: -35%; opacity: 0; }
    50% { opacity: 1; }
    75%, 100% { left: 120%; opacity: 0; }
}

@media (max-width: 600px) {
    .telegram-ad {
        width: calc(100% - 24px);
        margin: 6px auto 20px;
        padding: 14px 12px;
        border-radius: 14px;
    }

.telegram-ad-top {
        width: 100%;
        margin: 0 auto 14px;
    }
}

/* 当前选中导航：保持蓝色底色，仅叠加闪电效果 */
.nav-button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    animation: navLightningGlow 1.4s ease-in-out infinite;
}

.nav-button.active::before {
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0 39%, rgba(255,255,255,.95) 40% 41%, transparent 42% 100%),
        linear-gradient(62deg, transparent 0 54%, rgba(191,219,254,.9) 55% 56%, transparent 57% 100%),
        linear-gradient(142deg, transparent 0 66%, rgba(255,255,255,.8) 67% 68%, transparent 69% 100%);
    background-size: 72px 100%, 96px 100%, 124px 100%;
    animation: navElectricArcs 1.25s steps(2, end) infinite;
}

@keyframes navLightningGlow {
    0%, 100% { box-shadow: 0 5px 14px rgba(37, 99, 235, .28); }
    45% { box-shadow: 0 5px 16px rgba(96, 165, 250, .65), 0 0 8px rgba(255,255,255,.5); }
    52% { box-shadow: 0 5px 12px rgba(37, 99, 235, .3); }
    62% { box-shadow: 0 5px 18px rgba(147, 197, 253, .68), 0 0 10px rgba(255,255,255,.42); }
}

@keyframes navElectricArcs {
    0%, 100% { opacity: .12; background-position: 0 0, 18px 0, 45px 0; }
    20% { opacity: .85; background-position: 14px 0, 37px 0, 63px 0; }
    26% { opacity: .2; }
    32% { opacity: .72; background-position: 30px 0, 7px 0, 82px 0; }
    58% { opacity: .16; }
    64% { opacity: .9; background-position: 48px 0, 56px 0, 18px 0; }
    72% { opacity: .18; }
}

/* 提示框渐变闪动效果 */
.warning-list {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #fff7ed, #fffbeb, #fff1e6, #fff8dc, #fff7ed);
    background-size: 300% 100%;
    animation: warningGradient 6s linear infinite, warningGlow 2.6s ease-in-out infinite;
}

.warning-list::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: -60%;
    left: -30%;
    width: 20%;
    height: 220%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
    transform: rotate(18deg);
    animation: warningShine 3.8s ease-in-out infinite;
}

.warning-list li {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #c2410c, #ef4444, #7c3aed, #2563eb, #c2410c);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    animation: warningTextGradient 4s linear infinite;
}

.warning-list li a {
    background: inherit;
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: warningTextGradient 4s linear infinite;
    text-decoration-color: rgba(194, 65, 12, .7);
}

.warning-list li::before {
    color: #f59e0b;
    -webkit-text-fill-color: #f59e0b;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, .45));
}

@keyframes warningGradient {
    to { background-position: 300% 0; }
}

@keyframes warningTextGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes warningGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(245, 158, 11, .08); }
    50% { box-shadow: 0 7px 24px rgba(249, 115, 22, .24), 0 0 10px rgba(251, 191, 36, .14); }
}

@keyframes warningShine {
    0%, 35% { left: -30%; opacity: 0; }
    48% { opacity: .9; }
    72%, 100% { left: 120%; opacity: 0; }
}

/* 提示文字使用固定黑色 */
.warning-list li,
.warning-list li a {
    background: none;
    color: #111827;
    -webkit-text-fill-color: #111827;
    animation: none;
    font-weight: 600;
}

.warning-list li a {
    text-decoration-color: #111827;
}

.warning-list li::before {
    color: #f59e0b;
    -webkit-text-fill-color: #f59e0b;
}

.hourly-rental-card:not(.exchange-rental-card) .hourly-address-content .address-tip {
    font-weight: 600;
}
