/**
 * 品兑合作平台 - 自定义样式
 * 黑金金融质感设计
 */

/* ==================== 基础变量 ==================== */
:root {
    --color-primary: #0A0A0A;
    --color-accent: #D4AF37;
    --color-accent-light: #F0E68C;
    --color-section: #121212;
    --color-text: #FFFFFF;
    --transition-speed: 0.3s;
}

/* ==================== 全局样式 ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

/* ==================== 导航栏样式 ==================== */
.navbar {
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

.navbar-brand {
    color: var(--color-accent) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==================== 按钮样式 ==================== */
.btn-gold {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B8962D 100%);
    color: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-outline-gold {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-outline-gold:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ==================== 卡片样式 ==================== */
.card-dark {
    background: var(--color-section);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.card-dark:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

/* ==================== 标题样式 ==================== */
.section-title {
    color: var(--color-accent);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    margin: 1rem auto 0;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ==================== KV区域样式 ==================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a1a 50%, var(--color-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 1.5rem auto;
}

/* ==================== 表单样式 ==================== */
.form-control-dark {
    background-color: var(--color-section);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-text);
    transition: all var(--transition-speed) ease;
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== 状态徽章 ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-approved {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* ==================== 分类图标样式 ==================== */
.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.category-item:hover .category-icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B8962D 100%);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.category-item:hover .category-icon i {
    color: var(--color-primary);
}

.category-item:hover .category-name {
    color: var(--color-accent);
}

/* ==================== 用户菜单样式 ==================== */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #B8962D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
}

/* ==================== 下拉菜单样式 ==================== */
.dropdown-menu {
    background-color: var(--color-section);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-item {
    color: var(--color-text);
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
}

/* ==================== 分页样式 ==================== */
.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-section);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.pagination-item:hover,
.pagination-item.active {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 动画样式 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--color-section) 25%, rgba(212, 175, 55, 0.1) 50%, var(--color-section) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==================== 加载状态 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-gold {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Toast通知 ==================== */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ==================== 用户中心侧边栏 ==================== */
.sidebar-menu {
    background-color: var(--color-section);
    border-radius: 8px;
    padding: 1rem 0;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.sidebar-menu .menu-item:hover,
.sidebar-menu .menu-item.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.sidebar-menu .menu-item i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* ==================== 空状态样式 ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ==================== 滚动指示器 ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== 时间轴样式 ==================== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent), rgba(212, 175, 55, 0.1));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translateX(-5px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==================== 合作伙伴卡片 ==================== */
.partner-card {
    background: var(--color-section);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.partner-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}
