/**
 * 公共组件样式：导航、页脚、悬浮窗、弹窗
 */

/* ========== 头部导航 ========== */
header,
#site-header [data-component="header"] {
    background-color: rgba(13, 59, 102, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid var(--secondary-color);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--wow-gold) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.logo-icon i {
    font-size: 1.8rem;
    color: var(--dark-bg);
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--wow-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #a3c4e0;
    margin: 0;
}

.global-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tool-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mainNav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#mainNav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#mainNav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#mainNav a.active {
    background-color: rgba(244, 162, 97, 0.2);
}

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

.btn {
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* ========== 页脚（与 main 紧贴，无留空，只保留一条顶线） ========== */
#site-footer {
    margin-top: 0;
}
#site-footer [data-component="footer"] {
    background-color: #07121f;
    padding: 24px 0 20px;
    border-top: 1px solid var(--border-color);
}

#site-footer .container {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

#site-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

#site-footer .footer-section {
    text-align: center;
}

#site-footer .footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    width: fit-content;
}

#site-footer .footer-section ul {
    display: inline-block;
    text-align: left;
}

#site-footer .footer-section ul {
    list-style: none;
}

#site-footer .footer-section li {
    margin-bottom: 12px;
}

#site-footer .footer-section a {
    color: #a3c4e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#site-footer .footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #7a9cbc;
    font-size: 0.9rem;
}

#site-footer .copyright {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.copyright p {
    margin: 6px 0;
}

/* ========== 左侧悬浮 (left-floating)：含 price-chart-float、region-faction-float，参照 recycle-section 左侧 -20px ========== */
.left-floating {
    position: fixed;
    /* recycle-section 为 max-width:1160px margin:auto，左缘 (100vw - 1160px)/2；图标区在其左 20px，故 left = 左缘 - 20 - 160；小屏用 max 保证不超出视口 */
    left: max(15px, calc((100vw - 1160px) / 2 - 180px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 160px;
}

/* 金价走势图悬浮块（与 demo 一致：图标 + 文案、pulse 动画） */
.price-chart-float {
    margin-bottom: 10px;
}

.price-chart-float__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-chart-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    animation: priceChartPulse 2s infinite;
    border: none;
    color: #08121e;
    font-size: 24px;
}

.price-chart-icon i {
    font-size: 24px;
    color: #08121e;
}

.price-chart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

@keyframes priceChartPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.7); }
}

/* 左侧文字提示（固定宽度保证两行图标左对齐，未点击时显示，点击后可加 .float-hint-bubble--hidden 隐藏） */
.price-chart-float__label,
.region-faction-float__label {
    min-width: 7.5em;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.price-chart-float__label {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7);
}
.region-faction-float__label {
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7);
}
.float-hint-bubble--hidden {
    opacity: 0;
    visibility: hidden;
}

/* 页面大区/阵营悬浮块（与 price-chart-float 同结构） */
.region-faction-float {
    margin-bottom: 10px;
}

.region-faction-float__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.region-faction-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
    transition: all 0.3s ease;
    animation: regionFactionPulse 2s infinite;
    border: none;
    color: #08121e;
    font-size: 24px;
}

.region-faction-icon i {
    font-size: 24px;
    color: #08121e;
}

.region-faction-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.6);
}

@keyframes regionFactionPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(64, 224, 208, 0.7); }
}

