/* =========================
   全局
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;

    background:
        linear-gradient(to right, #acecea, #f3d9e4);

    color: #1f2937;

    overflow-x: hidden;
}

/* =========================
   通用
========================= */

section {

    width: 1300px;
    max-width: calc(100% - 40px);

    margin: auto;
}

.section-title {

    font-size: 32px;
    font-weight: 700;

    margin-bottom: 30px;

    color: #111827;
}

/* =========================
   顶部导航
========================= */

.top-header {

    position: fixed;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    width: 1300px;
    max-width: calc(100% - 40px);

    height: 72px;

    z-index: 999;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.58);

    backdrop-filter: blur(24px);

    border:
        1px solid rgba(255, 255, 255, 0.5);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08);
}

/* logo */

.logo-area {

    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;
}

.logo-area span {

    font-size: 22px;
    font-weight: 700;
}

/* nav */

.nav-area {

    display: flex;
    gap: 34px;
}

.nav-area a {

    text-decoration: none;

    color: #374151;

    font-size: 16px;
    font-weight: 600;

    transition: 0.3s;
}

.nav-area a:hover {

    color: #2563eb;
}

/* user */

.user-btn {

    border: none;

    background: white;

    padding: 10px 18px;

    border-radius: 14px;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 15px;
    font-weight: 600;

    transition: 0.3s;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);
}

.user-btn:hover {

    transform: translateY(-2px);
}

/* =========================
   天气卡片
========================= */

.weather-float {

    position: fixed;

    top: 100px;
    left: 30px;

    width: 160px;

    z-index: 998;

    padding: 18px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.45);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    transition: 0.4s;
}

#weather-city {

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 10px;
}

#weather-temp {

    font-size: 38px;
    font-weight: 800;

    margin-bottom: 8px;
}

#weather-desc {

    font-size: 15px;

    color: #4b5563;
}

/* =========================
   HERO
========================= */

.hero-section {

    min-height: 100vh;
}

/* logo */

.hero-logo {

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 50px auto;

    text-align: center;
}

.hero-logo img {

    display: block;

    width: 320px;
    max-width: 90%;

    margin: auto;

    opacity: 0.92;

    object-fit: contain;
    margin-top: 100px;
}

/* =========================
   简介卡片
========================= */

.intro-wrapper {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    margin-bottom: 30px;
}

.intro-card {

    min-height: 130px;

    padding: 28px;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06);

    font-size: 16px;
    line-height: 1.8;

    transition: 0.3s;
}

.intro-card:hover {

    transform:
        translateY(-6px);
}

/* =========================
   首屏主体
========================= */

.hero-main {

    display: grid;

    grid-template-columns:
        1fr 320px;

    gap: 25px;
}

/* =========================
   轮播图
========================= */

.carousel-area {

    position: relative;

    height: 520px;

    overflow: hidden;

    border-radius: 36px;

    background:
        rgba(255, 255, 255, 0.45);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.carousel-track {

    width: 100%;
    height: 100%;

    display: flex;
}

.carousel-slide {

    min-width: 100%;
    height: 100%;
}

.carousel-slide img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* 按钮 */

.carousel-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    background:
        rgba(255, 255, 255, 0.6);

    backdrop-filter: blur(10px);

    font-size: 28px;

    transition: 0.3s;
}

.carousel-btn:hover {

    background: white;
}

.prev {

    left: 20px;
}

.next {

    right: 20px;
}

/* =========================
   Carousel
========================= */

.carousel-section {

    position: relative;

    overflow: hidden;

    border-radius: 36px;

    min-height: 520px;

    background:
        rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255, 255, 255, 0.35);
}

/* 骨架 */

.carousel-skeleton {

    width: 100%;
    height: 520px;

    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.45),
            rgba(255, 255, 255, 0.25));

    background-size: 200% 100%;

    animation:
        carouselLoading 1.5s infinite;
}

@keyframes carouselLoading {

    100% {
        background-position: -200% 0;
    }
}

/* container */

.carousel-container {

    position: relative;

    width: 100%;
    height: 520px;
}

/* track */

.carousel-track {

    display: flex;

    height: 100%;

    transition: 0.6s ease;
}

/* slide */

.carousel-slide {

    min-width: 100%;
    height: 100%;
}

.carousel-slide img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* overlay */

.carousel-overlay {

    position: absolute;

    left: 50px;
    bottom: 50px;

    z-index: 5;

    max-width: 500px;

    padding: 28px;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.25);

    color: white;
}

