@font-face {
    font-family: '荆南俊俊';
    src: url('荆南俊俊.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f0f8f8;
    --bg-gradient: linear-gradient(135deg, #e0f2f8 0%, #c8f0e8 100%);
    --surface: rgba(255, 255, 255, 0.6);
    --surface2: rgba(248, 255, 255, 0.8);
    --accent: #2a7c8c;
    --accent2: #19a7a7;
    --accent3: #3ea0af;
    --accent-glass: rgba(42, 124, 140, 0.15);
    --text: #0f2b30;
    --text2: #4a6a6f;
    --border: rgba(42, 124, 140, 0.2);
    --shadow: 0 4px 12px rgba(42, 124, 140, 0.12);
    --glow: rgba(42, 124, 140, 0.25);
}

body {
    font-family: 'PingFang SC', '荆南俊俊', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(42, 124, 140, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.navbar.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 40px rgba(42, 124, 140, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 10px 24px;
    height: 52px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.scrolled .navbar-inner {
    height: 46px;
    padding: 8px 22px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 1px 2px rgba(42, 124, 140, 0.3));
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.3s;
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text);
}

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

.hero {
    position: relative;
    z-index: 1;
    padding: 160px 24px 100px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-glass);
    border: 1px solid rgba(42, 124, 140, 0.25);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
    background: linear-gradient(135deg, #0f4a55 0%, #1a8a8a 40%, #19a7a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 124, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(42, 124, 140, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text2);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.5s ease both;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.card:hover {
    border-color: rgba(42, 124, 140, 0.5);
    box-shadow: 0 12px 40px rgba(42, 124, 140, 0.2), 0 0 40px var(--glow);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image .img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: var(--accent);
    letter-spacing: 0.03em;
}

.card-body {
    padding: 20px 24px 24px;
}

.card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.card-body p {
    font-size: 0.88rem;
    color: var(--text2);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer {
    text-align: center;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    color: var(--text2);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.footer .heart {
    color: #e0507a;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 43, 48, 0.5);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    box-shadow: 0 20px 60px rgba(42, 124, 140, 0.2);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.5);
    color: var(--text2);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--accent);
}

.modal h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal .modal-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-glass);
    color: var(--accent);
    margin-bottom: 16px;
}

.modal .modal-desc {
    font-size: 0.92rem;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal .modal-link {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.modal-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.modal-links .modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-links .modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(42, 124, 140, 0.45);
    filter: brightness(1.08);
}

.modal-links .modal-link:nth-child(odd):last-child {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .modal-links {
        grid-template-columns: 1fr;
    }
    .modal-links .modal-link:nth-child(odd):last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 120px 20px 60px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}