/* 页面大区/阵营弹窗 */
.region-faction-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.region-faction-modal__content {
    background: linear-gradient(135deg, rgba(8, 18, 30, 0.98) 0%, rgba(14, 32, 54, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(128, 128, 128, 0.3);
    width: 380px;
    max-width: 95%;
    backdrop-filter: blur(15px);
}

.region-faction-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(128, 128, 128, 0.3);
}

.region-faction-modal__header h4 {
    color: #40E0D0;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-faction-modal__close {
    font-size: 28px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.region-faction-modal__close:hover {
    color: #ff4757;
}

.region-faction-modal__body {
    padding: 20px 25px 25px;
}

.region-faction-modal__section {
    margin-bottom: 18px;
}

.region-faction-modal__section h5 {
    color: #e0e0e0;
    font-size: 14px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.region-faction-modal__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.region-faction-modal__options--inline {
    grid-template-columns: repeat(2, 1fr);
}

.region-faction-modal__options button {
    padding: 12px 16px;
    background: rgba(100, 149, 237, 0.25);
    border: 2px solid rgba(100, 149, 237, 0.5);
    border-radius: 12px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.region-faction-modal__options button:hover {
    border-color: #40E0D0;
    background: rgba(64, 224, 208, 0.2);
    color: white;
}

.region-faction-modal__options button.active {
    background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%);
    border-color: #40E0D0;
    color: #08121e;
}

.region-faction-modal__confirm {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%);
    border: none;
    border-radius: 10px;
    color: #08121e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-faction-modal__confirm:hover {
    box-shadow: 0 4px 20px rgba(64, 224, 208, 0.5);
    transform: translateY(-1px);
}

/* 左侧悬浮通用项（仅搜索按钮等仍用） */
.left-floating__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(14, 32, 54, 0.95) 100%);
    border: 2px solid #808080;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.left-floating__item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.left-floating__item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--wow-gold);
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.left-floating__item-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== 右侧客服悬浮窗（与 demo/1.html 布局一致）========== */
.customer-service {
    position: fixed;
    top: 45%;
    right: 40px;
    transform: translateY(-50%);
    width: var(--base-width);
    height: 360px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px var(--shadow-color);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.customer-service:hover {
    transform: translateY(-50%) scale(1.02);
}

.customer-service.expanded {
    width: var(--expanded-width);
    height: var(--expanded-height);
    background: linear-gradient(135deg, rgba(8, 18, 30, 0.98) 0%, rgba(12, 24, 38, 0.95) 100%);
    border-radius: var(--expanded-radius);
    padding: 25px;
    position: fixed;
    top: 45%;
    right: 40px;
    transform: translateY(-50%);
    animation: windowExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    box-shadow: 0 0 45px rgba(45, 99, 168, 0.25);
}

@keyframes windowExpand {
    0% {
        transform: translateY(-50%) scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* 展开时隐藏图标栏（移出流，不占位） */
.customer-service.expanded .icon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.customer-service.expanded .service-icon {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

/* 图标容器：仅收缩态占满 */
.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0;
    transition: var(--transition);
}

.icon-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 25px 0;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    height: 60px;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--wow-gold);
    font-size: 20px;
}

.icon-bg {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图标背景发光扫光 */
.icon-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
    transform: rotate(45deg);
    animation: icon-bg-shine 2s infinite linear;
}

/* 图标背景脉冲环 */
.icon-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 70%, rgba(255, 215, 0, 0.25) 100%);
    animation: icon-bg-pulse-ring 1.5s infinite;
}

@keyframes icon-bg-pulse-ring {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes icon-bg-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes icon-bg-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.service-icon:hover .icon-bg,
.left-floating__item:hover .icon-bg {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.2) 100%);
    transform: scale(1.1);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: icon-bg-pulse 2s infinite;
}

.icon-bg i {
    position: relative;
    z-index: 1;
}

/* 内容区：默认隐藏；展开时绝对定位铺满悬窗，从顶部排布（与 demo 一致） */
.service-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 50px 20px 20px;
    opacity: 0;
    visibility: hidden;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    color: var(--light-text);
    box-sizing: border-box;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.customer-service:not(.expanded) .service-content {
    position: absolute;
    pointer-events: none;
}

.customer-service.expanded .service-content.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: contentFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.service-content::-webkit-scrollbar {
    display: none;
}
.service-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.service-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.service-header h3 {
    color: var(--wow-gold);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-align: center;
}

.service-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    border: none;
    text-align: left;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.menu-item:nth-child(1) { animation-delay: 0.15s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.25s; }
.menu-item:nth-child(4) { animation-delay: 0.3s; }
.menu-item:nth-child(5) { animation-delay: 0.35s; }
.menu-item:nth-child(6) { animation-delay: 0.4s; }

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* fadeInUp 使用 base.css 中的定义 */

.menu-item:hover {
    background: linear-gradient(135deg, rgba(45, 99, 168, 0.25) 0%, rgba(30, 74, 125, 0.2) 100%);
    color: var(--wow-gold);
    transform: translateY(0) translateX(-5px);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--text-accent);
}

.hotline-label { color: var(--text-accent); font-size: 10px; margin: 0; }
.hotline-number { color: var(--wow-gold); font-size: 16px; font-weight: 700; margin: 0; }

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(45, 99, 168, 0.35) 0%, rgba(30, 74, 125, 0.25) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(45, 99, 168, 0.55);
    padding: 0;
    color: var(--text-accent);
    font-size: 18px;
}

.customer-service.expanded .close-btn {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.close-btn:hover {
    transform: scale(1.2);
    color: var(--wow-gold);
}

/* ========== 弹窗通用 ========== */
.buy-gold-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.buy-gold-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.98) 0%, rgba(14, 32, 54, 0.98) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #808080;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title,
.custom-buy-title {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin: 0;
}

.modal-close,
.custom-buy-item-close {
    font-size: 20px;
    color: #808080;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.modal-close:hover,
.custom-buy-item-close:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

.custom-buy-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-buy-item {
    background: rgba(14, 32, 54, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #808080;
    position: relative;
}

.custom-buy-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #808080;
}

.custom-buy-server,
.custom-buy-faction {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
}

.custom-buy-faction {
    color: var(--wow-gold);
    background: rgba(128, 128, 128, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
}

.custom-buy-input-group {
    margin-bottom: 15px;
}

.custom-buy-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0c8ff;
    font-weight: 600;
}

.custom-buy-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(25, 46, 79, 0.8);
    border: 2px solid #808080;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
}

.custom-buy-btn,
.confirm-buy-btn {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.custom-buy-btn:hover,
.confirm-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5);
}

