* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 泡泡容器 */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 泡泡样式 */
.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: bubbleFadeIn 0.6s ease-out forwards;
}

.bubble:hover {
    transform: scale(1.1);
}

/* 泡泡淡入动画 */
@keyframes bubbleFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    position: relative;
    min-height: 100vh;
    padding: 20px;
}

/* 桌面版隐藏手机版专属元素 */
.login-icon,
.login-subtitle,
.feature-tags,
.button-arrow,
.login-tip,
.mobile-title,
.mobile-features {
    display: none;
}

.desktop-title {
    display: block;
}

h1 {
    font-size: 48px;
    font-family: 'Poppins', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.4;
    animation: gradientShift 3s ease infinite, titleEntrance 1.2s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 渐变变色动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 标题出场动画 */
@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        filter: blur(0px);
    }

    80% {
        transform: scale(1.05) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    animation: buttonEntrance 0.8s ease-out 0.6s forwards;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: buttonEntrance 0.8s ease-out 0.6s forwards, gradientShift 3s ease infinite;
}

/* 按钮出场动画 */
@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}


/* 输入框样式 */
.phone-input,
.password-input {
    display: none;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    outline: none;
    width: 280px;
    text-align: center;
    color: #667eea;
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    margin-top: 12px;
}

.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.phone-input::placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.phone-input:focus {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 用户界面样式 */
.dashboard {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #f5f7fa;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow: hidden;
}

.dashboard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.03) 0%, transparent 25%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.sidebar {
    width: 240px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 100% 200%;
    animation: sidebarGradient 3s ease infinite;
    opacity: 0.3;
}

@keyframes sidebarGradient {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 30px;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    text-decoration: none;
    border: none;
    border-bottom: none !important;
    outline: none;
}

.logo::before,
.logo::after {
    display: none !important;
    content: none !important;
}

/* 桌面版也隐藏emoji，只显示RongWeb */
.logo .logo-text {
    font-size: 0;
}

.logo .logo-text::before {
    content: 'RongWeb';
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    text-decoration: none;
    border: none;
    border-bottom: none;
}

.logo:hover {
    color: #764ba2;
    transform: scale(1.05);
    text-decoration: none;
    border: none;
    border-bottom: none !important;
    outline: none;
}

.logo:hover .logo-text::before {
    color: #764ba2;
    text-decoration: none;
    border: none;
    border-bottom: none;
}

.logo:hover::before,
.logo:hover::after {
    display: none !important;
    content: none !important;
}

/* 确保logo下方的menu-label不会在hover时显示边框 */
.menu-section:first-child .menu-label {
    border-top: none !important;
}

.logo + .menu .menu-section:first-child .menu-label {
    border-top: none !important;
}

.menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 隐藏侧边栏滚动条 */
.sidebar::-webkit-scrollbar,
.menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.menu::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.menu::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

.menu-section {
    margin-bottom: 30px;
}

.menu-label {
    padding: 0 20px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    color: #667eea;
    transform: translateX(5px);
}

.menu-item:hover .menu-icon {
    transform: scale(1.2) rotate(5deg);
}

.menu-icon {
    transition: transform 0.3s ease;
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    border-left: 3px solid #667eea;
    font-weight: 600;
}

.menu-item.active .menu-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.menu-icon {
    font-size: 18px;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 50px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
}

/* 渐变滚动条样式 - 桌面版 */
.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(245, 247, 250, 0.5);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 100% 200%;
    border-radius: 10px;
    border: 2px solid rgba(245, 247, 250, 0.5);
    animation: scrollbarGradient 3s ease infinite;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(245, 247, 250, 0.3);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes scrollbarGradient {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

/* Firefox 滚动条样式 */
.main-content {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(245, 247, 250, 0.5);
}

/* 购买页面样式 */
.purchase-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.purchase-content {
    flex: 1;
    min-width: 0;
    padding-right: 24px; /* 确保内容不被右侧账单面板遮挡 */
    box-sizing: border-box;
    overflow-x: hidden; /* 防止内容溢出 */
}

.back-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
    flex-shrink: 0;
}

.back-button span:first-child {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

.back-button:hover span:first-child {
    transform: translateX(-4px);
}

.purchase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.purchase-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.5px;
}

.package-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.info-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: #1a1a2e;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 700;
}

.info-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.config-section {
    margin-bottom: 36px;
}

.config-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon {
    color: #667eea;
    font-size: 18px;
}

