@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap);
/* Custom CSS styles */

/* 导入Google Fonts */

/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(102,126,234,0.25), transparent), radial-gradient(1000px 500px at 90% 20%, rgba(118,75,162,0.25), transparent), #0b1020;
    min-height: 100vh;
}

/* 导航栏美化 */
.navbar {
    background: rgba(12,16,32,0.8) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand {
    font-weight: 700;
    color: #8ab4ff !important;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 按钮美化 */
.btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45);
    transform: translateY(-2px);
}

/* 卡片美化 */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px;
    font-weight: 600;
}

/* 表格美化 */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table td {
    padding: 12px 15px;
    border-color: #e9ecef;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* 表单美化 */
.form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

/* 代码块美化 */
code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Inter', monospace;
}

pre {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

pre code {
    background: none;
    color: #2d3748;
    padding: 0;
}

/* 徽章美化 */
.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.8em;
}

/* 警告框美化 */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

/* 进度条美化 */
.progress {
    border-radius: 20px;
    height: 8px;
    background: rgba(0,0,0,0.1);
    overflow: hidden;
}

.progress-bar {
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 文档系统专用样式 */
.docs-sidebar {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin-bottom: 20px;
}

.docs-main {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
}

.method-badge {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.endpoint-card {
    border-left: 5px solid #007bff;
    border-radius: 15px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.endpoint-card.post { border-left-color: #28a745; }
.endpoint-card.get { border-left-color: #17a2b8; }
.endpoint-card.put { border-left-color: #ffc107; }
.endpoint-card.delete { border-left-color: #dc3545; }

.response-example {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    font-family: 'Fira Code', 'Inter', monospace;
    font-size: 0.85rem;
    padding: 20px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.landing { position: relative; min-height: calc(100vh - 80px); display: grid; place-items: center; overflow: hidden; }
.landing-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(138,180,255,0.05) 1px, transparent 1px); background-size: 22px 22px; }
.landing-core { position: relative; z-index: 1; text-align: center; }
.brand { font-size: 58px; font-weight: 900; letter-spacing: 6px; background: linear-gradient(90deg, #8ab4ff, #c084fc, #8ab4ff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
.actions { margin-top: 22px; display: inline-flex; gap: 18px; }
.action-btn { width: 56px; height: 56px; border-radius: 50%; display: inline-block; position: relative; box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.4); }
.action-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; filter: blur(6px); opacity: 0.8; }
.action-btn.primary { background: radial-gradient(#1b2b5f, #0f1733); }
.action-btn.secondary { background: radial-gradient(#3a1f61, #140d26); }
.action-btn.info { background: radial-gradient(#113644, #0c1626); }
.action-btn.primary::after { background: conic-gradient(from 180deg, rgba(138,180,255,0.6), rgba(138,180,255,0.05), rgba(138,180,255,0.6)); }
.action-btn.secondary::after { background: conic-gradient(from 180deg, rgba(192,132,252,0.6), rgba(192,132,252,0.05), rgba(192,132,252,0.6)); }
.action-btn.info::after { background: conic-gradient(from 180deg, rgba(56,189,248,0.6), rgba(56,189,248,0.05), rgba(56,189,248,0.6)); }
.action-btn:hover { transform: translateY(-4px); transition: transform 0.2s ease; }
@keyframes sheen { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.hero {
    position: relative;
    padding: 80px 0 60px;
}

.hero-decor .shape {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(20px);
}

.hero-decor .s1 {
    top: -40px;
    left: -40px;
    background: rgba(102, 126, 234, 0.35);
    animation: float 6s ease-in-out infinite;
}

.hero-decor .s2 {
    right: 10%;
    top: 10%;
    background: rgba(118, 75, 162, 0.35);
    animation: float 7s ease-in-out infinite;
}

.hero-decor .s3 {
    bottom: -30px;
    left: 20%;
    background: rgba(102, 126, 234, 0.25);
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    color: #fff;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: glowPulse 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 20px;
}

.glass-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
}

.stat-card {
    border: none;
    border-radius: 18px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes glowPulse {
    0% { text-shadow: 0 6px 20px rgba(0,0,0,0.2); }
    50% { text-shadow: 0 10px 30px rgba(0,0,0,0.25); }
    100% { text-shadow: 0 6px 20px rgba(0,0,0,0.2); }
}
