/* 心理测评平台 - 公共样式 v2.0 */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #f97316;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.psych-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-logo i { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

/* 主内容 */
.psych-main {
    min-height: calc(100vh - 64px - 220px);
}

/* 底部 */
.psych-footer {
    background: var(--text);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-section p, .footer-section li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-section ul { list-style: none; }

.footer-section ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-section ul a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 通用卡片 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.card:hover { box-shadow: var(--shadow-lg); }

/* 标签 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-gray { background: var(--bg); color: var(--text-secondary); }

/* 响应式 */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 0.75rem 1rem; }
    .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
    .nav-link { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
}
