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

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    button, .btn, a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.main-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.desktop-layout {
    display: grid;
    grid-template-columns: 380px 1fr 420px;
    gap: 20px;
    align-items: start;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 25px;
    width: 100%;
    height: fit-content;
}

.left-panel {
    position: sticky;
    top: 20px;
}

.middle-panel {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: visible;
}

.middle-panel::-webkit-scrollbar {
    width: 6px;
}

.middle-panel::-webkit-scrollbar-track {
    background: transparent;
}

.middle-panel::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.middle-panel::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.right-panel {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.right-panel::-webkit-scrollbar {
    width: 8px;
}

.right-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.right-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.panel-title {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

textarea {
    font-family: monospace;
}

input[type="text"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

/* 中间面板按钮样式 - 3D效果 */
.middle-panel button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    min-width: fit-content;
    padding: 11px 20px;
    color: white;
    border-radius: 0.6em;
    white-space: nowrap;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
    transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}

/* 置灰按钮样式 */
.middle-panel button.btn-disabled,
.middle-panel button:disabled:not([id$="Btn"]:disabled) {
    background: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
}

.middle-panel button.btn-disabled::before {
    display: none;
}

.button-group-card .button-row-2 button,
.button-group-card .button-row-3 button,
.subscription-actions .button-row-2 button {
    flex: 1;
    min-width: 0;
    width: auto;
}

.button-group-card .button-row-3 button {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 120px;
}

.middle-panel button::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 0.5em 0 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 0.5em 0 0 rgba(0, 0, 0, 0.1);
    -webkit-transform: translate3d(0, 0.5em, -1em);
    transform: translate3d(0, 0.5em, -1em);
    transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
    z-index: -1;
}

.middle-panel button:hover {
    -webkit-transform: translate(0, 0.25em);
    transform: translate(0, 0.25em);
}

.middle-panel button:hover::before {
    -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 0.4em 0 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 0.4em 0 0 rgba(0, 0, 0, 0.1);
    -webkit-transform: translate3d(0, 0.4em, -1em);
    transform: translate3d(0, 0.4em, -1em);
}

.middle-panel button:active {
    -webkit-transform: translate(0em, 0.5em);
    transform: translate(0em, 0.5em);
}

.middle-panel button:active::before {
    -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 0 rgba(0, 0, 0, 0.1);
    -webkit-transform: translate3d(0, 0, -1em);
    transform: translate3d(0, 0, -1em);
}

.middle-panel button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    opacity: 0.6;
}

.middle-panel button:disabled::before {
    display: none;
}