.location-summary {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.location-summary span {
    font-weight: 600;
    color: #374151;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e5e7eb;
    border-radius: 50%;
    font-size: 12px;
    color: #6b7280;
    cursor: help;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #667eea;
    color: white;
}

.bandwidth-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bandwidth-btn {
    padding: 20px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bandwidth-btn:hover:not(.disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.bandwidth-btn.active {
    background: white;
    border-color: #667eea;
    border-width: 3px;
    color: #374151;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    font-weight: 700;
}



.bandwidth-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
    background: #f9fafb;
    pointer-events: none;
}

.bandwidth-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

.coming-soon {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    font-weight: 500;
}

.bandwidth-btn.active .coming-soon {
    color: rgba(255, 255, 255, 0.85);
}

.proxy-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.proxy-btn {
    padding: 18px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.proxy-btn .proxy-count {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.proxy-btn .proxy-price {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
}

.proxy-btn:hover:not(.disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.proxy-btn.active {
    background: white;
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    position: relative;
}

.proxy-btn.active .proxy-count {
    color: #374151;
    font-weight: 600;
}

.proxy-btn.active .proxy-price {
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}





.proxy-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    pointer-events: none;
}

.proxy-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

.proxy-btn.disabled .proxy-price {
    color: #ef4444;
}

.proxy-btn.custom-btn {
    border-style: dashed;
    border-color: #c7d2fe;
    cursor: default;
    padding: 16px 14px;
    background: white;
}

.proxy-btn.custom-btn:hover {
    border-color: #a5b4fc;
    background: white;
    transform: none;
}

.proxy-btn.custom-btn .proxy-count {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 4px;
}

.proxy-btn.custom-btn .custom-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
    color: #374151;
    -moz-appearance: textfield;
    appearance: textfield;
}

.proxy-btn.custom-btn .custom-input::-webkit-outer-spin-button,
.proxy-btn.custom-btn .custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.proxy-btn.custom-btn .custom-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.proxy-btn.custom-btn .custom-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.proxy-btn.custom-btn .proxy-count.error {
    color: #ef4444;
}

.proxy-btn.custom-btn .proxy-count.success {
    color: #667eea;
    font-size: 13px;
}

.proxy-btn.custom-btn.active {
    background: white;
    border-color: #667eea;
    border-style: dashed;
    border-width: 3px;
}

.proxy-btn.custom-btn.active .proxy-count {
    color: #667eea;
}

.proxy-btn.custom-btn.active .custom-input {
    border-color: #667eea;
    background: white;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* 数据中心代理的国家网格 - 自适应布局，更紧凑 */
.location-grid.datacenter-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.location-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}

/* 数据中心代理的国家按钮 - 紧凑样式 */
.datacenter-grid .location-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    min-height: auto;
    border-radius: 10px;
}

.datacenter-grid .location-btn .flag-img {
    width: 28px;
    height: 21px;
    border-radius: 4px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.datacenter-grid .location-btn .country {
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #374151;
    line-height: 1.5;
    min-height: 2.8em;
    display: flex;
    align-items: center;
}

.datacenter-grid .location-btn .count {
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
}

.datacenter-grid .location-btn.active .count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 700;
}

.datacenter-grid .location-btn:hover .flag-img {
    transform: scale(1.05);
}

.location-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.location-btn.active {
    background: white;
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    position: relative;
}



.location-btn .flag {
    font-size: 40px;
}

.location-btn .flag-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.location-btn:hover .flag-img {
    transform: scale(1.1);
}

.location-btn.active .flag-img {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.location-btn .country {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    padding: 0 4px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-btn .count {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
}

/* 国家数量输入框 */
.location-btn .count-input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    color: #374151;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 隐藏number输入框的上下箭头 */
.location-btn .count-input::-webkit-outer-spin-button,
.location-btn .count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.location-btn .count-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.location-btn .count-input:disabled {
    background: #f9fafb;
    cursor: not-allowed;
}

/* 有分配的国家卡片高亮 */
.location-btn.has-allocation {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
}

.location-btn.has-allocation .count-input {
    background: white;
    border-color: #667eea;
    color: #667eea;
    font-weight: 700;
}

/* 数据中心网格的输入框样式 - 桌面端保持横向布局 */
.datacenter-grid .location-btn .count-input {
    width: 45px;
    padding: 3px 6px;
    font-size: 12px;
}

@media (min-width: 769px) {
    .datacenter-grid .location-btn .count-input {
        width: 45px;
        padding: 3px 6px;
        font-size: 12px;
    }
}

.order-summary {
    width: 340px;
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 30px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.order-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.summary-item .label {
    color: #6b7280;
    font-weight: 500;
}

.summary-item .value {
    color: #1a1a2e;
    font-weight: 600;
}

.summary-tip {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
    line-height: 1.5;
}

.change-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.change-link:hover {
    color: #764ba2;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    font-size: 16px;
    font-weight: 700;
}

.summary-total .price {
    font-size: 28px;
    color: #667eea;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.4);
}

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

.payment-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.payment-info>span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 600;
}

.payment-info-header {
    margin-bottom: 12px;
}

.payment-info-header span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.selected-regions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-region {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.selected-region:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.region-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-region .flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-region .flag img {
    width: 28px;
    height: 21px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.country-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.allocated-count {
    font-size: 13px;
    color: #667eea;
    font-weight: 700;
}

.content-page {
    width: 100%;
    max-width: 1400px;
}

.content-page h2 {
    font-size: 48px;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 64px;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
}

/* 订阅页面特殊样式 */
#page-subscription {
    max-width: 900px;
}

.plans,
.plans-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.plan-card::before,
.plan-card::after {
    display: none;
}

.plan-card>* {
    position: relative;
    z-index: 1;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.plan-card.featured {
    border: 1px solid #667eea;
    background: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.plan-card.featured::before {
    display: none;
}

.plan-card.featured:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.plan-badge.recommended {
    background: #667eea;
}

.plan-card h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: none;
}

.plan-card:hover h3 {
    color: #111827;
    transform: none;
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1;
    transition: none;
    display: inline-block;
    width: auto;
}

.plan-card:hover .plan-price {
    transform: none;
}

.plan-price span {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.plan-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: none;
    border: none;
}

.plan-card:hover .plan-tag {
    transform: none;
    background: #e0e7ff;
    border-color: transparent;
}

.plan-tag.success {
    background: #d1fae5;
    color: #065f46;
}

.plan-card:hover .plan-tag.success {
    background: #d1fae5;
    border-color: transparent;
}

.plan-desc {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 15px;
    transition: none;
}

.plan-card:hover .plan-desc {
    color: #6b7280;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: none;
}

.plan-card:hover .plan-features {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.plan-features li {
    padding: 10px 0;
    color: #374151;
    position: relative;
    padding-left: 28px;
    font-size: 15px;
}

.plan-card:hover .plan-features li {
    transform: none;
}

.plan-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
}

.plan-button {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    letter-spacing: 0.3px;
    position: relative;
}

.plan-button::before {
    display: none;
}

.plan-button:hover {
    background: #5568d3;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: none;
}

.plan-button:active {
    transform: none;
}

.plan-button.featured {
    background: #667eea;
}

.plan-button.featured:hover {
    background: #5568d3;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: none;
}

/* 波纹动画 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 添加平滑滚动 */
.main-content {
    scroll-behavior: smooth;
}

/* 添加页面切换动画 */
.content-page {
    animation: pageSlideIn 0.5s ease-out;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* 购买页面元素进入动画 */
.purchase-content>* {
    animation: fadeInUp 0.6s ease-out backwards;
}

.back-nav {
    animation-delay: 0.1s;
}

.info-box {
    animation-delay: 0.2s;
}

.config-section:nth-of-type(1) {
    animation-delay: 0.3s;
}

.config-section:nth-of-type(2) {
    animation-delay: 0.4s;
}

.config-section:nth-of-type(3) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.order-summary {
    animation: fadeInRight 0.6s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* 响应式设计 */
/* 大屏幕（电脑版）字体放大，提升可读性 */
@media (min-width: 1401px) {
    /* 套餐选择页面字体放大 */
    .plan-card h3 {
        font-size: 30px;
    }
    
    .plan-price {
        font-size: 56px;
    }
    
    .plan-price span {
        font-size: 18px;
    }
    
    .plan-tag {
        font-size: 14px;
        padding: 6px 14px;
    }
    
    .plan-desc {
        font-size: 18px;
    }
    
    .plan-features {
        padding: 24px;
    }
    
    .plan-features li {
        font-size: 18px;
        padding: 12px 0;
        padding-left: 32px;
    }
    
    .plan-features li:before {
        font-size: 18px;
    }
    
    .plan-button {
        font-size: 18px;
        padding: 16px;
    }
    
    .content-page h2 {
        font-size: 56px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    /* 购买配置页面字体放大 */
    .purchase-header h1 {
        font-size: 34px;
    }
    
    .package-badge {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .info-icon {
        font-size: 28px;
    }
    
    .info-content strong {
        font-size: 18px;
    }
    
    .info-content p {
        font-size: 16px;
    }
    
    .config-section h3 {
        font-size: 20px;
    }
    
    .location-icon {
        font-size: 22px;
    }
    
    .location-summary {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .bandwidth-btn {
        font-size: 18px;
        padding: 24px 20px;
        min-height: 80px;
    }
    
    .proxy-btn {
        font-size: 18px;
    }
    
    .location-btn .country {
        font-size: 20px;
    }
    
    .location-btn .count {
        font-size: 15px;
    }
    
    .location-btn .count-input {
        font-size: 17px;
        padding: 10px 14px;
    }
    
    .datacenter-grid .location-btn .count-input {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .back-button {
        font-size: 16px;
    }
    
    /* 账单区域字体放大 */
    .order-summary {
        padding: 28px;
    }
    
    .order-summary h3,
    .summary-header h3 {
        font-size: 22px;
    }
    
    .summary-header a {
        font-size: 14px;
    }
    
    .summary-item {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .summary-item .label {
        font-size: 15px;
    }
    
    .summary-item .value {
        font-size: 16px;
    }
    
    .summary-total {
        font-size: 18px;
        margin: 28px 0;
    }
    
    .summary-total .price {
        font-size: 32px;
    }
    
    .checkout-btn {
        font-size: 18px;
        padding: 20px;
    }
    
    .payment-info-header span {
        font-size: 14px;
    }
    
    .selected-region {
        padding: 14px 16px;
    }
    
    .selected-region .flag img {
        width: 32px;
        height: 24px;
    }
    
    .country-name {
        font-size: 17px;
    }
    
    .allocated-count {
        font-size: 15px;
    }
    
    /* 代理选项按钮字体放大 */
    .proxy-btn .proxy-count {
        font-size: 18px;
    }
    
    .proxy-btn .proxy-price {
        font-size: 14px;
    }
    
    .proxy-btn.custom-btn .custom-input {
        font-size: 16px;
    }
}

@media (max-width: 1400px) {
    .main-content {
        padding: 40px 30px;
    }
}

@media (max-width: 1200px) {
    .purchase-layout {
        gap: 30px;
    }

    .purchase-content {
        padding-right: 20px; /* 小屏幕时保持适当右边距 */
    }

    .order-summary {
        width: 300px;
    }

    .bandwidth-options,
    .proxy-options {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 国家选择网格自适应调整 */
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .location-grid.datacenter-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .main-content {
        padding: 40px 25px;
    }
}

@media (max-width: 768px) {
    .plans {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .purchase-layout {
        flex-direction: column;
        gap: 30px;
    }

    .purchase-content {
        padding-right: 0; /* 手机版不需要右边距 */
        width: 100%;
        order: 1; /* 将内容放在前面 */
    }

    .order-summary {
        width: 100%;
        position: static;
        max-width: 600px;
        margin: 0 auto;
        order: 999; /* 将账单放在最后面 */
    }

    .bandwidth-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .proxy-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 手机版国家选择网格自适应 */
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    /* 数据中心代理在手机版使用更紧凑的自适应布局 */
    .location-grid.datacenter-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .main-content {
        padding: 35px 20px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .purchase-content {
        padding-right: 18px; /* 中等屏幕保持适当右边距 */
    }

    .bandwidth-options,
    .proxy-options {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 中等屏幕国家选择网格自适应 */
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .location-grid.datacenter-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 8px;
    }
}

/* 移动端back-nav样式 */
@media (max-width: 768px) {
    .back-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .back-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    .purchase-header {
        width: 100%;
    }

    .purchase-header h1 {
        font-size: 22px;
    }

    .package-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: 100vh;
        min-height: -webkit-fill-available;
        background: #ffffff; /* 手机版改为白色背景，移除紫色渐变 */
        align-items: flex-start;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* 强制高清渲染 */
    * {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
        font-smooth: always !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    body::before {
        display: none; /* 手机版隐藏伪元素背景，移除紫色效果 */
    }

    .bubbles {
        display: none; /* 手机版隐藏泡泡，保持界面整洁 */
        z-index: 1;
    }

    .bubble {
        opacity: 0.4;
    }

    .container {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        padding: 32px 24px 44px;
        border-radius: 0 0 40px 40px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
        margin: 0;
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        z-index: 100;
        animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        border: 1px solid rgba(255, 255, 255, 0.6);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        will-change: transform;
        min-height: calc(100vh - 20px);
    }

    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

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

    /* 显示手机版专属元素 */
    .login-icon {
        display: block;
        margin-bottom: 16px;
        margin-top: 0;
        animation: bounce 2s ease-in-out infinite;
    }

    .favicon-icon {
        width: 64px;
        height: 64px;
        display: block;
        margin: 0 auto;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    }

    @keyframes bounce {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    .desktop-title {
        display: none;
    }

    .mobile-title {
        display: block;
        font-size: 38px;
        letter-spacing: -0.5px;
        padding: 0;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-size: 200% 200%;
        animation: gradientShift 3s ease infinite;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
        line-height: 1.2;
        opacity: 1;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        will-change: transform;
    }
    
    @keyframes gradientShift {
        0%, 100% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
    }

    .login-subtitle {
        display: block;
        font-size: 16px;
        color: #6b7280;
        margin-bottom: 24px;
        font-weight: 500;
        letter-spacing: 0.3px;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-font-smoothing: antialiased;
    }

    .feature-tags {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    .feature-tag {
        display: inline-block;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #667eea;
        border-radius: 24px;
        font-size: 14px;
        font-weight: 700;
        border: 2px solid rgba(102, 126, 234, 0.25);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
        transition: all 0.3s ease;
        -webkit-font-smoothing: antialiased;
    }
    
    .feature-tag:active {
        transform: scale(0.96);
        border-color: rgba(102, 126, 234, 0.4);
    }

    .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        padding: 20px 45px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-size: 200% 200%;
        animation: gradientShift 3s ease infinite;
        color: white;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35), 0 4px 12px rgba(118, 75, 162, 0.25);
        border-radius: 28px;
        font-weight: 700;
        margin-top: 0;
        margin-bottom: 0;
        border: none;
        -webkit-text-fill-color: white;
        background-clip: padding-box;
        width: 100%;
        max-width: 100%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-appearance: none;
        appearance: none;
        will-change: transform;
        -webkit-font-smoothing: antialiased;
        letter-spacing: 0.5px;
    }

    .button-arrow {
        display: inline-block;
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .button:hover .button-arrow {
        transform: translateX(5px);
    }

    .button:active {
        transform: scale(0.97) translateY(1px);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }

    .phone-input {
        width: 100%;
        max-width: 100%;
        font-size: 18px;
        padding: 20px 24px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 2px solid rgba(102, 126, 234, 0.25);
        color: #1a1a2e;
        border-radius: 20px;
        font-weight: 600;
        margin-top: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-appearance: none;
        appearance: none;
        will-change: transform;
        -webkit-font-smoothing: antialiased;
    }

    .phone-input:focus {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(102, 126, 234, 0.7);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2), 0 0 0 4px rgba(102, 126, 234, 0.08);
        transform: translateY(-2px);
        outline: none;
    }

    .phone-input::placeholder {
        color: rgba(102, 126, 234, 0.6);
        background: none;
        -webkit-text-fill-color: rgba(102, 126, 234, 0.6);
        font-weight: 500;
    }

    .phone-input.error {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.8);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2), 0 0 0 3px rgba(239, 68, 68, 0.1);
        animation: shake 0.5s ease-in-out;
    }

    .phone-input.error::placeholder {
        color: rgba(239, 68, 68, 0.9);
        -webkit-text-fill-color: rgba(239, 68, 68, 0.9);
        font-weight: 600;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        10%,
        30%,
        50%,
        70%,
        90% {
            transform: translateX(-5px);
        }

        20%,
        40%,
        60%,
        80% {
            transform: translateX(5px);
        }
    }

    .login-tip {
        display: block;
        font-size: 14px;
        color: #9ca3af;
        margin-top: 16px;
        margin-bottom: 24px;
        font-weight: 500;
    }

    .mobile-features {
        display: flex;
        justify-content: space-around;
        margin-top: 32px;
        padding-top: 28px;
        border-top: 2px solid rgba(102, 126, 234, 0.12);
        animation: fadeInUp 0.8s ease-out 0.4s both;
        gap: 12px;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    .feature-item {
        text-align: center;
        flex: 1;
        padding: 12px 8px;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 16px;
        border: 1px solid rgba(102, 126, 234, 0.1);
        transition: all 0.3s ease;
    }
    
    .feature-item:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.8);
    }

    .feature-number {
        font-size: 28px;
        font-weight: 900;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-size: 200% 200%;
        animation: gradientShift 3s ease infinite, pulse 2s ease-in-out infinite;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 6px;
        letter-spacing: -0.5px;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }
    }

    .feature-label {
        font-size: 13px;
        color: #6b7280;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    .dashboard {
        flex-direction: column;
        overflow: hidden;
        background: #f8f9fa;
        min-height: -webkit-fill-available;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 16px 0 12px;
        background: white;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
        border-radius: 0 0 24px 24px;
    }

    .logo {
        padding: 0 20px 14px;
        font-size: 20px;
        font-weight: 800;
        justify-content: center;
        color: #667eea;
        font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
        -webkit-font-smoothing: antialiased;
        letter-spacing: 0.5px;
    }

    /* 隐藏手机版logo中的emoji */
    .logo .logo-text {
        font-size: 0;
    }

    .logo .logo-text::before {
        content: 'RongWeb';
        font-size: 20px;
        font-weight: 800;
        color: #667eea;
    }

    @keyframes mobileLogoGradient {

        0%,
        100% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }
    }

    .menu {
        display: flex;
        justify-content: center;
        padding: 0 16px;
        gap: 8px;
    }

    .menu-section {
        display: flex;
        gap: 8px;
        margin-bottom: 0;
    }

    .menu-label {
        display: none;
    }

    .menu-item {
        white-space: nowrap;
        padding: 10px 16px;
        border-radius: 16px;
        font-size: 13px;
        gap: 6px;
        background: #f8f9fa;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .menu-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-left: none;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

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

    .main-content {
        padding: 20px 16px 16px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        display: block;
        background: #f8f9fa;
    }

    /* 移动端隐藏滚动条 */
    .main-content::-webkit-scrollbar {
        display: none;
    }

    .content-page {
        max-width: 100%;
        height: 100%;
    }

    .content-page h2 {
        font-size: 24px;
        margin-bottom: 12px;
        font-weight: 700;
        color: #111827;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        letter-spacing: -0.5px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 28px;
        color: #6b7280;
        line-height: 1.6;
        font-weight: 500;
        padding: 0 10px;
    }

    .plans {
        gap: 18px;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 20px;
        width: 100%;
    }

    .plans-container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 18px;
        width: 100%;
    }

    .plan-card {
        padding: 26px 22px;
        border-radius: 20px;
        flex-shrink: 0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
        background: #ffffff;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        will-change: transform;
        margin-bottom: 0;
        width: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .plan-card:hover {
        transform: none;
    }

    .plan-card.featured {
        background: #ffffff;
        border: 2px solid #667eea;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    }

    .plan-badge {
        top: 22px;
        right: 22px;
        font-size: 10px;
        padding: 5px 10px;
        border-radius: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .plan-card h3 {
        font-size: 22px;
        margin-bottom: 14px;
        font-weight: 800;
        -webkit-font-smoothing: antialiased;
        letter-spacing: -0.3px;
        color: #111827;
        line-height: 1.2;
    }

    .plan-price {
        font-size: 36px;
        margin-bottom: 12px;
        font-weight: 700;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        letter-spacing: -1px;
        line-height: 1.1;
        display: block;
        color: #111827;
    }

    .plan-price span {
        font-size: 15px;
        color: #6b7280;
        font-weight: 600;
    }

    .plan-tag {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 16px;
        border-radius: 12px;
        font-weight: 700;
        letter-spacing: 0.3px;
        display: inline-block;
    }

    .plan-desc {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.6;
        color: #6b7280;
        font-weight: 500;
        -webkit-font-smoothing: antialiased;
    }

    .plan-features {
        margin-bottom: 20px;
        background: #f9fafb;
        padding: 14px 12px;
        border-radius: 14px;
        border: 1px solid #e5e7eb;
    }

    .plan-features li {
        font-size: 13px;
        padding: 5px 0;
        padding-left: 24px;
        color: #374151;
        font-weight: 600;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }

    .plan-features li:before {
        font-size: 13px;
        color: #667eea;
        font-weight: 900;
    }

    .plan-button {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        letter-spacing: 0.2px;
        -webkit-font-smoothing: antialiased;
        width: 100%;
        margin-top: 8px;
    }

    .plan-button:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 0;
    }

    .container {
        padding: 22px 25px 35px;
        border-radius: 0 0 32px 32px;
    }

    .login-icon {
        margin-bottom: 10px;
        margin-top: 0;
    }

    .favicon-icon {
        width: 50px;
        height: 50px;
    }

    .mobile-title {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .login-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .feature-tags {
        gap: 6px;
        margin-bottom: 22px;
    }

    .feature-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .button {
        font-size: 16px;
        padding: 17px 40px;
        border-radius: 22px;
    }

    .phone-input {
        font-size: 18px;
        padding: 22px 24px;
        margin-top: 12px;
        border-radius: 18px;
    }

    .login-tip {
        font-size: 12px;
        margin-top: 12px;
        margin-bottom: 18px;
    }

    .mobile-features {
        margin-top: 20px;
        padding-top: 20px;
    }

    .feature-number {
        font-size: 22px;
    }

    .feature-label {
        font-size: 11px;
    }

    .logo {
        font-size: 20px;
    }

    .menu {
        gap: 6px;
        padding: 0 12px;
    }

    .menu-section {
        gap: 6px;
    }

    .menu-item {
        padding: 9px 12px;
        font-size: 12px;
        gap: 5px;
        border-radius: 14px;
    }

    .menu-icon {
        font-size: 15px;
    }

    .content-page h2 {
        font-size: 24px;
    }

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

    .main-content {
        padding: 16px 12px 12px;
    }

    .plans {
        gap: 12px;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }

    .plans-container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
    }

    .plan-card {
        padding: 18px;
        border-radius: 18px;
    }

    .plan-badge {
        top: 16px;
        right: 16px;
        font-size: 9px;
        padding: 4px 10px;
    }

    .plan-card h3 {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .plan-price {
        font-size: 34px;
    }

    .plan-price span {
        font-size: 13px;
    }

    .plan-tag {
        font-size: 10px;
        padding: 4px 10px;
    }

    .plan-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .plan-features {
        padding: 10px;
        margin-bottom: 14px;
    }

    .plan-features li {
        font-size: 12px;
        padding: 4px 0;
        padding-left: 22px;
    }

    .plan-button {
        padding: 14px;
        font-size: 14px;
    }

    /* 移动端购买页面样式 */
    .purchase-layout {
        flex-direction: column;
        gap: 20px;
    }

    .back-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    .purchase-header h1 {
        font-size: 22px;
    }

    .package-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .info-box {
        padding: 16px;
        margin-bottom: 24px;
    }

    .info-icon {
        font-size: 20px;
    }

    .info-content strong {
        font-size: 14px;
    }

    .info-content p {
        font-size: 13px;
    }

    .config-section {
        margin-bottom: 24px;
    }

    .config-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .bandwidth-options,
    .proxy-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bandwidth-btn,
    .proxy-btn {
        padding: 14px 12px;
        font-size: 13px;
    }

    .location-summary {
        font-size: 13px;
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    /* 手机版国家选择网格自适应 */
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    /* 数据中心代理在手机版使用更紧凑的自适应布局 */
    .location-grid.datacenter-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .datacenter-grid .location-btn {
        flex-direction: column !important; /* 改为纵向布局，与静态住宅代理一致 */
        align-items: center !important;
        justify-content: center !important;
        gap: 10px;
        padding: 16px 12px;
        min-height: 100px;
        border-radius: 16px;
    }

    .datacenter-grid .location-btn .flag-img {
        width: 60px;
        height: 45px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .datacenter-grid .location-btn .country {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        line-height: 1.5;
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        padding: 0 4px;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
    }

    .datacenter-grid .location-btn .count-input {
        width: 70px;
        padding: 8px 12px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        background: white;
        color: #374151;
    }

    .location-btn {
        padding: 16px 12px;
        min-height: 100px;
    }

    .location-btn .flag {
        font-size: 32px;
    }

    .location-btn .country {
        font-size: 14px;
        font-weight: 600;
        min-height: 2.2em;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .order-summary {
        width: 100%;
        padding: 20px;
        position: static;
        order: 999; /* 将账单放在最后面 */
    }

    .summary-item {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .summary-total .price {
        font-size: 24px;
    }

    .checkout-btn {
        padding: 16px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    body {
        padding-bottom: 0;
    }

    .container {
        padding: 20px 22px 32px;
        border-radius: 0 0 30px 30px;
    }

    .login-icon {
        margin-bottom: 8px;
        margin-top: 0;
    }

    .favicon-icon {
        width: 46px;
        height: 46px;
    }

    .mobile-title {
        font-size: 26px;
        margin-bottom: 5px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .feature-tags {
        gap: 5px;
        margin-bottom: 20px;
    }

    .feature-tag {
        font-size: 10px;
        padding: 4px 9px;
    }

    .button {
        font-size: 15px;
        padding: 16px 35px;
        border-radius: 20px;
    }

    .button-arrow {
        font-size: 18px;
    }

    .phone-input {
        font-size: 16px;
        padding: 20px 22px;
        margin-top: 10px;
        border-radius: 16px;
    }

    .login-tip {
        font-size: 11px;
        margin-top: 10px;
        margin-bottom: 16px;
    }

    .mobile-features {
        margin-top: 18px;
        padding-top: 18px;
    }

    .feature-number {
        font-size: 20px;
    }

    .feature-label {
        font-size: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .menu {
        gap: 5px;
        padding: 0 10px;
    }

    .menu-section {
        gap: 5px;
    }

    .menu-item {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }

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

    .content-page h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 11px;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .main-content {
        padding: 14px 12px 10px;
    }

    .plans {
        gap: 12px;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        padding-bottom: 20px;
    }

    .plans-container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
    }

    .plan-card {
        padding: 20px 18px;
        border-radius: 16px;
        margin-bottom: 0;
    }

    .plan-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .plan-price {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .plan-features {
        padding: 12px;
        margin-bottom: 16px;
    }

    .plan-features li {
        font-size: 12px;
        padding: 6px 0;
    }

    .plan-button {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
    }
}

/* 第
三方登录样式 */
.social-login {
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.divider span {
    padding: 0 15px;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn svg {
    flex-shrink: 0;
}

.google-btn {
    color: #4285F4;
}

.google-btn:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.05);
}

.apple-btn {
    color: #000;
}

.apple-btn:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.telegram-btn {
    color: #0088cc;
}

.telegram-btn:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
}


/* 超级管理员样式 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.admin-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.admin-stat-card .stat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    flex-shrink: 0;
    color: #667eea;
}

.admin-stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.admin-stat-card .stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.admin-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table {
    overflow-x: auto;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    overflow-y: visible;
}

.admin-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
}

.admin-table thead {
    background: #f9fafb;
}

.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.admin-table td {
    padding: 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    background: white;
    transition: background-color 0.15s ease;
    position: relative;
    vertical-align: middle;
    overflow: visible;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.admin-table tbody tr:hover td {
    background: #f9fafb;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-paid {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-shipped {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-processed {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-cancelled {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-refunded {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #e9d5ff;
    color: #6b21a8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-stat-card {
        padding: 20px;
    }

    .admin-stat-card .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .admin-stat-card .stat-value {
        font-size: 24px;
    }

    .admin-section {
        padding: 20px;
    }

    .admin-table {
        font-size: 13px;
        overflow: visible;
    }

    .admin-table table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody tr {
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .admin-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .admin-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        background: transparent;
        width: 100%;
        word-break: break-word;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        text-transform: none;
        letter-spacing: 0;
    }

    .admin-table td[data-label="操作"] > div {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .admin-table td[data-label="操作"] .action-btn,
    .admin-table td[data-label="操作"] .action-btn-icon {
        width: 100%;
        justify-content: center;
    }

    .action-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .pagination,
    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pagination-info {
        order: -1;
        text-align: center;
    }

    .pagination-btn {
        width: 100%;
    }
}

/* 用户管理页面样式 */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

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

.refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    opacity: 0.9;
}

.action-btn-icon {
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn-icon:hover {
    background: #f3f4f6;
}

.complete-btn {
    background: #10b981;
    color: white;
}

.complete-btn:hover {
    background: #059669;
}

.view-btn {
    background: #3b82f6;
    color: white;
}

.view-btn:hover {
    background: #2563eb;
}

.edit-btn {
    background: #f59e0b;
    color: white;
}

.edit-btn:hover {
    background: #d97706;
}

.delete-btn,
.delete-btn-icon {
    background: #ef4444;
    color: white;
}

.delete-btn:hover,
.delete-btn-icon:hover {
    background: #dc2626;
}

/* 状态徽章 */
.badge-active {
    display: inline-block;
    padding: 4px 12px;
    background: #4CAF50;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-disabled {
    display: inline-block;
    padding: 4px 12px;
    background: #FF9800;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-banned {
    display: inline-block;
    padding: 4px 12px;
    background: #f44336;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-unknown {
    display: inline-block;
    padding: 4px 12px;
    background: #9E9E9E;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.pagination-info {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* 加载动画 - 现代化双环设计 */
.loading-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    position: relative;
    margin: 0 auto;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-spinner::before {
    width: 48px;
    height: 48px;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    opacity: 1;
}

.loading-spinner::after {
    width: 32px;
    height: 32px;
    top: 8px;
    left: 8px;
    border-top-color: #764ba2;
    border-right-color: #667eea;
    animation-direction: reverse;
    animation-duration: 0.8s;
    opacity: 0.8;
}

/* 加载容器样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-container p {
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 空状态样式 - 简约高级风格 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 60vh;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.empty-state-icon:hover {
    transform: scale(1.05);
}

.empty-state-icon svg {
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.15));
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.empty-state-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 480px;
    letter-spacing: 0.1px;
}

.empty-state-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    letter-spacing: 0.2px;
}

.empty-state-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.empty-state-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

/* 移动端空状态优化 */
@media (max-width: 768px) {
    .empty-state {
        padding: 60px 20px;
        min-height: 50vh;
    }
    
    .empty-state-icon {
        margin-bottom: 24px;
    }
    
    .empty-state-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .empty-state-desc {
        font-size: 14px;
        margin-bottom: 28px;
        padding: 0 10px;
    }
    
    .empty-state-button {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-state-icon svg {
        width: 90px;
        height: 90px;
    }
    
    .empty-state-title {
        font-size: 18px;
    }
    
    .empty-state-desc {
        font-size: 13px;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* 支付方式选择样式 - Mini卡片设计 */
.payment-method-section {
    margin: 15px 0;
}

.payment-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.payment-method-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.usdt-rate-badge {
    display: none;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
}

.usdt-rate-badge .rate-text {
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-methods-mini {
    display: flex;
    gap: 8px;
}

.payment-mini-card {
    flex: 1;
    cursor: pointer;
    position: relative;
    display: block;
}

.payment-mini-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-mini-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-mini-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea05 0%, #764ba205 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.payment-mini-card:hover .payment-mini-content {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.payment-mini-card:hover .payment-mini-content::before {
    opacity: 1;
}

.payment-mini-card.active .payment-mini-content {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.payment-mini-card.active .payment-mini-content::before {
    opacity: 1;
}

.payment-mini-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.payment-mini-card:hover .payment-mini-icon {
    color: #667eea;
    transform: scale(1.1);
}

.payment-mini-card.active .payment-mini-icon {
    color: #667eea;
    transform: scale(1.05);
}

.payment-mini-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.payment-mini-card:hover .payment-mini-name {
    color: #667eea;
}

.payment-mini-card.active .payment-mini-name {
    color: #667eea;
}

/* 响应式 */
@media (max-width: 768px) {
    .payment-method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .payment-methods-mini {
        gap: 10px;
    }

    .payment-mini-content {
        padding: 14px 16px;
    }
    
    .usdt-rate-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* 账单标题和续费标签 */
.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-header h3 {
    margin: 0;
}

.renewal-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .renewal-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* USDT汇率提示 */
.usdt-rate-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 11px;
    color: #856404;
}

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

.rate-text {
    font-weight: 500;
}

/* 价格显示样式 */
.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-usdt {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ==================== 我的网络页面 - 订单样式 ==================== */

/* 页面头部 */
.page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.user-info-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 页面提示 */
.network-page-tip {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 订单卡片 - 升级后的样式 */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-label {
    font-size: 14px;
    color: #999;
}

/* 订单号样式优化 - 简约风格 */
.order-number-datacenter,
.order-number-residential {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    letter-spacing: 0.3px;
}

.order-number {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* 国家显示样式优化 - 简约风格 */
.country-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.country-display:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.country-flag {
    width: 28px;
    height: 21px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-name {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

/* 多国家容器 */
.multi-region-container {
    position: relative;
    display: inline-block;
}

/* 多国家按钮 - 简约风格 */
.multi-region-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.multi-region-btn:hover {
    background: #5568d3;
}

.multi-region-btn.active {
    background: #5568d3;
}

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

.region-text {
    font-weight: 500;
}

.region-count {
    font-size: 11px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.multi-region-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* 地区详情容器 */
.region-detail {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-width: 280px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.25s ease;
    z-index: 1000;
    pointer-events: none;
}

.region-detail.expanded {
    max-height: 350px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 表格中的下拉菜单右对齐 */
.admin-table td .region-detail {
    left: auto;
    right: 0;
}

.region-detail-content {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-height: 320px;
    overflow-y: auto;
}

/* 地区详情滚动条样式 */
.region-detail-content::-webkit-scrollbar {
    width: 4px;
}

.region-detail-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.region-detail-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.region-detail-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 地区项样式 - 简约风格 */
.region-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.region-item:last-child {
    margin-bottom: 0;
}

.region-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.region-flag {
    width: 28px;
    height: 21px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.region-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
    min-width: 0;
}

.region-quantity {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

/* 订单状态标签 - 升级后的样式 */
.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-paid {
    background: #FFF3CD;
    color: #856404;
}

.status-paid::before {
    content: '●';
    color: #FFC107;
}

.status-shipped {
    background: #D4EDDA;
    color: #155724;
}

.status-shipped::before {
    content: '●';
    color: #4CAF50;
}

/* 订单详情 - 卡片式布局 */
.order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.detail-item:nth-child(4) .detail-value {
    color: #667eea;
}

/* 订单详情表格 - 升级后的样式 */
.order-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.order-details-table thead {
    background: white;
}

.order-details-table th {
    text-align: left;
    padding: 12px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

/* 桌面版表格隐藏专属客服列 */
.order-details-table th.support-cell-mobile-only,
.order-details-table td.support-cell-mobile-only {
    display: none;
}

.order-details-table td {
    padding: 12px;
    border-bottom: 1px solid #f8f8f8;
    color: #333;
    font-size: 13px;
}

.order-details-table td:first-child {
    font-weight: 600;
}

.order-details-table td:nth-child(4) {
    color: #667eea;
    font-weight: 600;
}

/* 按钮样式 */
.order-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 等待状态 - 升级后的样式（虚线边框） */
.order-waiting {
    margin-top: 20px;
    padding: 48px 40px;
    background: white;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}


/* 等待状态加载动画 - 优雅的双环设计 */
.waiting-spinner {
    width: 48px;
    height: 48px;
    position: relative;
}

.waiting-spinner::before,
.waiting-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.waiting-spinner::before {
    width: 48px;
    height: 48px;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    opacity: 1;
}

.waiting-spinner::after {
    width: 32px;
    height: 32px;
    top: 8px;
    left: 8px;
    border-top-color: #764ba2;
    border-right-color: #667eea;
    animation-direction: reverse;
    animation-duration: 0.8s;
    opacity: 0.8;
}

.waiting-text {
    text-align: center;
}

.waiting-text strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.waiting-text p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* IP列表容器 */
.ip-list-container {
    margin-top: 20px;
}

.country-header-row {
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.2s ease;
}

.country-header-row:hover {
    background: #e9ecef;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.country-ips {
    display: none;
}

/* 手机版地区分配行 - 左右对齐 */
@media (max-width: 768px) {
    .country-header-content {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .country-header-left {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        justify-content: flex-start !important;
    }
    
    .btn-download-country {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* 手机版隐藏展开图标，禁用展开功能 */
    .country-header-row {
        cursor: default !important;
    }
    
    .country-header-row .toggle-icon {
        display: none !important;
    }
    
    .country-header-left {
        cursor: default !important;
    }
    
    /* IP列表在手机版：隐藏详细IP列表，但显示国家标题行和下载按钮 */
    .ip-list-container {
        display: block !important;
    }
    
    /* 隐藏详细的IP列表内容 */
    .ip-list-container tbody.country-ips {
        display: none !important;
    }
    
    /* 隐藏表头 */
    .ip-list-container thead {
        display: none !important;
    }
    
    /* 确保国家标题行显示 */
    .ip-list-container tbody.country-section {
        display: table-row-group !important;
    }
    
    /* 确保国家标题行的表格行显示 */
    .ip-list-container .country-header-row {
        display: table-row !important;
    }
    
    /* 确保表格正常显示 */
    .ip-list-container table {
        width: 100%;
        border-collapse: collapse;
        display: table !important;
    }
    
    /* 确保国家标题行的单元格显示 */
    .ip-list-container .country-header-row td {
        display: table-cell !important;
    }
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .page-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 12px;
    }

    .page-header-section h2 {
        font-size: 22px;
    }

    .user-info-badge {
        font-size: 13px;
        padding: 6px 12px;
    }

    .network-page-tip {
        font-size: 13px;
        padding: 0 12px;
        margin-bottom: 16px;
    }

    #page-network {
        padding-bottom: 40px; /* 确保底部内容不被遮挡 */
    }

    #ordersContainer {
        padding: 0 12px 20px;
    }

    .order-card {
        padding: 20px 16px;
        margin-bottom: 16px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border: 1px solid #e8e8e8;
    }
    
    /* 专属客服列 - 桌面版隐藏 */
    .order-details-table th.support-cell-mobile-only,
    .order-details-table td.support-cell-mobile-only {
        display: none;
    }
    
    /* 专属客服链接样式 */
    .support-link {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: #f9fafb;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        transition: all 0.2s;
        width: 100%;
        justify-content: center;
    }
    
    .support-link:active {
        background: #f3f4f6;
        transform: scale(0.98);
    }
    
    .support-link span:last-child {
        font-size: 13px;
        color: #374151;
        font-weight: 500;
    }

    .order-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .order-info {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }

    .order-label {
        font-size: 12px;
        color: #9ca3af;
        margin-right: 6px;
    }

    .order-number {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        word-break: break-all;
        display: inline-block;
    }

    .order-actions {
        flex-shrink: 0;
    }

    .order-status {
        font-size: 12px;
        padding: 6px 12px;
        white-space: nowrap;
        border-radius: 16px;
    }
    
    .btn-renew {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .order-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 0;
    }

    .detail-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px;
        background: #f9fafb;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

    .detail-label {
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
    }

    .detail-value {
        font-size: 14px;
        color: #111827;
        font-weight: 600;
    }

    .detail-item:nth-child(4) .detail-value {
        color: #667eea;
    }

    .order-waiting {
        padding: 24px 16px;
        margin-top: 20px;
        border-radius: 12px;
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        border: 1px dashed #667eea;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .waiting-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .waiting-spinner::before {
        width: 50px;
        height: 50px;
    }

    .waiting-spinner::after {
        width: 32px;
        height: 32px;
        top: 9px;
        left: 9px;
    }

    .waiting-text {
        width: 100%;
    }

    .waiting-text strong {
        font-size: 15px;
        color: #374151;
        margin-bottom: 8px;
        display: block;
    }

    .waiting-text p {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
    }

    .region-tag {
        font-size: 11px;
        padding: 3px 8px;
        margin-right: 4px;
        margin-bottom: 4px;
    }

    .region-flag {
        width: 14px;
        height: 10px;
    }

    .region-tags-container {
        gap: 4px;
    }

    .order-details-table {
        display: block;
        width: 100%;
        margin-top: 0;
    }

    .order-details-table thead {
        display: none;
    }

    .order-details-table tbody {
        display: block;
    }

    .order-details-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 0;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .order-details-table td {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px;
        background: #f9fafb;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        text-align: center;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .order-details-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
        text-align: center;
    }

    .order-details-table td:after {
        display: none;
    }

    .order-details-table td {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        text-align: center;
    }

    .order-details-table td:nth-child(4) {
        color: #667eea;
    }
    
    /* 确保金额字段突出显示 */
    .order-details-table td:nth-child(4):before {
        color: #667eea;
    }
    
    /* 地区分配字段可能需要多行显示 */
    /* 专属客服列 - 手机版显示（必须使用!important覆盖桌面版的display:none） */
    .order-details-table td.support-cell-mobile-only {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        padding: 14px;
        background: #f9fafb;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        text-align: center;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .order-details-table td.support-cell-mobile-only:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
    }
    
    /* 专属客服单元格内容垂直居中 */
    .order-details-table td.support-cell-mobile-only .support-link {
        width: 100%;
        margin-top: 0;
        padding: 0;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .order-details-table td.support-cell-mobile-only .support-link svg {
        color: #667eea;
        width: 20px;
        height: 20px;
    }
    
    .order-details-table td.support-cell-mobile-only .support-link:active {
        opacity: 0.7;
    }
    
    .order-details-table td.support-cell-mobile-only .support-link:active svg {
        color: #5568d3;
    }
    
    /* 地区分配字段可能需要多行显示 */
    .order-details-table td:last-child {
        grid-column: 1 / -1; /* 地区分配占满整行 */
    }
}

@media (max-width: 480px) {
    .page-header-section {
        padding: 0 10px;
    }

    .page-header-section h2 {
        font-size: 20px;
    }

    .network-page-tip {
        font-size: 12px;
        padding: 0 10px;
    }

    #page-network {
        padding-bottom: 35px; /* 小屏幕也确保底部间距 */
    }

    #ordersContainer {
        padding: 0 10px 15px;
    }

    .order-card {
        padding: 18px 14px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .order-header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .order-number {
        font-size: 13px;
    }

    .order-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-item {
        padding: 12px;
    }

    .detail-label {
        font-size: 11px;
    }

    .detail-value {
        font-size: 13px;
    }

    .order-details-table td {
        padding: 12px;
        font-size: 13px;
    }

    .order-details-table td:before {
        font-size: 10px;
    }

    .order-waiting {
        padding: 20px 14px;
        margin-top: 18px;
    }

    .waiting-spinner {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    .waiting-spinner::before {
        width: 44px;
        height: 44px;
    }

    .waiting-spinner::after {
        width: 28px;
        height: 28px;
        top: 8px;
        left: 8px;
    }

    .waiting-text strong {
        font-size: 14px;
    }

    .waiting-text p {
        font-size: 12px;
    }
}

/* 地区标签样式 */
.region-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.region-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.region-tag strong {
    font-weight: 600;
}

/* 地区标签容器 */
.region-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* 发货弹窗样式 */
.ship-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.ship-modal-multi {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 编辑订单模态框更宽，接近全屏 */
#editOrderModalOverlay .ship-modal-multi {
    max-width: 95%;
    width: 95%;
    max-height: 95vh;
}

.ship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ship-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.ship-icon {
    font-size: 24px;
}

.ship-order-num {
    font-size: 16px;
    opacity: 0.9;
    margin-left: 8px;
}

.ship-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.ship-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ship-body-multi {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.ship-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ship-count-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #374151;
}

.count-label {
    font-weight: 500;
}

.count-number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.count-unit {
    font-size: 14px;
    color: #6b7280;
}

.ship-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.ship-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.ship-btn-cancel:hover {
    background: #e5e7eb;
}

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

.ship-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ship-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 国家卡片样式 */
.country-ship-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.country-ship-card.has-content {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.country-ship-card.completed {
    background: #f0fdf4;
    border-color: #4caf50;
    opacity: 0.8;
}

.country-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.country-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.country-flag-large {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.country-name-large {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.country-required {
    font-size: 14px;
    color: #6b7280;
}

.country-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.country-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.country-input-col {
    display: flex;
    flex-direction: column;
}

.country-input-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.country-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.3s;
}

.country-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.country-textarea:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.country-ip-count {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.country-ip-num {
    font-weight: 600;
    color: #667eea;
}

.country-upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

.country-upload-box:hover {
    border-color: #667eea;
    background: #f3f4f6;
}

.country-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.country-upload-text {
    font-size: 14px;
    color: #6b7280;
}

/* 响应式 */
/* 编辑订单模态框在移动端的样式 */
@media (max-width: 768px) {
    #editOrderModalOverlay .ship-modal-multi {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0;
        max-height: 100vh;
    }
    
    #editOrderModalOverlay .edit-ip-textarea {
        min-height: 200px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .ship-modal-multi {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .country-card-body {
        grid-template-columns: 1fr;
    }
    
    .ship-footer {
        flex-direction: column;
        gap: 16px;
    }
    
    .ship-footer > div {
        width: 100%;
    }
}

/* 移动端购物车抽屉样式 */
.mobile-cart-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    pointer-events: none;
}

.mobile-cart-drawer.active {
    display: block;
    pointer-events: auto;
}

.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-cart-drawer.active .cart-drawer-overlay {
    opacity: 1;
}

.cart-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.mobile-cart-drawer.active .cart-drawer-content {
    transform: translateY(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.cart-drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.cart-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-drawer-close:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.cart-drawer-body {
    padding: 24px;
}

.cart-drawer-body .summary-item {
    margin-bottom: 14px;
    font-size: 14px;
}

.cart-drawer-body .summary-divider {
    margin: 20px 0;
}

.cart-drawer-body .summary-total {
    margin: 24px 0;
}

.cart-drawer-body .checkout-btn {
    margin-top: 20px;
}

.cart-drawer-body .payment-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* 移动端精简账单栏 */
.mobile-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mobile-cart-bar.active {
    display: block;
}

.cart-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 100%;
}

.cart-bar-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-width: 0;
    gap: 8px;
}

.cart-bar-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.cart-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-bar-count {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.cart-bar-traffic {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.cart-bar-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.cart-bar-region-item {
    font-size: 11px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.cart-bar-price-label {
    font-size: 11px;
    color: #9ca3af;
}

.cart-bar-total {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.cart-bar-checkout {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cart-bar-checkout:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
}

.cart-bar-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 移动端显示精简账单栏 */
@media (max-width: 768px) {
    .mobile-cart-bar {
        display: none;
    }
    
    /* 只在购买页面显示账单栏 */
    body:has(#page-purchase:not([style*="display: none"])) .mobile-cart-bar {
        display: block;
    }
    
    /* 购买页面底部添加padding，避免内容被账单栏遮挡 */
    #page-purchase {
        padding-bottom: 100px; /* 增加底部padding，确保账单卡片底部内容完全可见 */
    }
    
    /* 账单卡片底部添加额外padding，确保"已选择地区"部分不被底部支付栏遮挡 */
    .order-summary {
        padding-bottom: 100px !important; /* 确保账单卡片底部内容完全可见 */
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-cart-bar {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    
    .cart-bar-content {
        gap: 10px;
    }
    
    .cart-bar-total {
        font-size: 18px;
        margin-left: 8px;
    }
    
    .cart-bar-checkout {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cart-bar-count {
        font-size: 12px;
    }
    
    .cart-bar-traffic {
        font-size: 11px;
    }
    
    .cart-bar-region-item {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .cart-drawer-content {
        max-height: 90vh;
    }
    
    .cart-drawer-header {
        padding: 18px 20px;
    }
    
    .cart-drawer-body {
        padding: 20px;
    }
    
    #page-purchase {
        padding-bottom: 90px; /* 小屏幕也增加padding */
    }
    
    /* 小屏幕账单卡片额外padding */
    .order-summary {
        padding-bottom: 90px !important;
    }
}

/* ==================== 专属客服页面样式 - 重构版 ==================== */
.support-content-wrapper {
    padding: 0;
    max-width: 1600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 强制显示客服内容 */
.support-content-wrapper.show-support {
    display: block !important;
}

/* 强制隐藏空状态 */
.empty-state.hide-empty {
    display: none !important;
}

/* 页面头部 */
.support-header {
    text-align: center;
    padding: 60px 24px 48px;
    background: #ffffff;
}

.support-header-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #667eea;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.support-header h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 12px 0 !important;
}

.support-header p {
    font-size: 16px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.customer-service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    padding: 60px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 联系卡片 - 精简设计 */
.contact-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    padding: 32px 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-platform-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-wechat {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
    color: white;
}

.badge-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

/* 卡片主体 */
.contact-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 二维码容器 */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.qr-code-wrapper {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.wechat-qr-code {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

/* Telegram 插画 */
.telegram-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin: 16px 0;
}

.telegram-icon-wrapper {
    width: 160px;
    height: 160px;
    background: rgba(0, 136, 204, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
}

/* 联系信息 */
.contact-info {
    text-align: center;
}

.contact-platform-name {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 12px;
}

.contact-account {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.contact-account:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.contact-account-wechat:hover {
    border-color: #07c160;
    background: #f0fdf4;
}

.contact-account-telegram:hover {
    border-color: #0088cc;
    background: #f0f9ff;
}

.contact-account-label {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-account-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Telegram 账号容器 */
.contact-account-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Telegram 链接按钮 */
.telegram-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0088cc;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.telegram-link-btn:hover {
    background: #0066aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
}

.telegram-link-btn svg {
    width: 18px;
    height: 18px;
}

/* 卡片底部 */
.contact-card-footer {
    padding: 24px 32px 32px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.contact-tip {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* 复制提示动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* 移动端响应式 */
@media (max-width: 768px) {
    .support-content-wrapper {
        padding: 40px 20px;
    }
    
    .support-content-wrapper h2 {
        font-size: 28px !important;
    }
    
    .support-content-wrapper > p {
        font-size: 16px !important;
        margin-bottom: 36px !important;
    }
    
    .customer-service-details {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 32px;
    }
    
    .support-header {
        padding: 60px 20px 40px;
    }
    
    .support-header-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    
    .support-header-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .support-header h2 {
        font-size: 36px !important;
    }
    
    .support-header p {
        font-size: 16px !important;
    }
    
    .customer-service-details {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 20px 60px;
    }
    
    .contact-card {
        border-radius: 24px;
    }
    
    .contact-card-header {
        padding: 32px 28px 24px;
    }
    
    .contact-platform-badge {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .contact-platform-badge svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-card-body {
        padding: 32px 28px;
        gap: 32px;
    }
    
    .qr-code-container {
        margin: 0 auto;
        width: 100%;
    }
    
    .qr-code-wrapper {
        padding: 16px;
        border-radius: 20px;
        margin: 0 auto;
    }
    
    .wechat-qr-code {
        width: 200px;
        height: 200px;
        display: block;
        margin: 0 auto;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .contact-platform-name {
        font-size: 15px;
        margin-bottom: 0;
    }
    
    .contact-account {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
    }
    
    .telegram-icon-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .telegram-icon-wrapper svg {
        width: 64px;
        height: 64px;
    }
    
    .contact-account {
        padding: 14px 28px;
    }
    
    .contact-account-value {
        font-size: 20px;
    }
    
    .contact-card-footer {
        padding: 20px 20px 28px;
    }
    
    .contact-tip {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .support-header {
        padding: 48px 16px 32px;
    }
    
    .support-header-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .support-header-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .support-header h2 {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }
    
    .support-header p {
        font-size: 15px !important;
    }
    
    .customer-service-details {
        gap: 24px;
        padding: 24px 16px 48px;
    }
    
    .contact-card {
        border-radius: 20px;
    }
    
    .contact-card-header {
        padding: 24px 20px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-platform-badge {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        margin: 0 auto;
    }
    
    .contact-title {
        font-size: 22px;
    }
    
    .contact-card-body {
        padding: 24px 16px;
        gap: 28px;
    }
    
    .qr-code-container {
        margin: 0 auto;
        width: 100%;
    }
    
    .qr-code-wrapper {
        padding: 12px;
        border-radius: 16px;
        margin: 0 auto;
        width: fit-content;
    }
    
    .wechat-qr-code {
        width: 200px;
        height: 200px;
        display: block;
        margin: 0 auto;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    .contact-platform-name {
        font-size: 14px;
        margin-bottom: 0;
        color: #64748b;
    }
    
    .contact-account {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .contact-account-label {
        font-size: 11px;
    }
    
    .contact-account-value {
        font-size: 18px;
    }
    
    .contact-card-footer {
        padding: 20px 16px 24px;
    }
    
    .contact-tip {
        font-size: 12px;
    }
    
    .telegram-illustration {
        min-height: 200px;
    }
    
    .telegram-icon-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .telegram-icon-wrapper svg {
        width: 56px;
        height: 56px;
    }
    
    /* 480px 下的样式已在上面的 contact-info 中统一设置 */
    
    .contact-tip {
        font-size: 13px;
    }
}


/* ==================== 流量分析页面样式 ==================== */

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.analytics-header h2 {
    margin: 0;
    font-size: 28px;
    color: #1f2937;
}

.analytics-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.time-range-selector {
    padding: 8px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.time-range-selector:hover {
    border-color: #667eea;
}

.time-range-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-date-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-apply,
.btn-export,
.btn-refresh,
.btn-search {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-export {
    background: #10b981;
    color: white;
}

.btn-export:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-refresh {
    background: #6b7280;
    color: white;
}

.btn-refresh:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-search {
    background: #667eea;
    color: white;
}

.btn-search:hover {
    background: #5568d3;
}

/* 统计卡片 */
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.analytics-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.analytics-stat-card .stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.analytics-stat-card .stat-content {
    flex: 1;
}

.analytics-stat-card .stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.analytics-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.analytics-stat-card .stat-growth {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.analytics-stat-card .stat-growth.positive {
    color: #10b981;
}

.analytics-stat-card .stat-growth.negative {
    color: #ef4444;
}

/* 分析区块 */
.analytics-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.analytics-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1f2937;
}

.analytics-section.half {
    flex: 1;
    min-width: 300px;
}

.analytics-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

/* 统计列表 */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s;
}

.stats-list-item:hover {
    background: #f3f4f6;
}

.stats-list-item .item-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.stats-list-item .item-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-list-item .item-count {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.stats-list-item .item-percentage {
    font-size: 12px;
    color: #6b7280;
}

/* 地理位置列表 */
.location-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s;
}

.location-item:hover {
    background: #f3f4f6;
}

.location-item .flag {
    font-size: 24px;
}

.location-item .location-info {
    flex: 1;
}

.location-item .country-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.location-item .location-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.location-item .visit-count {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.location-item .visit-percentage {
    font-size: 12px;
    color: #6b7280;
}

/* 来源统计 */
.referrer-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referrer-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.referrer-type .type-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.referrer-type .type-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.referrer-type .type-count {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.referrer-type .type-percentage {
    font-size: 12px;
    color: #6b7280;
}

.top-referrers {
    margin-top: 16px;
}

.top-referrers h4 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.referrer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
}

.referrer-item .referrer-url {
    font-size: 13px;
    color: #4b5563;
}

.referrer-item .referrer-count {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

/* 表格样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    margin: 0;
}

.section-controls {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table thead {
    background: #f9fafb;
}

.analytics-table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.analytics-table td {
    padding: 12px;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.analytics-table tbody tr:hover {
    background: #f9fafb;
}

.loading-cell {
    text-align: center;
    color: #6b7280;
    padding: 40px !important;
}

/* 分页控件 */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analytics-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .time-range-selector,
    .btn-export,
    .btn-refresh {
        width: 100%;
    }
    
    .analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .analytics-row {
        flex-direction: column;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input {
        width: 100%;
    }

    .table-container {
        overflow: visible;
    }

    .analytics-table,
    .analytics-table thead,
    .analytics-table tbody,
    .analytics-table th,
    .analytics-table td,
    .analytics-table tr {
        display: block;
        width: 100%;
    }

    .analytics-table thead {
        display: none;
    }

    .analytics-table tbody tr {
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .analytics-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .analytics-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        background: transparent;
        width: 100%;
        word-break: break-word;
    }

    .analytics-table td:last-child {
        border-bottom: none;
    }

    .analytics-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }

    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pagination-info {
        order: -1;
        text-align: center;
    }

    .pagination-btn {
        width: 100%;
    }
}
