﻿/* ============================================
   桂林理工大学小自考CMS - 主样式文件
   版本: 3.0 - UI优化版
   ============================================ */

/* CSS变量 - 优化配色 */
:root {
    /* 品牌色 - 桂林理工大学蓝（更鲜亮） */
    --brand-1: #1a5fb4;
    --brand-2: #3584e4;
    --brand-3: #62a0ea;
    --brand-dark: #0d3b7a;
    --brand-light: #e8f1fc;

    /* 辅助色 - 活力橙 */
    --accent: #ff6b35;
    --accent-light: #fff0eb;

    /* 功能色 */
    --success: #2ec27e;
    --warning: #e5a50a;
    --error: #c01c28;

    /* 文字色 */
    --ink: #1c1c1c;
    --ink-soft: #5e5c64;
    --ink-light: #999;

    /* 背景色 */
    --surface: #ffffff;
    --bg: #f8f9fc;
    --bg-dark: #1a1a2e;

    /* 边框 */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* 圆角 */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* 阴影 - 更柔和 */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(53, 132, 228, 0.15);

    /* 渐变 - 更丰富 */
    --grad: linear-gradient(135deg, #1a5fb4 0%, #3584e4 50%, #62a0ea 100%);
    --grad-accent: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --grad-dark: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* 容器 */
    --container: 1200px;
}

/* 重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* 容器 */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   按钮样式 - 优化
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(26, 95, 180, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 95, 180, 0.35);
}

.btn-accent {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35);
}

.btn-outline {
    border: 2px solid var(--brand-1);
    color: var(--brand-1);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-1);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* ============================================
   导航栏 - 优化
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: var(--brand-1);
}

.nav-logo img {
    height: 42px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--brand-1);
    background: var(--brand-light);
}

.nav-menu a.active {
    color: var(--brand-1);
    font-weight: 600;
    background: var(--brand-light);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    font-weight: 700;
    color: var(--brand-1);
    font-size: 15px;
}

/* 汉堡菜单 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero区域 - 优化
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--grad);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 60px 60px;
    opacity: 0.5;
    animation: heroDrift 30s linear infinite;
}

@keyframes heroDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.6s ease;
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-text h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .lead {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.tag {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.tag b {
    color: #fbbf24;
    font-size: 16px;
}

/* Hero右侧卡片 - 优化 */
.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--grad-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: fadeInRight 0.8s ease 0.3s both;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-card .ribbon {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    animation: bounce 2s ease infinite;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--ink);
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.mini-stat:hover {
    background: var(--brand-light);
    margin: 0 -20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
}

.mini-stat:last-child {
    border-bottom: none;
}

.mini-stat span {
    color: var(--ink-soft);
    font-size: 14px;
}

.mini-stat b {
    color: var(--brand-1);
    font-size: 17px;
    font-weight: 700;
}

.hero-float {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-float .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.f1 {
    top: 30px;
    left: 50%;
    margin-left: 60px;
    animation-delay: 0s;
}

.f2 {
    bottom: 60px;
    left: 50%;
    margin-left: 80px;
    animation-delay: 2s;
}

/* ============================================
   数据条 - 优化
   ============================================ */
.statbar {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.statbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.statbar-grid > div {
    padding: 36px 24px;
    text-align: center;
    border-right: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.statbar-grid > div::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--grad);
    transition: var(--transition);
}

.statbar-grid > div:hover::after {
    width: 60%;
}

.statbar-grid > div:hover {
    background: var(--brand-light);
}

.statbar-grid > div:last-child {
    border-right: none;
}

.statbar-grid .num {
    font-size: 40px;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.statbar-grid .lbl {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================
   通用区块 - 优化
   ============================================ */
.section {
    padding: 100px 0;
}

.section--tight {
    padding: 70px 0;
}

.section-head {
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: 40px;
    font-weight: 800;
    margin-top: 16px;
    letter-spacing: -0.5px;
}

.section-head p {
    font-size: 18px;
    color: var(--ink-soft);
    margin-top: 14px;
}

/* 深色区块 */
.section-dark {
    background: var(--grad-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(53, 132, 228, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 40%);
}

.section-dark .section-head {
    position: relative;
    z-index: 1;
}

.section-dark .section-head h2,
.section-dark .section-head p {
    color: #fff;
}

/* ============================================
   优势卡片 - 优化
   ============================================ */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.highlight-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.highlight-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(53, 132, 228, 0.2) 0%, rgba(98, 160, 234, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(53, 132, 228, 0.3) 0%, rgba(98, 160, 234, 0.2) 100%);
}

.highlight-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.highlight-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ============================================
   专业卡片 - 优化
   ============================================ */
.majors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.major-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.major-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-3);
}

.major-cover {
    height: 220px;
    background: var(--grad);
    position: relative;
    overflow: hidden;
}

.major-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.major-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.major-card:hover .major-cover img {
    transform: scale(1.08);
}

.major-body {
    padding: 32px;
}

.major-body h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.major-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--ink-soft);
}

.major-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.major-desc {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.major-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.major-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.major-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-light);
}