.carousel-overlay h2 {

    font-size: 38px;

    margin-bottom: 18px;
}

.carousel-overlay p {

    line-height: 1.8;
}

/* btn */

.carousel-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 56px;
    height: 56px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    font-size: 32px;

    background:
        rgba(255, 255, 255, 0.2);

    backdrop-filter: blur(12px);

    color: white;

    transition: 0.3s;
}

.carousel-btn:hover {

    background:
        rgba(255, 255, 255, 0.35);
}

.carousel-btn.prev {

    left: 25px;
}

.carousel-btn.next {

    right: 25px;
}

/* dots */

.carousel-dots {

    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    display: flex;

    gap: 12px;

    z-index: 10;
}

.carousel-dot {

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.45);

    cursor: pointer;

    transition: 0.3s;
}

.carousel-dot.active {

    width: 38px;

    border-radius: 999px;

    background: white;
}

/* =========================
   最近动态
========================= */

.updates-area {

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.update-card {

    flex: 1;

    padding: 24px;

    border-radius: 26px;

    background:
        rgba(255, 255, 255, 0.5);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06);

    line-height: 1.8;

    transition: 0.3s;
}

.update-card:hover {

    transform:
        translateX(6px);
}

/* =========================
   新闻区域
========================= */

.news-section {

    margin-top: 80px;
}

.news-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}

.news-card {

    padding: 24px;

    min-height: 280px;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.52);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;

    transition: 0.3s;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

/* 新闻图片 */

.news-cover {

    width: 100%;
    height: 180px;

    object-fit: cover;

    border-radius: 20px;

    margin-bottom: 18px;
}

/* 新闻内容 */

.news-content {

    display: flex;

    flex-direction: column;

    flex: 1;
}

/* 新闻按钮 */

.news-btn {

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.news-card:hover {

    transform:
        translateY(-8px);
}

.news-title {

    font-size: 18px;
    font-weight: 700;

    line-height: 1.6;

    margin-bottom: 15px;
}

.news-desc {

    flex: 1;

    font-size: 14px;

    color: #4b5563;

    line-height: 1.8;
}

.news-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    margin-top: 20px;

    height: 44px;

    border: none;

    border-radius: 14px;

    background: #2563eb;

    color: white;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition: 0.3s;
}

.news-btn:hover {

    transform: translateY(-2px);
}

/* 更多按钮 */

.more-wrapper {

    display: flex;
    justify-content: center;

    margin-top: 40px;
}

.more-btn {

    text-decoration: none;

    padding: 14px 30px;

    border-radius: 18px;

    background: white;

    color: #111827;

    font-weight: 700;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.more-btn:hover {

    transform:
        translateY(-3px);
}

/* =========================
   博客区域
========================= */

.blog-section {

    margin-top: 90px;
}

.blog-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 25px;
}

