/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-2);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== Header ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header.scrolled { background: rgba(15, 23, 42, 0.95); box-shadow: var(--shadow-lg); }
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon svg { display: block; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 1px; }

/* Nav */
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block; padding: 8px 20px; font-size: 0.95rem; font-weight: 500;
    color: rgba(255,255,255,0.75); border-radius: 20px; transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    color: #fff; background: rgba(255,255,255,0.12);
}
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
    display: block; width: 26px; height: 2px;
    background: #fff; border-radius: 2px; transition: var(--transition);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:first-child { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:last-child { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Hero Section ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2b4a 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(245,158,11,0.08) 0%, transparent 40%);
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: 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='1'%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");
}
.hero-content {
    position: relative; z-index: 2;
    padding: 120px 0 80px; max-width: 700px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.3);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
    color: var(--primary-light); margin-bottom: 28px; font-weight: 500;
}
.hero-badge .dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.hero h1 {
    font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1.2;
    margin-bottom: 16px; letter-spacing: 2px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.3rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; font-weight: 300;
}
.hero-desc {
    font-size: 1.05rem; color: rgba(255,255,255,0.55); margin-bottom: 40px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-size: 1rem; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(37,99,235,0.5); }
.btn-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero-stats {
    display: flex; gap: 48px; margin-top: 56px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2rem; font-weight: 800; color: #fff; line-height: 1;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 6px; }
.hero-visual {
    position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
    z-index: 1; width: 50%;
}
.hero-visual img { opacity: 0.3; max-width: 100%; }

/* ===== Section Common ===== */
.section {
    padding: 100px 0;
}
.section-header {
    text-align: center; margin-bottom: 64px;
}
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    color: var(--primary); background: rgba(37,99,235,0.08);
    padding: 4px 14px; border-radius: 50px; letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
    font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem; color: var(--gray); max-width: 600px; margin: 0 auto;
}

/* ===== About Section (Home) ===== */
.about-section { background: var(--white); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-image { position: relative; }
.about-image .img-wrapper {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image .img-wrapper img { width: 100%; }
.about-image .exp-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary); color: #fff; padding: 20px 28px;
    border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg);
}
.exp-badge .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.exp-badge .text { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }
.about-text h3 { font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.about-text p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; }

/* ===== Features Grid ===== */
.features-section { background: var(--bg); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
    background: var(--white); border-radius: var(--radius);
    padding: 36px 28px; transition: var(--transition);
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transition: transform 0.4s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    font-size: 1.5rem; color: var(--primary); transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; transform: scale(1.05);
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; }

/* ===== Gallery ===== */
.gallery-section { background: var(--white); }
.gallery-filter {
    display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 22px; border-radius: 50px; border: 1px solid var(--border);
    background: var(--white); cursor: pointer; font-size: 0.9rem; color: var(--gray);
    transition: var(--transition); font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); position: relative;
    cursor: pointer; transition: var(--transition);
    aspect-ratio: 4/3; background: var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.1) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.gallery-overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center; opacity: 0;
    pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none;
    color: #fff; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none;
    color: #fff; font-size: 1.5rem; cursor: pointer;
    transition: var(--transition);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ===== Contact Page ===== */
.contact-section { background: var(--bg); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; display: flex; align-items: center; gap: 16px;
    transition: var(--transition); border: 1px solid var(--border);
    text-decoration: none; color: inherit; cursor: pointer;
}
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.contact-card-icon {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary);
}
.contact-card-info h4 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.contact-card-info span { font-size: 0.9rem; color: var(--gray); }
.contact-qr {
    background: var(--white); border-radius: var(--radius);
    padding: 48px; text-align: center;
    border: 1px solid var(--border); display: flex;
    flex-direction: column; align-items: center; justify-content: center;
}
.contact-qr .qr-placeholder {
    width: 180px; height: 180px; margin: 0 auto 20px;
    background: var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--gray);
}
.contact-qr h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 6px; }
.contact-qr p { font-size: 0.9rem; color: var(--gray); }

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0; text-align: center; color: #fff;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-section .btn { background: #fff; color: var(--primary); }
.cta-section .btn:hover { background: var(--bg); transform: translateY(-2px); }

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 140px 0 70px; text-align: center; position: relative; overflow: hidden;
}
.page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px; background: linear-gradient(to top, var(--bg), transparent);
}
.page-header h1 { font-size: 2.8rem; font-weight: 900; color: #fff; position: relative; z-index: 1; }
.page-header p { font-size: 1.1rem; color: rgba(255,255,255,0.6); margin-top: 12px; position: relative; z-index: 1; }

/* ===== Footer ===== */
.site-footer {
    background: var(--dark); color: rgba(255,255,255,0.65); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: 10px; }
.social-link {
    padding: 8px 18px; background: rgba(255,255,255,0.08);
    border-radius: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.social-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
    text-align: center; font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.6rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0;
        background: rgba(15,23,42,0.97); backdrop-filter: blur(20px);
        padding: 20px 0; opacity: 0; pointer-events: none;
        transform: translateY(-10px); transition: var(--transition);
    }
    .main-nav.open { opacity: 1; pointer-events: all; transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 4px; padding: 0 20px; }
    .main-nav a { padding: 12px 20px; font-size: 1.05rem; border-radius: var(--radius-sm); }
    
    .features-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .hero-actions { flex-direction: column; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .page-header { padding: 120px 0 50px; }
    .page-header h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
