/**
 * PicNAS 认证相关样式
 * 版本: v2026.01.11
 */

/* 导航栏按钮样式 */
.btn-text {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-text:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.btn-primary-sm {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

/* 认证弹窗样式 */
.modal-auth {
    max-width: 420px;
    padding: 0;
}

.modal-auth .modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}

.modal-auth .modal-body {
    padding: 32px;
}

.modal-auth .form-group {
    margin-bottom: 20px;
}

.modal-auth .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.modal-auth .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-auth .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-auth .error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 6px;
    display: none;
}

.modal-auth .error-message:not(:empty) {
    display: block;
}

.modal-auth .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 个人中心弹窗 */
.modal-large {
    max-width: 900px;
    width: 90%;
}

.user-center-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.user-info-card,
.recharge-history-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
}

.user-info-card h4,
.recharge-history-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.info-row .value {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

/* 充值历史表格 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table thead {
    background: var(--bg-white);
    position: sticky;
    top: 0;
}

.history-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}

.history-table tbody tr:hover {
    background: var(--bg-white);
}

.order-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-light);
}

.status-success {
    color: #38a169;
    font-weight: 600;
}

.status-pending {
    color: #ed8936;
    font-weight: 600;
}

.status-failed {
    color: #e53e3e;
    font-weight: 600;
}

.text-muted {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

/* 下载引导样式 */
.download-guide {
    text-align: center;
    padding: 20px 0;
}

.guide-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.download-guide h4 {
    color: var(--text-dark);
    font-weight: 600;
}

.download-guide p {
    max-width: 400px;
    margin: 0 auto;
}

.download-guide .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-auth,
    .nav-user {
        display: none !important;
    }

    .user-center-content {
        grid-template-columns: 1fr;
    }

    .modal-large {
        width: 95%;
    }

    .modal-auth {
        width: 90%;
    }

    .history-table {
        font-size: 12px;
    }

    .history-table th,
    .history-table td {
        padding: 8px 4px;
    }
}

/* 移动端菜单中添加登录按钮 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    /* 在移动端菜单中添加登录/注册按钮 */
    .nav-menu::after {
        content: '';
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
}