/* 左侧和右侧面板的按钮保持原样 */
.left-panel button,
.right-panel button {
    width: fit-content;
    min-width: fit-content;
    padding: 10px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.left-panel button:hover,
.right-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.left-panel button:active,
.right-panel button:active {
    transform: translateY(0);
}

.left-panel button:disabled,
.right-panel button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.button-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.button-grid > button {
    width: 100%;
    margin-bottom: 16px;
}

.button-section-title {
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    margin: 0 0 14px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

.button-group-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

.button-group-card:last-child {
    margin-bottom: 0;
}

.button-group-card .button-section-title {
    margin-top: 0;
    margin-bottom: 14px;
}

.subscription-actions {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
    margin-bottom: 0;
}

.subscription-actions-title {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffd6d6;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.button-row:last-child {
    margin-bottom: 0;
}

.button-row-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.button-row-3:last-child {
    margin-bottom: 0;
}

.button-row-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.button-row-2:last-child {
    margin-bottom: 0;
}

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

.btn-team {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-team-trial {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.btn-pro {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

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

.btn-promo {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.btn-free {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.result {
    padding: 0;
    border-radius: 10px;
}

.result-content-wrapper {
    padding: 20px;
    border-radius: 10px;
}

.result.success .result-content-wrapper {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result.error .result-content-wrapper {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result.info .result-content-wrapper {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.result-placeholder {
    text-align: center;
    color: #999;
    padding: 80px 20px;
}

.result-placeholder-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.result-placeholder-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
}

.result-placeholder-text {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.6;
}

.result-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.result-content {
    font-size: 14px;
    line-height: 1.6;
}

.checkout-link {
    margin-top: 15px;
}

.checkout-link a {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.checkout-link a:hover {
    background: #218838;
}

.json-data {
    margin-top: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.json-data pre {
    margin: 0;
    font-size: 12px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-paid {
    background: #28a745;
    color: white;
}

.status-unpaid {
    background: #ffc107;
    color: #333;
}

/* IP信息显示样式 - 嵌入输入面板 */
.ip-info-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    margin-top: 20px;
}

.ip-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.ip-info-content {
    flex: 1;
}

.ip-info-title {
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 6px;
    font-weight: 500;
}

.ip-info-main {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ip-info-details {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.4;
}

/* 炫酷刷新按钮样式 - From Uiverse.io */
.ip-refresh-btn {
    --black-700: hsla(250, 50%, 25% / 1);
    --border_radius: 8px;
    --transtion: 0.3s ease-in-out;
    --offset: 2px;

    cursor: pointer;
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;

    transform-origin: center;

    padding: 0.25rem 0.3rem;
    background-color: transparent;

    border: none;
    border-radius: var(--border_radius);
    transform: scale(calc(1 + (var(--active, 0) * 0.1)));

    transition: transform var(--transtion);
    min-width: fit-content;
}

.ip-refresh-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background-color: var(--black-700);

    border-radius: var(--border_radius);
    box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%),
        0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
        0 0 0 calc(var(--active, 0) * 0.375rem) hsl(260 97% 70% / 0.75);

    transition: all var(--transtion);
    z-index: 0;
}

.ip-refresh-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background-color: hsla(260 97% 61% / 0.75);
    background-image: radial-gradient(
            at 51% 89%,
            hsla(266, 45%, 74%, 1) 0px,
            transparent 50%
        ),
        radial-gradient(at 100% 100%, hsla(266, 36%, 60%, 1) 0px, transparent 50%),
        radial-gradient(at 22% 91%, hsla(266, 36%, 60%, 1) 0px, transparent 50%);
    background-position: top;

    opacity: var(--active, 0);
    border-radius: var(--border_radius);
    transition: opacity var(--transtion);
    z-index: 2;
}

.ip-refresh-btn:is(:hover, :focus-visible) {
    --active: 1;
}

.ip-refresh-btn:active {
    transform: scale(1);
}

.ip-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ip-refresh-btn:disabled:hover {
    --active: 0;
}

.ip-refresh-btn .dots_border {
    display: none;
}

.ip-refresh-btn .sparkle {
    position: relative;
    z-index: 10;
    width: 0.75rem;
    height: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ip-refresh-btn .sparkle .path {
    fill: currentColor;
    stroke: currentColor;
    transform-origin: center;
    color: hsl(0, 0%, 100%);
}

.ip-refresh-btn:is(:hover, :focus) .sparkle .path {
    animation: path 1.5s linear 0.5s infinite;
}

.ip-refresh-btn .sparkle .path:nth-child(1) {
    --scale_path_1: 1.3;
}

.ip-refresh-btn .sparkle .path:nth-child(2) {
    --scale_path_2: 1.3;
}

.ip-refresh-btn .sparkle .path:nth-child(3) {
    --scale_path_3: 1.3;
}

@keyframes path {
    0%, 34%, 71%, 100% {
        transform: scale(1);
    }
    17% {
        transform: scale(var(--scale_path_1, 1));
    }
    49% {
        transform: scale(var(--scale_path_2, 1));
    }
    83% {
        transform: scale(var(--scale_path_3, 1));
    }
}

.ip-refresh-btn .text_button {
    position: relative;
    z-index: 10;
    background-image: linear-gradient(
        90deg,
        hsla(0 0% 100% / 1) 0%,
        hsla(0 0% 100% / var(--active, 0)) 120%
    );
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 0.7rem;
    font-weight: 500;
    color: transparent;
    white-space: nowrap;
    text-align: center;
}

/* 加载状态 */
.ip-refresh-btn .ip-loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.ip-loading {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.country-flag {
    font-size: 18px;
}

/* 右侧帮助面板样式 */
.help-float {
    position: fixed;
    right: -100%;
    top: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #2d2d2d;
    box-shadow: -2px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    color: white;
    display: flex;
    flex-direction: column;
}

.help-float.open {
    right: 0;
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.help-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.help-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 20px;
}

.help-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.help-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    z-index: 999;
}

.help-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}

.help-toggle.hidden {
    display: none;
}

.help-toggle-icon {
    font-size: 28px;
}

.help-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 13px;
    line-height: 1.8;
}

.help-content::-webkit-scrollbar {
    width: 8px;
}

.help-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.help-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.help-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.help-content h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
}

.help-content strong {
    color: #ffd700;
}

.help-content ol {
    margin: 8px 0 0 20px;
    color: #f0f0f0;
}

.help-content code {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffd700;
    font-size: 12px;
}

.help-content a {
    color: #68d391;
    text-decoration: underline;
}

.help-method {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.help-method:last-child {
    border-bottom: none;
}

.help-code-block {
    display: block;
    background: rgba(255,255,255,0.15);
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    overflow-x: auto;
    font-size: 11px;
    color: #68d391;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: pre-wrap;
    word-break: break-all;
}

.help-button {
    display: inline-block;
    background: rgba(102,126,234,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 5px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.help-button:hover {
    background: rgba(118,75,162,0.9);
    transform: translateY(-1px);
}

.help-warning {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,193,7,0.25);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #fff3cd;
}

@media (min-width: 1400px) and (max-width: 1600px) {
    .desktop-layout {
        grid-template-columns: 360px 1fr 400px;
    }
}

@media (max-width: 1399px) {
    .desktop-layout {
        grid-template-columns: 340px 1fr 380px;
        gap: 16px;
    }

    .container {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .desktop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-panel, .middle-panel, .right-panel {
        position: static;
    }

    .middle-panel {
        overflow-x: visible;
        overflow-y: visible;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-wrapper {
        max-width: 100%;
    }

    .page-header {
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .page-header .subtitle {
        font-size: 12px;
    }

    .desktop-layout {
        gap: 12px;
    }

    .help-float {
        width: 100vw;
        max-width: 100vw;
    }

    .help-toggle {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .help-toggle-icon {
        font-size: 24px;
    }

    .help-content {
        padding: 15px;
        font-size: 12px;
    }

    .help-method {
        margin-bottom: 15px;
    }

    .container {
        padding: 15px;
        border-radius: 12px;
    }

    .panel-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .button-row, .button-row-3, .button-row-2 {
        flex-direction: column;
        gap: 10px;
    }

    .button-row > button,
    .button-row-3 > button,
    .button-row-2 > button {
        width: 100%;
    }

    .button-group-card {
        padding: 14px;
        margin-bottom: 14px;
    }

    .subscription-actions {
        padding: 14px;
        margin-top: 14px;
    }

    .button-section-title {
        font-size: 13px;
        margin: 0 0 12px 0;
    }

    .button-group-card .button-section-title {
        margin-bottom: 12px;
    }

    /* 移动端3D按钮效果调整 */
    .middle-panel button::before {
        -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 0.4em 0 0 rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 0.4em 0 0 rgba(0, 0, 0, 0.08);
        -webkit-transform: translate3d(0, 0.4em, -1em);
        transform: translate3d(0, 0.4em, -1em);
    }

    .middle-panel button:hover::before {
        -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 0.3em 0 0 rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 0.3em 0 0 rgba(0, 0, 0, 0.08);
        -webkit-transform: translate3d(0, 0.3em, -1em);
        transform: translate3d(0, 0.3em, -1em);
    }

    .middle-panel button {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* 飞镖靶移动端适配 */
    .dartboard-container {
        min-height: auto;
        padding: 5px 0;
        overflow-x: visible;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dartboard {
        width: 280px;
        height: 280px;
        min-width: 280px;
        min-height: 280px;
        flex-shrink: 0;
        margin: 0 auto;
        box-shadow: 0 0 0 5px #333, 0 0 0 8px #111, 0 0 0 10px #2a2a2a, 0 15px 40px rgba(0,0,0,0.5);
    }

    /* 中间面板在飞镖模式下的优化 */
    .middle-panel {
        padding: 12px;
    }

    /* 飞镖靶容器滚动条样式 */
    .dartboard-container::-webkit-scrollbar {
        height: 6px;
    }

    .dartboard-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .dartboard-container::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.5);
        border-radius: 3px;
    }

    .dartboard-container::-webkit-scrollbar-thumb:hover {
        background: rgba(102, 126, 234, 0.7);
    }

    /* 调整象限标签大小 */
    .quadrant-label {
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 10px;
    }

    /* 调整按钮大小 */
    .dartboard .btn {
        width: 40px;
        height: 40px;
        font-size: 8px;
        border: 1.5px solid #000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }

    /* 调整中心按钮 */
    .center-go-top {
        width: 55px;
        height: 55px;
        font-size: 24px;
        border: 2.5px solid #000;
        box-shadow: 
            0 0 0 2px #888,
            0 4px 15px rgba(0,0,0,0.7),
            inset 0 2px 5px rgba(255,255,255,0.3),
            inset 0 -3px 8px rgba(0,0,0,0.4);
    }

    /* 调整侧边按钮 */
    .side-buttons {
        width: 280px;
        height: 280px;
    }

    .center-btn-left,
    .center-btn-right {
        width: 85px;
        height: 38px;
        font-size: 13px;
        border: 2.5px solid #1a1a1a;
        border-radius: 12px;
    }

    .center-btn-left {
        left: 268px;
        top: -8px;
    }

    .center-btn-right {
        right: 95px;
        top: -8px;
    }

    /* 风格切换按钮 */
    .style-toggle-btn {
        padding: 8px 20px;
        font-size: 13px;
        margin-top: 12px;
    }

    .toggle-icon {
        font-size: 16px;
    }

    /* 输入框和表单元素优化 */
    .input-group {
        margin-bottom: 12px;
    }

    .input-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    textarea, input, select {
        font-size: 14px !important;
    }
}

/* 超小屏幕优化（手机竖屏） */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .main-wrapper {
        max-width: 100%;
    }

    .page-header {
        margin-bottom: 12px;
    }

    .page-header h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .page-header .subtitle {
        font-size: 11px;
    }

    .desktop-layout {
        gap: 10px;
    }

    .container {
        padding: 12px;
        border-radius: 10px;
    }

    .panel-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* 飞镖靶超小屏幕适配 */
    .dartboard-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 5px 0;
    }

    .middle-panel {
        padding: 10px;
    }

    .dartboard {
        width: 260px;
        height: 260px;
        min-width: 260px;
        min-height: 260px;
        flex-shrink: 0;
        box-shadow: 0 0 0 4px #333, 0 0 0 7px #111, 0 0 0 9px #2a2a2a, 0 12px 35px rgba(0,0,0,0.5);
    }

    .quadrant-label {
        font-size: 8px;
        padding: 2px 5px;
        border-radius: 8px;
    }

    .dartboard .btn {
        width: 38px;
        height: 38px;
        font-size: 7px;
    }

    .center-go-top {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border: 2px solid #000;
    }

    .side-buttons {
        width: 260px;
        height: 260px;
    }

    .center-btn-left,
    .center-btn-right {
        width: 75px;
        height: 35px;
        font-size: 12px;
        border: 2px solid #1a1a1a;
        border-radius: 10px;
    }

    .center-btn-left {
        left: 250px;
        top: -10px;
    }

    .center-btn-right {
        right: 90px;
        top: -10px;
    }

    /* 输入框优化 */
    .input-group {
        margin-bottom: 10px;
    }

    .input-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    textarea, input, select {
        font-size: 13px !important;
        padding: 8px;
    }

    textarea {
        min-height: 80px;
    }

    /* IP信息容器 */
    .ip-info-container {
        padding: 10px;
        margin-top: 10px;
    }

    .ip-info-title {
        font-size: 12px;
    }

    .ip-info-main {
        font-size: 14px;
    }

    .ip-info-details {
        font-size: 11px;
    }

    /* 帮助按钮 */
    .help-toggle {
        width: 45px;
        height: 45px;
        right: 10px;
        bottom: 10px;
    }

    .help-toggle-icon {
        font-size: 22px;
    }

    /* 风格切换按钮 */
    .style-toggle-btn {
        padding: 7px 18px;
        font-size: 12px;
        margin-top: 10px;
    }

    .toggle-icon {
        font-size: 14px;
    }

    /* 结果区域 */
    .result-placeholder-icon {
        font-size: 40px;
    }

    .result-placeholder-title {
        font-size: 16px;
    }

    .result-placeholder-text {
        font-size: 12px;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .dartboard {
        width: 240px;
        height: 240px;
        min-width: 240px;
        min-height: 240px;
        flex-shrink: 0;
    }

    .dartboard .btn {
        width: 36px;
        height: 36px;
        font-size: 7px;
    }

    .center-go-top {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .side-buttons {
        width: 240px;
        height: 240px;
    }

    .center-btn-left,
    .center-btn-right {
        width: 70px;
        height: 32px;
        font-size: 11px;
    }

    .center-btn-left {
        left: 230px;
        top: -12px;
    }

    .center-btn-right {
        right: 82px;
        top: -12px;
    }

    .quadrant-label {
        font-size: 7px;
        padding: 2px 4px;
    }
}

/* ==================== 飞镖模式样式 ==================== */
.style-toggle-btn {
    margin-top: 15px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.style-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.6);
}
.toggle-icon { font-size: 18px; }

.dartboard-container {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    padding: 20px 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}
.dartboard-container.active { display: flex; }
.button-grid.hidden { display: none; }

.dartboard {
    position: relative;
    width: 500px;
    height: 500px;
    min-width: 500px;
    min-height: 500px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: 0 0 0 8px #333, 0 0 0 12px #111, 0 0 0 16px #2a2a2a, 0 30px 80px rgba(0,0,0,0.5);
    margin: 0 auto;
}

/* 象限标签 */
.quadrant-label {
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    z-index: 15;
    white-space: nowrap;
    pointer-events: none;
}
.label-q1 {
    top: 6%;
    right: 6%;
    color: #4facfe;
    border-color: rgba(79, 172, 254, 0.5);
}
.label-q2 {
    top: 6%;
    left: 6%;
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.5);
}
.label-q3 {
    bottom: 6%;
    left: 6%;
    color: #fa709a;
    border-color: rgba(250, 112, 154, 0.5);
}
.label-q4 {
    bottom: 6%;
    right: 6%;
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.5);
}

.sectors-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg,#1a1a1a 0deg 18deg,#f0f0f0 18deg 36deg,#1a1a1a 36deg 54deg,#f0f0f0 54deg 72deg,#1a1a1a 72deg 90deg,#f0f0f0 90deg 108deg,#1a1a1a 108deg 126deg,#f0f0f0 126deg 144deg,#1a1a1a 144deg 162deg,#f0f0f0 162deg 180deg,#1a1a1a 180deg 198deg,#f0f0f0 198deg 216deg,#1a1a1a 216deg 234deg,#f0f0f0 234deg 252deg,#1a1a1a 252deg 270deg,#f0f0f0 270deg 288deg,#1a1a1a 288deg 306deg,#f0f0f0 306deg 324deg,#1a1a1a 324deg 342deg,#f0f0f0 342deg 360deg);
}
.outer-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg,#c8102e 0deg 18deg,#00853f 18deg 36deg,#c8102e 36deg 54deg,#00853f 54deg 72deg,#c8102e 72deg 90deg,#00853f 90deg 108deg,#c8102e 108deg 126deg,#00853f 126deg 144deg,#c8102e 144deg 162deg,#00853f 162deg 180deg,#c8102e 180deg 198deg,#00853f 198deg 216deg,#c8102e 216deg 234deg,#00853f 234deg 252deg,#c8102e 252deg 270deg,#00853f 270deg 288deg,#c8102e 288deg 306deg,#00853f 306deg 324deg,#c8102e 324deg 342deg,#00853f 342deg 360deg);
    -webkit-mask: radial-gradient(transparent 0%, transparent 80%, black 80%, black 85%, transparent 85%);
    mask: radial-gradient(transparent 0%, transparent 80%, black 80%, black 85%, transparent 85%);
}
.inner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg,#c8102e 0deg 18deg,#00853f 18deg 36deg,#c8102e 36deg 54deg,#00853f 54deg 72deg,#c8102e 72deg 90deg,#00853f 90deg 108deg,#c8102e 108deg 126deg,#00853f 126deg 144deg,#c8102e 144deg 162deg,#00853f 162deg 180deg,#c8102e 180deg 198deg,#00853f 198deg 216deg,#c8102e 216deg 234deg,#00853f 234deg 252deg,#c8102e 252deg 270deg,#00853f 270deg 288deg,#c8102e 288deg 306deg,#00853f 306deg 324deg,#c8102e 324deg 342deg,#00853f 342deg 360deg);
    -webkit-mask: radial-gradient(transparent 0%, transparent 35%, black 35%, black 40%, transparent 40%);
    mask: radial-gradient(transparent 0%, transparent 35%, black 35%, black 40%, transparent 40%);
}
.dividers { position: absolute; width: 100%; height: 100%; border-radius: 50%; }
.divider-line { position: absolute; width: 1px; height: 50%; background: #0a0a0a; left: 50%; top: 0; transform-origin: bottom center; }
.divider-line:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.divider-line:nth-child(2) { transform: translateX(-50%) rotate(18deg); }
.divider-line:nth-child(3) { transform: translateX(-50%) rotate(36deg); }
.divider-line:nth-child(4) { transform: translateX(-50%) rotate(54deg); }
.divider-line:nth-child(5) { transform: translateX(-50%) rotate(72deg); }
.divider-line:nth-child(6) { transform: translateX(-50%) rotate(90deg); }
.divider-line:nth-child(7) { transform: translateX(-50%) rotate(108deg); }
.divider-line:nth-child(8) { transform: translateX(-50%) rotate(126deg); }
.divider-line:nth-child(9) { transform: translateX(-50%) rotate(144deg); }
.divider-line:nth-child(10) { transform: translateX(-50%) rotate(162deg); }
.divider-line:nth-child(11) { transform: translateX(-50%) rotate(180deg); }
.divider-line:nth-child(12) { transform: translateX(-50%) rotate(198deg); }
.divider-line:nth-child(13) { transform: translateX(-50%) rotate(216deg); }
.divider-line:nth-child(14) { transform: translateX(-50%) rotate(234deg); }
.divider-line:nth-child(15) { transform: translateX(-50%) rotate(252deg); }
.divider-line:nth-child(16) { transform: translateX(-50%) rotate(270deg); }
.divider-line:nth-child(17) { transform: translateX(-50%) rotate(288deg); }
.divider-line:nth-child(18) { transform: translateX(-50%) rotate(306deg); }
.divider-line:nth-child(19) { transform: translateX(-50%) rotate(324deg); }
.divider-line:nth-child(20) { transform: translateX(-50%) rotate(342deg); }

.dartboard .btn {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fafafa 0%, #d0d0d0 100%);
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.6);
    font-weight: bold;
    font-size: 10px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}
.dartboard .btn:hover {
    transform: scale(1.2);
    border-color: #c8102e;
    background: radial-gradient(circle, #fff 0%, #e0e0e0 100%);
    z-index: 20;
}

.btn-q1-1 { top: 5%; right: 33%; }
.btn-q1-2 { top: 13%; right: 13%; }
.btn-q1-3 { top: 23%; right: 35%; }
.btn-q1-4 { top: 30%; right: 13%; }
.btn-q2-1 { top: 5%; left: 33%; }
.btn-q2-2 { top: 13%; left: 13%; }
.btn-q2-3 { top: 23%; left: 35%; }
.btn-q2-4 { top: 30%; left: 13%; }
.btn-q3-1 { bottom: 5%; left: 26%; }
.btn-q3-2 { bottom: 32%; left: 13%; }
.btn-q3-3 { bottom: 22%; left: 36%; }
.btn-q4-1 { bottom: 18%; right: 10%; }
.btn-q4-2 { bottom: 8%; right: 26%; }
.btn-q4-3 { bottom: 33%; right: 13%; }
.btn-q4-4 { bottom: 25%; right: 36%; }

.center-area {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    z-index: 30;
}
.center-go-top {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #c8102e 0%, #a00d25 100%);
    border: 4px solid #000;
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px #888,
        0 6px 20px rgba(0,0,0,0.7),
        inset 0 2px 5px rgba(255,255,255,0.3),
        inset 0 -3px 8px rgba(0,0,0,0.4);
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.center-go-top:hover {
    background: radial-gradient(circle, #d81f3c 0%, #c8102e 100%);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 
        0 0 0 3px #888,
        0 10px 30px rgba(0,0,0,0.9),
        inset 0 2px 5px rgba(255,255,255,0.4),
        inset 0 -3px 8px rgba(0,0,0,0.5);
    z-index: 35;
}

/* 上方左右两边的取消恢复按钮 */
.side-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
}
.center-btn-left,
.center-btn-right {
    position: absolute;
    width: 104px;
    height: 40px;
    border: 5px solid #1a1a1a;
    border-radius: 18px;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 2px 6px rgba(255,255,255,0.25),
        inset 0 -3px 8px rgba(0,0,0,0.3);
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    pointer-events: all;
    z-index: 25;
    padding: 0;
    line-height: 1;
}
.center-btn-left {
    left: 400px;
    top: -20px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.center-btn-right {
    right: 90px;
    top: -20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.center-btn-left:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 2px 6px rgba(255,255,255,0.3),
        inset 0 -2px 6px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.center-btn-right:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 2px 6px rgba(255,255,255,0.3),
        inset 0 -2px 6px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.dart {
    position: fixed;
    width: 60px;
    height: 8px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
}
.dart-body {
    position: absolute;
    width: 35px;
    height: 8px;
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    border-radius: 0 4px 4px 0;
    right: 0;
}
.dart-tip {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 12px solid #888;
    right: 35px;
}
.dart-flight {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid #00853f;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    left: 0;
    top: -2px;
}

@keyframes dartFly {
    0% { opacity: 1; transform: translate(var(--start-x), var(--start-y)) rotate(var(--angle)) scale(1.5); }
    70% { opacity: 1; transform: translate(var(--end-x), var(--end-y)) rotate(var(--angle)) scale(1); }
    100% { opacity: 0; transform: translate(var(--end-x), var(--end-y)) rotate(var(--angle)) scale(0.8); }
}
.dart.flying { animation: dartFly 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes hitEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.85); box-shadow: 0 2px 8px rgba(200, 16, 46, 0.9); }
    100% { transform: scale(1); }
}
.dartboard .btn.hit { animation: hitEffect 0.4s ease; }

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}
.ripple-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.7) 0%, rgba(200, 16, 46, 0) 70%);
    pointer-events: none;
    animation: ripple 0.6s ease-out forwards;
}

/* Token 刷新工具样式 */
.token-refresh-section {
    background: white;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.token-refresh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.token-refresh-header:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.token-refresh-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.toggle-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.token-refresh-content {
    padding: 15px;
    display: block;
}

.token-refresh-result {
    margin-top: 15px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.token-section {
    margin-bottom: 12px;
    position: relative;
}

.token-section:last-child {
    margin-bottom: 0;
}

.token-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.token-section textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    resize: vertical;
}

.copy-btn {
    margin-top: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}
