/* ==========================================
   湖南科技学院迎新网 — 样式表
   ========================================== */

/* --- CSS 变量 --- */
:root {
    --primary: #1a6fb5;
    --primary-dark: #14578a;
    --primary-light: #e8f4fd;
    --accent: #f0a030;
    --accent-light: #fff8ed;
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1100px;
    --nav-height: 64px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 容器 --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1); }

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-menu .nav-link {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.25s;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--text);
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f3b5e 0%, #1a6fb5 40%, #2196f3 70%, #64b5f6 100%);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 8px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.hero-welcome {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 36px;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.btn-primary {
    background: var(--white);
    color: var(--primary);
}
.btn-primary:hover {
    background: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Hero 滚动提示 */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    z-index: 2;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
}
.scroll-arrow { font-size: 1.4rem; margin-top: 2px; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- Section 通用 --- */
.section {
    padding: 80px 0;
}
.section:nth-child(even) { background: var(--white); }

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 0.98rem;
}
.subsection-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--primary-dark);
}

/* --- 学校概况 --- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.overview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.overview-card .card-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
}
.overview-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}
.overview-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- 时间线 --- */
.timeline {
    position: relative;
    padding-left: 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), #bbdefb);
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
}
.timeline-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(26, 111, 181, 0.35);
}
.timeline-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    flex: 1;
}
.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
}
.timeline-content p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.6;
}
.timeline-content small {
    color: #8b9aab;
}

/* --- 材料清单 --- */
.checklist {
    background: var(--accent-light);
    border: 1px solid #fde2b8;
    border-radius: var(--radius);
    padding: 28px 32px;
}
.checklist ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 24px;
}
.checklist li {
    padding: 6px 0;
    font-size: 0.96rem;
}

/* --- 交通指南 --- */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.transport-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}
.transport-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.transport-card .card-icon { font-size: 2.4rem; margin-bottom: 10px; }
.transport-card h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.transport-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- 校园生活 --- */
.life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.life-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.life-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.life-img {
    font-size: 3.4rem;
    text-align: center;
    padding: 28px 0 12px;
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
}
.life-body {
    padding: 20px 24px 24px;
}
.life-body h3 {
    font-size: 1.08rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.life-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- FAQ --- */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.08);
}
.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.99rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}
.faq-item[open] summary { color: var(--primary); }
.faq-answer {
    padding: 0 24px 20px;
}
.faq-answer p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: #0f3b5e;
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    line-height: 2;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- 滚动渐入动画 --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   响应式设计
   ========================================== */

/* 平板 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 2px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transition: right 0.35s ease;
    }
    .nav-menu.open { right: 0; }
    .hamburger { display: flex; }

    .hero-title { letter-spacing: 2px; }
    .hero-subtitle { letter-spacing: 4px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 200px; text-align: center; }

    .section { padding: 56px 0; }
    .timeline::before { left: 19px; }
    .timeline-marker { width: 40px; height: 40px; font-size: 1rem; }
    .timeline-item { gap: 16px; }

    .checklist ul { grid-template-columns: 1fr; }
}

/* 手机 */
@media (max-width: 480px) {
    .nav-logo { font-size: 1rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .transport-grid { grid-template-columns: 1fr; }
    .life-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