.blog-card {

    min-height: 240px;

    overflow: hidden;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {

    transform:
        translateY(-8px);
}

.blog-cover {

    width: 100%;
    height: 150px;

    object-fit: cover;
}

.blog-content {

    padding: 18px;
}

.blog-title {

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 10px;
}

.blog-desc {

    font-size: 14px;

    color: #4b5563;

    line-height: 1.7;
}

/* 查看更多 */

.blog-more {

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    min-height: 240px;

    font-size: 26px;
    font-weight: 700;

    color: #111827;

    background:
        rgba(255, 255, 255, 0.55);

    transition: 0.3s;
}

.blog-more:hover {

    transform:
        translateY(-8px);

    background:
        rgba(255, 255, 255, 0.75);
}

/* =========================
   页脚
========================= */

.footer {
    width: 100%;
    margin-top: 100px;
    background: linear-gradient(to right, #acecea, #f3d9e4);
    color: #1f2937;
    font-family: Inter, -apple-system, sans-serif;
}

/* 内边距 */
.footer-container {
    padding: 50px 80px;
}

/* ===== 顶部 ===== */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* 按钮（重新设计） */
.btn {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* 分割线 */
.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

/* ===== 主体 ===== */
.footer-main {
    display: flex;
    justify-content: space-between;
}

/* 左列 */
.footer-columns {
    display: flex;
    gap: 80px;
}

.col h4 {
    font-size: 15px;
    color: #111827;
    margin-bottom: 14px;
}

.col a {
    display: block;
    color: #4b5563;
    text-decoration: none;
    margin: 6px 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.col a:hover {
    color: #111827;
}

/* 社交图标（卡片感） */
.icons {
    display: flex;
    gap: 10px;
}

.icons span {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

/* ===== Newsletter ===== */
.newsletter {
    max-width: 360px;
}

.newsletter h4 {
    color: #111827;
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* 输入框（重点优化） */
.input-box {
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.input-box input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* 订阅按钮 */
.input-box button {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-box button:hover {
    opacity: 0.9;
}

/* ===== 底部 ===== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.footer-bottom .links a {
    margin-left: 20px;
    color: #6b7280;
    text-decoration: none;
}

.footer-bottom .links a:hover {
    color: #111827;
}

/* =========================
   响应式
========================= */

@media(max-width:1000px) {

    .footer-top {

        grid-template-columns:
            1fr 1fr;
    }
}

@media(max-width:700px) {

    .footer {

        padding:
            60px 30px 25px;
    }

    .footer-top {

        grid-template-columns:
            1fr;
    }

    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;
    }
}

/* =========================
   响应式
========================= */

@media(max-width:1100px) {

    .hero-main {

        grid-template-columns: 1fr;
    }

    .updates-area {

        flex-direction: row;
    }

    .news-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .blog-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .content-layout {

        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {

    .top-header {

        height: auto;

        padding: 20px;

        flex-direction: column;

        gap: 20px;

        transition: 0.4s ease;
    }

    .nav-area {

        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .intro-wrapper {

        grid-template-columns: 1fr;
    }

    .news-grid {

        grid-template-columns: 1fr;
    }

    .blog-grid {

        grid-template-columns: 1fr;
    }

    .updates-area {

        flex-direction: column;
    }

    .weather-float {

        display: none;
    }

    .carousel-area {

        height: 320px;
    }

    .hero-logo img {

        width: 220px;
    }
}

/* =========================
   导航隐藏状态
========================= */

.top-header.hide-header {

    transform:
        translateX(-50%) translateY(-120px);

    opacity: 0;

    pointer-events: none;
}

/* =========================
   Skeleton 骨架屏
========================= */

.skeleton {

    position: relative;

    overflow: hidden;
}

.skeleton::before {

    content: "";

    position: absolute;

    inset: 0;

    transform: translateX(-100%);

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);

    animation:
        skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {

    100% {
        transform: translateX(100%);
    }
}

/* =========================
   新闻骨架
========================= */

/* =========================
   内容左右布局
========================= */

.content-layout {

    display: grid;

    grid-template-columns:
        260px 1fr;

    gap: 40px;

    align-items: start;
}

/* 左侧说明 */

.content-desc {

    position: sticky;

    top: 120px;
}

.content-desc h2 {

    font-size: 32px;
    font-weight: 800;

    margin-bottom: 25px;
}

.content-desc p {

    line-height: 2;

    color: #374151;

    margin-bottom: 18px;
}

/* 右侧主体 */

.content-main {

    width: 100%;
}

/* =========================
   新闻区域
========================= */

.news-section {

    margin-top: 90px;
}

.news-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}

.news-skeleton-title {

    width: 85%;
    height: 24px;

    border-radius: 12px;

    margin-bottom: 24px;

    background:
        rgba(255, 255, 255, 0.45);
}

.news-skeleton-line {

    height: 14px;

    border-radius: 10px;

    margin-bottom: 14px;

    background:
        rgba(255, 255, 255, 0.35);
}

.news-skeleton-line.short {

    width: 60%;
}

.news-skeleton-btn {

    width: 120px;
    height: 44px;

    border-radius: 14px;

    margin-top: 30px;

    background:
        rgba(255, 255, 255, 0.45);
}

/* =========================
   博客骨架
========================= */

.blog-skeleton {

    overflow: hidden;

    min-height: 240px;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.4);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.35);
}

.blog-skeleton-cover {

    width: 100%;
    height: 150px;

    background:
        rgba(255, 255, 255, 0.35);
}

.blog-skeleton-content {

    padding: 18px;
}

.blog-skeleton-title {

    width: 80%;
    height: 20px;

    border-radius: 10px;

    margin-bottom: 16px;

    background:
        rgba(255, 255, 255, 0.4);
}

.blog-skeleton-line {

    height: 14px;

    border-radius: 10px;

    margin-bottom: 12px;

    background:
        rgba(255, 255, 255, 0.35);
}

.blog-skeleton-line.short {

    width: 65%;
}