/* ==================== CarbonPro 公共样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #03060c;
    color: #eef5ff;
    line-height: 1.45;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 3D背景画布 */
#canvas-3d-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; display: block;
}
.container, .navbar, footer { position: relative; z-index: 2; }
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0,15,25,0.65), rgba(0,0,0,0.85));
    z-index: 0; pointer-events: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a121f; }
::-webkit-scrollbar-thumb { background: #2c9b5e; border-radius: 10px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 导航栏 */
.navbar {
    background: rgba(8,18,28,0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(44,155,94,0.35);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; padding: 12px 0; gap: 16px;
}
.logo {
    display: flex; align-items: center; line-height: 1; gap: 6px;
    font-size: 1.8rem; font-weight: 800;
}
.logo-text {
    background: linear-gradient(135deg, #C0FFE0, #2cff9e, #0f8a4e);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -0.5px; text-shadow: 0 0 8px #1eff8e30;
}
.nav-links {
    display: flex; gap: 1.5rem; font-weight: 500; flex-wrap: wrap; align-items: center;
}
.nav-links a {
    text-decoration: none; color: #cfecff; font-size: 0.9rem;
    transition: 0.25s; padding: 6px 0; position: relative;
}
.nav-links a::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: #2cff9e; transition: 0.25s; box-shadow: 0 0 6px #2cff9e;
}
.nav-links a:hover::after, .nav-links a:active::after { width: 100%; }
.nav-links a:hover { color: #b3ffdc; text-shadow: 0 0 3px #2cff9e; }

/* 按钮 */
.btn-primary {
    background: linear-gradient(95deg, #1b6e43, #0f8a4e); color: white; border: none;
    padding: 12px 28px; border-radius: 44px; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(32,201,102,0.5); letter-spacing: 0.3px;
    display: inline-block; text-align: center; text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 0 18px #2cff9e;
    background: linear-gradient(95deg, #2a8f58, #14b86a);
}
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
    background: rgba(10,25,35,0.7); border: 1px solid #2c9b5e;
    backdrop-filter: blur(8px); padding: 8px 20px; border-radius: 40px;
    font-weight: 500; color: #d0f0e4; cursor: pointer; transition: 0.2s;
    text-align: center; text-decoration: none; display: inline-block;
}
.btn-outline:hover {
    background: #2c9b5e30; border-color: #6effb0; box-shadow: 0 0 8px #2cff9e;
}
.btn-danger {
    background: linear-gradient(95deg, #8b1a1a, #a82020); color: white; border: none;
    padding: 10px 24px; border-radius: 44px; font-weight: 600; cursor: pointer;
    transition: 0.2s; display: inline-block;
}
.btn-danger:hover { box-shadow: 0 0 12px #ff4444; transform: translateY(-1px); }

/* 卡片 */
.card {
    background: rgba(12,24,36,0.65); backdrop-filter: blur(10px);
    border-radius: 32px; padding: 22px 18px;
    border: 1px solid rgba(44,155,94,0.4);
    transition: all 0.3s cubic-bezier(0.2,0.9,0.4,1.1);
    cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.card:hover {
    transform: translateY(-6px); border-color: #2cff9e;
    box-shadow: 0 15px 30px rgba(0,255,128,0.2);
    background: rgba(12,30,42,0.8);
}
.card:active { transform: scale(0.98); }
.card h3 {
    font-size: 1.4rem; font-weight: 700; margin: 12px 0 8px;
    background: linear-gradient(135deg, #F0FFF0, #b0ffd0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card p { color: #bbddff; font-size: 0.85rem; font-weight: 400; }
.card-icon { font-size: 2.5rem; filter: drop-shadow(0 0 6px #40ff90); }

/* 工具面板 */
.tool-panel {
    background: rgba(6,16,26,0.7); backdrop-filter: blur(14px);
    border-radius: 48px; box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(44,155,94,0.3);
    padding: 32px 28px; margin: 32px 0 48px;
    border: 1px solid rgba(44,255,158,0.25);
}
.tool-title {
    font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 700;
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 32px;
}
.badge {
    background: #0a2a1ecc; border: 1px solid #2cff9e; color: #ccffdd;
    padding: 4px 14px; border-radius: 60px; font-size: 0.75rem;
    font-weight: 600; letter-spacing: 0.5px; backdrop-filter: blur(4px); white-space: nowrap;
}
.form-group { margin-bottom: 24px; }
label {
    font-weight: 600; display: block; margin-bottom: 8px;
    color: #caf0ff; font-size: 0.9rem; letter-spacing: 0.3px;
}
select, input, textarea {
    width: 100%; padding: 14px 18px; background: rgba(0,10,20,0.8);
    border: 1px solid #2c9b5e; border-radius: 32px; font-size: 0.95rem;
    color: #eef5ff; transition: 0.2s; backdrop-filter: blur(4px);
    font-family: inherit;
}
select:focus, input:focus, textarea:focus {
    outline: none; border-color: #7affb0;
    box-shadow: 0 0 0 3px rgba(44,255,158,0.3);
}
input::placeholder, textarea::placeholder { color: #557788; }
.param-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 表格 */
.table-wrapper { overflow-x: auto; width: 100%; }
table {
    width: 100%; border-collapse: collapse;
    background: rgba(0,20,30,0.5); border-radius: 24px; overflow: hidden;
}
th, td {
    text-align: left; padding: 12px 16px;
    border-bottom: 1px solid #2c9b5e60; color: #e2f0ff;
}
th { color: #aaffdd; font-weight: 600; background: rgba(44,155,94,0.15); }
tr:hover td { background: rgba(44,255,158,0.05); }

/* 标题 */
.section-title {
    font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800;
    margin-top: 20px; margin-bottom: 12px;
    background: linear-gradient(120deg, #ffffff, #9effcf);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
    color: #9cc8e8; margin-bottom: 28px;
    border-left: 4px solid #2cff9e; padding-left: 18px; font-size: 0.95rem;
}
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px; margin-bottom: 52px;
}

/* 弹窗 Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(12px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; transition: visibility 0.2s, opacity 0.2s ease;
}
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-container {
    background: rgba(10,22,35,0.95); backdrop-filter: blur(20px);
    border-radius: 48px; max-width: 520px; width: 90%;
    border: 1px solid rgba(44,255,158,0.6);
    box-shadow: 0 30px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(44,255,158,0.3);
    padding: 32px 28px 40px; text-align: center;
    transform: scale(0.96); transition: transform 0.2s; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-container { transform: scale(1); }
.modal-container h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, #9effcf);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px;
}
.price-tag {
    font-size: 2.5rem; font-weight: 800; color: #2cff9e;
    margin: 16px 0 8px; letter-spacing: -1px;
}
.price-tag small { font-size: 1rem; font-weight: normal; color: #aad4ff; }
.modal-desc { color: #c2e0ff; margin-bottom: 28px; font-size: 0.9rem; padding: 0 12px; }
.pay-methods { display: flex; justify-content: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.pay-icon {
    background: rgba(0,20,25,0.7); border-radius: 60px; padding: 8px 20px;
    border: 1px solid #2c9b5e; font-weight: 600; display: inline-flex;
    align-items: center; gap: 8px; font-size: 1rem; color: #ccffdd; cursor: pointer;
}
.pay-icon.active { border-color: #2cff9e; box-shadow: 0 0 10px #2cff9e50; background: rgba(44,255,158,0.15); }
.btn-pay {
    background: linear-gradient(95deg, #1d7a4a, #13a65a); border: none; width: 100%;
    padding: 16px; border-radius: 60px; font-size: 1.2rem; font-weight: 800;
    color: white; cursor: pointer; transition: 0.2s;
    box-shadow: 0 0 12px #2cff9e80; margin-top: 8px;
}
.btn-pay:hover {
    background: linear-gradient(95deg, #2d9f62, #1fcb74);
    transform: scale(1.01); box-shadow: 0 0 20px #2cff9e;
}
.btn-cancel {
    background: rgba(40,55,70,0.8); border: 1px solid #5f8daa;
    margin-top: 14px; width: 100%; padding: 12px; border-radius: 60px;
    color: #cfecff; cursor: pointer; transition: 0.2s;
}
.btn-cancel:hover { background: rgba(70,95,120,0.9); }

/* Toast */
.toast-msg {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #1e2f3aee; backdrop-filter: blur(10px); padding: 12px 24px;
    border-radius: 60px; color: #ccffdd; border-left: 4px solid #2cff9e;
    z-index: 1100; font-weight: 500; pointer-events: none;
    opacity: 0; transition: opacity 0.2s; white-space: nowrap; font-size: 0.9rem;
}

/* 登录/注册/忘记密码 专用样式 */
.auth-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; position: relative; z-index: 2;
}
.auth-box {
    background: rgba(10,22,35,0.9); backdrop-filter: blur(20px);
    border-radius: 48px; border: 1px solid rgba(44,255,158,0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    padding: 40px 36px; width: 100%; max-width: 480px;
}
.auth-box h2 {
    font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #9effcf);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-box .auth-sub { text-align: center; color: #9cc8e8; margin-bottom: 28px; font-size: 0.9rem; }
.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-group label { font-size: 0.85rem; margin-bottom: 6px; }
.auth-form input { padding: 12px 16px; border-radius: 16px; font-size: 0.95rem; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.btn-code {
    background: linear-gradient(95deg, #1b6e43, #0f8a4e); color: white; border: none;
    padding: 12px 16px; border-radius: 16px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; white-space: nowrap; transition: 0.2s;
}
.btn-code:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-code:hover:not(:disabled) { box-shadow: 0 0 10px #2cff9e; }
.auth-links {
    display: flex; justify-content: space-between; margin-top: 20px;
    font-size: 0.85rem; color: #8aaec0;
}
.auth-links a { color: #2cff9e; text-decoration: none; transition: 0.2s; }
.auth-links a:hover { text-shadow: 0 0 6px #2cff9e; }
.auth-error {
    background: rgba(255,50,50,0.15); border: 1px solid rgba(255,50,50,0.4);
    color: #ff8888; padding: 10px 16px; border-radius: 16px;
    margin-bottom: 20px; font-size: 0.85rem;
}
.auth-success {
    background: rgba(44,255,158,0.15); border: 1px solid rgba(44,255,158,0.4);
    color: #88ffcc; padding: 10px 16px; border-radius: 16px;
    margin-bottom: 20px; font-size: 0.85rem;
}

/* 用户中心 */
.user-layout {
    display: grid; grid-template-columns: 260px 1fr; gap: 24px;
    padding: 24px 0; min-height: calc(100vh - 200px);
}
.user-sidebar {
    background: rgba(12,24,36,0.7); backdrop-filter: blur(10px);
    border-radius: 32px; border: 1px solid rgba(44,155,94,0.3);
    padding: 24px; height: fit-content;
}
.user-sidebar .user-info { text-align: center; margin-bottom: 24px; }
.user-sidebar .user-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #2cff9e, #0f8a4e);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 12px;
}
.user-sidebar .user-name { font-weight: 700; font-size: 1.1rem; color: #fff; }
.user-sidebar .user-balance {
    color: #2cff9e; font-size: 0.9rem; margin-top: 4px;
}
.user-nav a {
    display: block; padding: 10px 14px; border-radius: 16px;
    color: #cfecff; text-decoration: none; margin-bottom: 6px;
    font-size: 0.9rem; transition: 0.2s;
}
.user-nav a:hover, .user-nav a.active {
    background: rgba(44,255,158,0.15); color: #2cff9e;
}
.user-main {
    background: rgba(12,24,36,0.6); backdrop-filter: blur(10px);
    border-radius: 32px; border: 1px solid rgba(44,155,94,0.3);
    padding: 28px;
}
.user-main h2 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #9effcf);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 报告列表 */
.report-item {
    background: rgba(0,15,25,0.5); border: 1px solid rgba(44,155,94,0.3);
    border-radius: 24px; padding: 20px; margin-bottom: 16px;
    transition: 0.2s;
}
.report-item:hover { border-color: #2cff9e; background: rgba(44,255,158,0.05); }
.report-item h4 { color: #ccffdd; margin-bottom: 6px; font-size: 1.1rem; }
.report-item .report-meta { color: #8aaec0; font-size: 0.8rem; margin-bottom: 10px; }
.report-item .report-content { color: #bbddff; font-size: 0.85rem; line-height: 1.6; }

/* 充值 */
.recharge-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.recharge-amounts .amount-btn {
    background: rgba(0,15,25,0.6); border: 1px solid #2c9b5e;
    border-radius: 16px; padding: 16px; text-align: center;
    cursor: pointer; transition: 0.2s; color: #cfecff;
}
.recharge-amounts .amount-btn:hover, .recharge-amounts .amount-btn.active {
    border-color: #2cff9e; background: rgba(44,255,158,0.15); color: #2cff9e;
}
.recharge-amounts .amount-btn .amount-val { font-size: 1.3rem; font-weight: 700; }
.recharge-amounts .amount-btn .amount-label { font-size: 0.75rem; color: #8aaec0; margin-top: 4px; }
.qrcode-box {
    background: white; padding: 16px; border-radius: 16px;
    display: inline-block; margin: 16px 0;
}
.qrcode-box img { max-width: 200px; display: block; }
.qrcode-tip { color: #ffaa44; font-size: 0.85rem; margin-top: 12px; }

/* 响应式 */
@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .tool-panel { padding: 22px 18px; border-radius: 32px; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .hero { padding: 36px 0 28px; }
    .card { padding: 18px 14px; }
    .param-row { grid-template-columns: 1fr; gap: 18px; }
    select, input { font-size: 16px; padding: 12px 16px; }
    .user-layout { grid-template-columns: 1fr; }
    .user-sidebar { margin-bottom: 20px; }
    .recharge-amounts { grid-template-columns: repeat(2, 1fr); }
    .auth-box { padding: 28px 22px; border-radius: 32px; }
    .modal-container { padding: 24px 20px; border-radius: 32px; }
}
@media (min-width: 1024px) {
    .card-grid { gap: 30px; }
}

footer {
    text-align: center; padding: 32px 20px;
    border-top: 1px solid rgba(44,155,94,0.3);
    color: #8aaec0; font-size: 0.75rem; margin-top: 30px;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
}