/* ============================================
   流程步骤 - 优化
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-3), var(--brand-1), var(--brand-3));
    z-index: 0;
    border-radius: 2px;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 10px 40px rgba(26, 95, 180, 0.3);
    transition: var(--transition);
    position: relative;
}

.step-num::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--brand-3);
    opacity: 0;
    transition: var(--transition);
    animation: spin 20s linear infinite;
}

.step-card:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(26, 95, 180, 0.4);
}

.step-card:hover .step-num::after {
    opacity: 0.5;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.step-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ============================================
   文章卡片 - 优化
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--brand-3);
}

.article-cover {
    height: 200px;
    background: var(--brand-light);
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-cover img {
    transform: scale(1.08);
}

.article-body {
    padding: 24px;
}

.article-cat {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-light);
    color: var(--brand-1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.article-body h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-light);
}

/* ============================================
   FAQ - 优化
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.faq-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-3);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--brand-light);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-1);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--brand-1);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer p {
    padding: 0 28px 22px;
    color: var(--ink-soft);
    line-height: 1.9;
}

.faq-answer ul,
.faq-answer ol {
    padding: 0 28px 8px 48px;
    color: var(--ink-soft);
    line-height: 1.9;
    margin: 0;
}

.faq-answer > :last-child {
    padding-bottom: 22px;
}

/* ============================================
   CTA区域 - 优化
   ============================================ */
.cta-section {
    background: var(--grad);
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: ctaGlow 6s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

/* ============================================
   页脚 - 优化
   ============================================ */
.footer {
    background: var(--grad-dark);
    color: #fff;
    padding: 70px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none; /* 装饰层不拦截点击，否则覆盖整个页脚导致所有链接无法点击 */
    background:
        radial-gradient(circle at 10% 20%, rgba(53, 132, 228, 0.08) 0%, transparent 40%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.footer-brand .logo {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-2);
    border-radius: 1px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 130px;
    height: 130px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.1);
}

.footer-qrcode img:hover {
    transform: scale(1.05);
    border-color: var(--brand-3);
}

.footer-qrcode p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.footer-icp {
    margin-top: 10px;
    font-size: 12px;
}

.footer-icp a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: #63b3ed;
}

.footer-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   表单 - 优化
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--surface);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 4px rgba(26, 95, 180, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ink-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 表单验证状态 */
.form-input.error,
.form-select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(192, 28, 40, 0.08);
}

.form-input.success,
.form-select.success {
    border-color: var(--success);
}

.form-error-msg {
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
}

/* ============================================
   咨询弹窗 - 优化
   ============================================ */
.consult-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consult-modal.show {
    display: flex;
}

.consult-card {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.consult-head {
    background: var(--grad);
    color: #fff;
    padding: 28px;
    text-align: center;
}

.consult-head h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.consult-head p {
    font-size: 14px;
    opacity: 0.9;
}

.consult-body {
    padding: 32px;
}

.consult-qrcode {
    text-align: center;
    padding: 24px;
}

.consult-qrcode img {
    width: 200px;
    height: 200px;
    margin: 0 auto 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ============================================
   浮动咨询按钮 - 优化
   ============================================ */
.float-contact {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.15);
}

.float-btn.phone {
    background: var(--grad);
    color: #fff;
}

.float-btn.wechat {
    background: #07c160;
    color: #fff;
}

.float-btn .tooltip {
    position: absolute;
    right: 75px;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* ============================================
   返回顶部 - 优化
   ============================================ */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--grad);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 40px rgba(26, 95, 180, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(26, 95, 180, 0.4);
}

/* ============================================
   响应式 - 优化
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
    }

    .highlight-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        box-shadow: var(--shadow);
        padding: 8px 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 70px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .statbar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .statbar-grid > div {
        padding: 24px 16px;
    }

    .statbar-grid .num {
        font-size: 32px;
    }

    .majors-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-float {
        display: none;
    }

    .float-contact {
        bottom: 80px;
        right: 20px;
    }

    .float-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 0 56px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .section {
        padding: 56px 0;
    }

    .section-head h2 {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .highlight-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .steps-grid::before {
        display: none;
    }
}

/* ============================================
   动画 - 优化
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 入场动画类 */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

/* 按钮发光效果 */
.btn-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25); }
    50% { box-shadow: 0 8px 40px rgba(255, 107, 53, 0.5); }
}

/* Hero粒子效果 */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

.particle.p1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle.p2 { top: 60%; left: 20%; animation-delay: 2s; width: 8px; height: 8px; }
.particle.p3 { top: 30%; left: 70%; animation-delay: 4s; width: 10px; height: 10px; }
.particle.p4 { top: 70%; left: 80%; animation-delay: 6s; }
.particle.p5 { top: 40%; left: 50%; animation-delay: 8s; width: 14px; height: 14px; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-40px) scale(1.3); opacity: 0.5; }
}

/* Hero波浪 */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* 浮动按钮顶部 */
.float-btn.top {
    background: var(--ink);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-btn.top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示消息 - 优化 */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 16px 32px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

/* 页面加载动画 - 优化 */
.page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.page-loader.hide {
    opacity: 0;
    pointer-events: none;
}

.page-loader .loader-content {
    text-align: center;
}

.page-loader .loader-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 18px;
}

.page-loader .loader-text {
    color: var(--ink-soft);
    font-size: 14px;
}

/* 数字动画 */
.count-up {
    display: inline-block;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   页脚友情链接
   ============================================ */
.friend-links {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    flex-wrap: wrap;
}

.friend-links-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    flex-shrink: 0;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.friend-links ul a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.friend-links ul a:hover {
    color: var(--accent, #c8a000);
}

.friend-links.hidden {
    display: none;
}
