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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #F5F0EB;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(210, 180, 140, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(180, 160, 130, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    color: #4A4540;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ========== 容器 ========== */
.container {
    background: rgba(255, 253, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(200, 185, 165, 0.4);
    box-shadow:
        0 4px 24px rgba(120, 100, 80, 0.08),
        0 1px 3px rgba(120, 100, 80, 0.06);
    padding: 36px 40px;
    max-width: 1200px;
    width: 100%;
}

.auth-container {
    max-width: 420px;
    margin-top: 10vh;
    padding: 44px 40px;
    border-top: 3px solid #C8A882;
}

/* ========== 品牌 ========== */
.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-name {
    font-size: 28px;
    font-weight: 900;
    color: #6B5D4F;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 13px;
    color: #A09080;
    margin-top: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========== 标题 ========== */
h1, h2 {
    color: #5C4F42;
    margin-bottom: 0;
    font-weight: 700;
}

h1 {
    font-size: 22px;
}

/* ========== 页面头部 ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(180, 160, 130, 0.3);
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #6B5D4F;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(180, 160, 130, 0.4);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #4A4540;
}

input:focus {
    outline: none;
    border-color: #C8A882;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.15);
}

input::placeholder {
    color: #C0B8A8;
}

/* ========== 按钮 ========== */
.btn {
    width: 100%;
    padding: 11px;
    background: #6B5D4F;
    color: #FFFDF8;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #5A4D40;
    box-shadow: 0 4px 16px rgba(107, 93, 79, 0.25);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(107, 93, 79, 0.2);
}

.btn-sm {
    width: auto;
    padding: 2px 10px;
    font-size: 12px;
    min-height: auto;
    line-height: 1.4;
    border-radius: 6px;
    letter-spacing: 1px;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid #C8A882;
    color: #8B7355;
}

.btn-secondary:hover {
    background: rgba(200, 168, 130, 0.1);
    box-shadow: 0 4px 16px rgba(200, 168, 130, 0.2);
}

.btn-danger {
    background: transparent;
    border: 1.5px solid #D4735E;
    color: #D4735E;
    width: auto;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger:hover {
    background: rgba(212, 115, 94, 0.08);
    box-shadow: 0 4px 16px rgba(212, 115, 94, 0.15);
}

/* ========== 链接 ========== */
.link {
    text-align: center;
    margin-top: 24px;
    color: #A0845C;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.link:hover {
    color: #6B5D4F;
    text-decoration: underline;
}

/* ========== 提示信息 ========== */
.error {
    background: rgba(212, 115, 94, 0.08);
    color: #C0573E;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #D4735E;
    font-size: 14px;
}

.success {
    background: rgba(120, 160, 100, 0.08);
    color: #5A8040;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #78A064;
    font-size: 14px;
}

/* ========== 仪表板 ========== */
.dashboard {
    display: grid;
    gap: 20px;
}

/* ========== 卡片 ========== */
.card {
    background: rgba(255, 253, 250, 0.8);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(200, 185, 165, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    border-color: rgba(200, 168, 130, 0.5);
    box-shadow: 0 6px 24px rgba(120, 100, 80, 0.1);
}

.card h3 {
    margin-bottom: 16px;
    color: #5C4F42;
    font-size: 16px;
    font-weight: 700;
    padding-left: 12px;
    border-left: 3px solid #C8A882;
}

/* ========== 信息网格 ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.info-item {
    background: rgba(245, 240, 235, 0.6);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #C8A882;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(245, 240, 235, 0.9);
    box-shadow: 0 2px 12px rgba(120, 100, 80, 0.08);
}

.info-label {
    font-size: 11px;
    color: #A09080;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: #4A4540;
    word-break: break-all;
}

/* ========== 导航栏 ========== */
.nav {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 6px;
    background: rgba(245, 240, 235, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(200, 185, 165, 0.2);
}

.nav-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    color: #A09080;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1px;
}

.nav-btn:hover {
    background: rgba(200, 168, 130, 0.1);
    color: #6B5D4F;
    border-color: rgba(200, 168, 130, 0.3);
}

.nav-btn.active {
    background: #6B5D4F;
    color: #FFFDF8;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(107, 93, 79, 0.2);
}

/* ========== 表格 ========== */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(200, 185, 165, 0.2);
    font-size: 14px;
}

th {
    background: rgba(245, 240, 235, 0.6);
    font-weight: 600;
    color: #6B5D4F;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

tbody tr {
    transition: all 0.2s;
}

tbody tr:hover {
    background: rgba(245, 240, 235, 0.5);
}

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

/* ========== 添加表单 ========== */
.add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-form input {
    flex: 1;
}

.add-form button {
    width: auto;
    padding: 11px 28px;
    border-radius: 8px;
    white-space: nowrap;
}

/* ========== 退出按钮 ========== */
.logout-btn {
    background: transparent;
    color: #D4735E;
    border: 1.5px solid rgba(212, 115, 94, 0.4);
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(212, 115, 94, 0.08);
    border-color: #D4735E;
}

/* ========== 警告框 ========== */
.warning-box {
    padding: 14px 18px;
    background: rgba(220, 180, 80, 0.08);
    border: 1px solid rgba(220, 180, 80, 0.3);
    border-radius: 8px;
    color: #B08830;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
}

/* ========== 复制图标 ========== */
.copy-icon {
    cursor: pointer;
    font-size: 14px;
    color: #A0845C;
    margin-left: 8px;
    transition: all 0.3s;
    user-select: none;
}

.copy-icon:hover {
    color: #6B5D4F;
}

/* ========== 充值套餐 ========== */
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(200, 185, 165, 0.15);
    transition: all 0.3s;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list li:hover {
    background: rgba(245, 240, 235, 0.5);
}

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

.pricing-price {
    font-weight: 700;
    color: #B08830;
    min-width: 50px;
}

.pricing-desc {
    color: #A09080;
    font-size: 14px;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(245, 240, 235, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(180, 160, 130, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 160, 130, 0.6);
}

/* ========== code标签 ========== */
code {
    background: rgba(200, 185, 165, 0.15);
    color: #6B5D4F;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(200, 185, 165, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .auth-container {
        margin-top: 5vh;
        padding: 32px 24px;
    }

    h1 {
        font-size: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 4px;
    }

    .nav-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .add-form {
        flex-direction: column;
    }

    .add-form button {
        width: 100%;
    }

    .pricing-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ========== 选中文字 ========== */
::selection {
    background: rgba(200, 168, 130, 0.3);
    color: #4A4540;
}
