/* ============================================
   传奇充值平台 - 前台样式
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.logo-icon {
    font-size: 28px;
    color: #ffd700;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #ccc;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.header-contact {
    color: #ffd700;
    font-size: 14px;
}

/* ===== 横幅 ===== */
.banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255,215,0,0.3);
}

.banner p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 25px;
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.banner-features span {
    color: #ffd700;
    font-size: 16px;
}

/* ===== 公告栏 ===== */
.notice-bar {
    background: #fff8e6;
    border-bottom: 1px solid #ffe0a0;
    padding: 12px 0;
}

.notice-label {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 12px;
}

.notice-text {
    color: #8b6914;
    font-size: 14px;
}

/* ===== 充值区域 ===== */
.recharge-section {
    padding: 40px 0;
}

.recharge-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.required { color: #ff4757; }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.form-tip {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ===== 区服选择 ===== */
.server-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.server-item {
    position: relative;
    cursor: pointer;
}

.server-item input {
    position: absolute;
    opacity: 0;
}

.server-name {
    display: block;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.server-item input:checked + .server-name {
    border-color: #ffd700;
    background: #fffbe6;
    color: #b8860b;
    font-weight: 600;
}

.server-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.server-tag.maintenance {
    background: #ff4757;
    color: #fff;
}

/* ===== 套餐选择 ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.package-item {
    position: relative;
    cursor: pointer;
}

.package-item input {
    position: absolute;
    opacity: 0;
}

.package-content {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
    position: relative;
}

.package-item input:checked + .package-content {
    border-color: #ffd700;
    background: #fffbe6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,215,0,0.2);
}

.package-item.hot .package-content {
    border-color: #ff6b35;
}

.hot-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
}

.package-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.package-price {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 8px;
}

.package-gold {
    font-size: 13px;
    color: #666;
}

.gold-num {
    color: #b8860b;
    font-weight: 600;
}

.gift-gold {
    color: #ff4757;
    font-size: 12px;
    margin-left: 5px;
}

/* ===== 自定义金额 ===== */
.custom-amount {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-amount .form-input {
    flex: 1;
    max-width: 300px;
}

.amount-tip {
    font-size: 13px;
    color: #999;
}

/* ===== 支付方式 ===== */
.pay-methods {
    display: flex;
    gap: 20px;
}

.pay-item {
    position: relative;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
}

.pay-item input {
    position: absolute;
    opacity: 0;
}

.pay-item .pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    margin-right: 8px;
    vertical-align: middle;
}

.pay-icon.alipay { background: #1677ff; }
.pay-icon.wechat { background: #07c160; }

.pay-item > span:not(.pay-icon) {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
}

.pay-item input:checked ~ span {
    border-color: #ffd700;
    background: #fffbe6;
}

/* ===== 充值汇总 ===== */
.recharge-summary {
    background: linear-gradient(135deg, #fff8e6, #fff3cd);
    border: 1px solid #ffe0a0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.summary-amount {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.summary-gold {
    font-size: 20px;
    font-weight: bold;
    color: #b8860b;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a2e;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    border-color: #ffd700;
    color: #b8860b;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.form-actions {
    text-align: center;
}

/* ===== 会员等级展示 ===== */
.member-section {
    padding: 40px 0 60px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.member-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-top: 4px solid #ddd;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.member-level {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
}

.member-condition {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.member-discount {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.member-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ===== 结果页 ===== */
.result-section {
    padding: 60px 0;
}

.result-box {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.result-box.success {
    border-top: 5px solid #07c160;
}

.result-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #07c160;
    color: #fff;
    font-size: 40px;
    margin: 0 auto 20px;
}

.result-box h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
}

.result-info {
    text-align: left;
    margin-bottom: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.result-row.highlight {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b35;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.result-tip {
    font-size: 12px;
    color: #999;
}

/* ===== 查询页 ===== */
.query-section,
.member-section-page {
    padding: 40px 0 60px;
}

.query-box,
.member-query {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.query-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-item label {
    font-size: 13px;
    color: #666;
}

.form-item .form-input {
    width: 220px;
}

.query-result {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.query-tips {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.query-tips h3 {
    margin-bottom: 15px;
    color: #333;
}

.query-tips ul {
    padding-left: 20px;
}

.query-tips li {
    padding: 8px 0;
    color: #666;
    list-style: disc;
}

/* ===== 表格 ===== */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.data-table tr:hover {
    background: #fafafa;
}

.order-no {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.amount {
    color: #ff6b35;
    font-weight: 600;
}

.time {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.text-center { text-align: center; }

/* ===== 状态标签 ===== */
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.status.success { background: #e8f5e9; color: #07c160; }
.status.pending { background: #fff3e0; color: #ff9800; }
.status.error { background: #ffebee; color: #ff4757; }
.status.cancel { background: #f5f5f5; color: #999; }
.status.refund { background: #e3f2fd; color: #2196f3; }
.status.warning { background: #fff8e1; color: #ffc107; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pagination span {
    color: #999;
    font-size: 13px;
    margin-right: 10px;
}

.pagination a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a2e;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ===== 会员中心 ===== */
.member-info-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #fff;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #1a1a2e;
    flex-shrink: 0;
}

.member-details {
    flex: 1;
}

.member-account {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.member-badge {
    margin-bottom: 15px;
}

.level-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.level-1 { background: #9e9e9e; color: #fff; }
.level-2 { background: #8d6e63; color: #fff; }
.level-3 { background: #bdbdbd; color: #333; }
.level-4 { background: #ffd700; color: #1a1a2e; }
.level-5 { background: #b0bec5; color: #1a1a2e; }
.level-6 { background: #00bcd4; color: #fff; }
.level-7 { background: #9c27b0; color: #fff; }
.level-8 { background: linear-gradient(135deg, #ffd700, #ff6b35); color: #1a1a2e; }

.member-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #aaa;
}

.upgrade-progress {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 5px;
    transition: width 0.5s;
}

.member-orders,
.level-overview {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.member-orders h3,
.level-overview h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 20px;
}

.current-level {
    background: #fffbe6 !important;
}

/* ===== 底部 ===== */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    font-size: 13px;
    line-height: 2;
}

.footer-section a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
    .main-nav { order: 3; width: 100%; justify-content: center; gap: 15px; padding: 10px 0; }
    .banner h1 { font-size: 28px; }
    .banner-features { flex-direction: column; gap: 10px; }
    .recharge-box { padding: 20px; }
    .query-form { flex-direction: column; align-items: stretch; }
    .form-item .form-input { width: 100%; }
    .member-stats { grid-template-columns: repeat(2, 1fr); }
    .member-info-card { flex-direction: column; text-align: center; }
    .footer-content { grid-template-columns: 1fr; gap: 20px; }
}