.custom-buy-result { margin-top: 15px; }
.match-info { display: flex; flex-direction: column; gap: 10px; }
.match-ratio span,
.match-price span { font-weight: 700; color: var(--accent-cyan); }
.match-price span { color: #ff4757; }

.faction-selection { display: flex; gap: 10px; }
.faction-btn {
    flex: 1;
    padding: 10px 20px;
    background: rgba(12, 26, 41, 0.9);
    border: 2px solid #808080;
    border-radius: 8px;
    color: #808080;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faction-btn.active {
    background: #4a5568;
    color: #fff;
    border-color: var(--accent-cyan);
}

/* 防骗提示 */
.anti-scam-section {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(10, 20, 35, 0.95) 100%);
    border: 2px solid #808080;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.anti-scam-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--wow-gold);
    margin-bottom: 10px;
}

.anti-scam-rules {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #e0e0e0;
}

.rule-item {
    padding: 10px;
    border-radius: 5px;
    background: rgba(12, 26, 41, 0.9);
    border: 1px solid #3a5775;
}

.anti-scam-divider {
    border-top: 1px solid var(--accent-cyan);
    margin: 10px 0;
}

.anti-scam-footer {
    text-align: center;
    font-size: 12px;
    color: #a0c8ff;
    margin-top: 10px;
    font-style: italic;
}

/* 支付选项 */
.payment-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(14, 32, 54, 0.9);
    border: 2px solid #808080;
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.payment-option-btn:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.payment-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option-name { font-size: 1.1rem; font-weight: 700; }
.payment-option-desc { font-size: 0.9rem; color: #a0c8ff; }

/* 金价走势图区服选择弹窗（页面居中） */
.price-chart-server-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(8, 18, 30, 0.98) 0%, rgba(14, 32, 54, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    padding: 0;
    width: 380px;
    z-index: 3000;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(128, 128, 128, 0.3);
}

.price-chart-server-modal.show {
    animation: priceChartServerSlideIn 0.25s ease-out;
}

@keyframes priceChartServerSlideIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.price-chart-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(128, 128, 128, 0.3);
    margin-bottom: 15px;
}

.price-chart-server-header h4 {
    color: #40E0D0;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-chart-server-close {
    font-size: 28px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.1);
}

.price-chart-server-close:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    transform: rotate(90deg);
}

.price-chart-server-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 25px 25px 25px;
}

.price-chart-server-options button {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.8) 0%, rgba(65, 105, 225, 0.8) 100%);
    border: 2px solid rgba(100, 149, 237, 0.5);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(100, 149, 237, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.price-chart-server-options button i {
    font-size: 20px;
    margin-bottom: 4px;
}

.price-chart-server-options button span {
    font-size: 13px;
}

.price-chart-server-options button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: priceChartShine 2.5s infinite linear;
}

@keyframes priceChartShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.price-chart-server-options button:hover {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.9) 0%, rgba(100, 149, 237, 0.9) 100%);
    border-color: rgba(100, 149, 237, 0.8);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.5);
}

.price-chart-server-options button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(100, 149, 237, 0.4);
}

.price-chart-server-options button.active {
    background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%);
    border-color: #40E0D0;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.6);
}

/* 金价走势图弹窗（与 demo 一致） */
.price-chart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
}

.price-chart-modal-content {
    background: rgba(8, 18, 30, 0.98);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 25px;
    width: 900px;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    backdrop-filter: blur(10px);
    border: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-chart-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.price-chart-modal-header h3 {
    color: #ffd700;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.price-chart-modal-close {
    font-size: 28px;
    color: #808080;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
    margin-left: auto;
}

.price-chart-modal-close:hover {
    color: white;
}

.price-chart-info {
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.price-chart-container {
    width: 890px;
    max-width: 100%;
    height: 445px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.price-chart-item {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.price-chart-faction-title {
    color: #ffd700;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.price-chart-faction-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.price-chart-faction-btn {
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-chart-faction-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
}

.price-chart-faction-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-color: #ffd700;
    color: #08121e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.price-chart-faction-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.price-chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 305px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.price-chart-placeholder i {
    font-size: 3rem;
    margin-right: 20px;
    color: #ffd700;
}

#allianceChartInfo,
#hordeChartInfo {
    color: #e0e0e0;
    font-size: 16px;
}

/* 搜索弹窗选项 */
.server-options,
.faction-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.server-option-btn,
.faction-option-btn {
    padding: 12px 20px;
    border: 2px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    background: rgba(14, 32, 54, 0.9);
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-option-btn:hover,
.faction-option-btn:hover {
    border-color: var(--accent-cyan);
}

.server-option-btn.active,
.faction-option-btn.active {
    border-color: var(--accent-cyan);
    background: rgba(64, 224, 208, 0.2);
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .left-floating {
        left: 15px;
        width: 140px;
    }
    .customer-service {
        right: 20px;
        width: 60px;
        height: 320px;
    }
    .customer-service.expanded {
        width: 280px;
        height: 420px;
        right: 20px;
    }
    .price-chart-server-modal {
        width: 90%;
        max-width: 320px;
    }
}
