/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a4c7e;
    --primary-light: #1565a0;
    --primary-dark: #083358;
    --accent: #e8831a;
    --accent-light: #f5a623;
    --accent-dark: #c56a0a;
    --ocean: #0d6b96;
    --ocean-light: #4a9cc4;
    --dark: #0f1a2e;
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --bg: #f0f4f8;
    --bg-dark: #e2e8f0;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.15);
    --radius: 14px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 76, 126, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 51, 88, 0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-link {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.16);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #041428 0%, #083358 25%, #0a4c7e 50%, #0d6b96 75%, #064663 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(232,131,26,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(74,156,196,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(13,107,150,0.08) 0%, transparent 45%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 0.85; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.012) 2px,
            rgba(255,255,255,0.012) 4px
        );
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    animation: float 20s ease-in-out infinite;
}

.floating-element.elem-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.floating-element.elem-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -80px;
    animation-delay: -7s;
}

.floating-element.elem-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-30px) scale(1.05); }
    66% { transform: translateY(15px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 28px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--accent-light);
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(50px, 9vw, 88px);
    color: var(--white);
    font-weight: 900;
    letter-spacing: 18px;
    margin-bottom: 20px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, #ffffff 0%, #c8ddf0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 19px;
    color: rgba(255,255,255,0.72);
    letter-spacing: 6px;
    margin-bottom: 48px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: var(--accent);
    font-family: Georgia, serif;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    margin-top: 6px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 44px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 4px;
    border-radius: 30px;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--accent);
    color: #041428;
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(232,131,26,0.45);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ===== 通用区块样式 ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 5px 14px;
    background: rgba(10,76,126,0.07);
    border-radius: 20px;
}

.section-header h2 {
    font-size: 38px;
    color: var(--primary-dark);
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-header.light .section-label {
    color: var(--accent-light);
    background: rgba(255,255,255,0.1);
}

/* ===== 新城概况 ===== */
.overview {
    padding: 100px 0;
    background: var(--bg);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: start;
}

.overview-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.95;
}

.overview-text strong {
    color: var(--primary);
}

.overview-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.info-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent);
}

.info-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 14px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== 历史沿革 ===== */
.history {
    padding: 100px 0;
    background: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 56px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 36px);
}

.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 36px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 22px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(232,131,26,0.18);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 26px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding: 3px 12px;
    background: rgba(232,131,26,0.1);
    border-radius: 12px;
}

.timeline-content h3 {
    font-size: 19px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.85;
}

/* ===== 名胜景点 ===== */
.attractions {
    padding: 100px 0;
    background: var(--bg);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.attraction-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.attraction-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.attraction-img {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.attraction-emoji {
    font-size: 68px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    transition: transform 0.4s ease;
}

.attraction-card:hover .attraction-emoji {
    transform: scale(1.15);
}

.attraction-info {
    padding: 22px;
}

.attraction-info h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.attraction-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-dark);
    background: rgba(232,131,26,0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.attraction-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 美食特产 ===== */
.food {
    padding: 100px 0;
    background: linear-gradient(160deg, #041428 0%, #0a3d5c 35%, #0a4c7e 65%, #083358 100%);
    color: var(--white);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.food-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.food-card:hover {
    transform: translateY(-7px);
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.22);
}

.food-img-wrapper {
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
}

.food-emoji {
    font-size: 60px;
    transition: transform 0.4s ease;
}

.food-card:hover .food-emoji {
    transform: scale(1.15) rotate(-5deg);
}

.food-content {
    padding: 22px;
}

.food-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--accent-light);
}

.food-tag {
    display: inline-block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.food-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
}

/* ===== 民俗文化 ===== */
.culture {
    padding: 100px 0;
    background: var(--bg-dark);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.culture-item {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.culture-item:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent);
}

.culture-icon {
    font-size: 50px;
    margin-bottom: 18px;
}

.culture-item h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 14px;
    font-weight: 700;
}

.culture-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.85;
}

/* ===== 产业发展 ===== */
.development {
    padding: 100px 0;
    background: linear-gradient(160deg, #041428 0%, #0a3d5c 40%, #064663 100%);
    color: var(--white);
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.dev-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    transition: var(--transition);
}

.dev-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.22);
}

.dev-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.dev-card h3 {
    font-size: 20px;
    color: var(--accent-light);
    margin-bottom: 16px;
    font-weight: 700;
}

.dev-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.85;
    text-align: left;
}

.dev-card strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===== 旅游攻略 ===== */
.travel-tips {
    padding: 100px 0;
    background: var(--bg-dark);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.tip-card {
    background: var(--white);
    padding: 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent);
}

.tip-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.tip-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 18px;
    font-weight: 700;
}

.tip-card ul {
    list-style: none;
}

.tip-card li {
    font-size: 14px;
    color: var(--text-light);
    padding: 7px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.tip-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 56px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-links h4,
.footer-info h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 22px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .attractions-grid,
    .food-grid,
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(8, 51, 88, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 6px;
        transform: translateY(-120%);
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 28px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-title {
        letter-spacing: 10px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 22px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 64px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 22px;
    }

    .attractions-grid,
    .food-grid,
    .culture-grid,
    .dev-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
