/* ==========================================
   style.css
   首页第一版全局样式
   当前内容：
   - 全局基础样式
   - 页面布局
   - Navbar
   - Hero
   - Section
   - Button
   - Footer
========================================== */


/* ==========================================
   全局重置（Reset）
   去掉浏览器默认边距、内边距，让布局更可控
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================
   页面基础样式
========================================== */
html {
    scroll-behavior: smooth; /* 页面内跳转更顺滑 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0f172a; /* 深蓝背景，简洁专业 */
    color: #f8fafc; /* 主文字颜色 */
    line-height: 1.6;
}


/* ==========================================
   链接默认样式
========================================== */
a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================
   通用容器 container
   作用：控制页面内容宽度，不让内容无限拉宽
========================================== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


/* ==========================================
   通用 section 样式
========================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #ffffff;
}

.section-text {
    max-width: 800px;
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.8;
}


/* ==========================================
   Header / Navbar
========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* ==========================================
   Landing Section（第一屏）
========================================== */
.landing {
    height: 100vh; /* 占满整个屏幕 */
    background: linear-gradient(
            rgba(15, 23, 42, 0.85),
            rgba(15, 23, 42, 0.65)
    ), /*深蓝色遮罩层（overlay）,盖在图片上面。*/
    url("../assets/images/HongKong.jpeg"); /* 图片path */

    background-size: cover; /*让图片铺满整个区域,自动裁切 / 放大 / 缩小，让背景尽量充满整个 section。*/
    background-position: center; /*图片居中显示*/
    background-repeat: no-repeat; /*不要平铺重复*/

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 内容容器 */
.landing-content {
    max-width: 800px;
    padding: 20px;
}

/* 标题副标题*/
.landing-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 40px;
}

.landing-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-top: -10px;  /* 负 margin 可以让副标题稍微更贴近主标题 */
    margin-bottom: 36px; /*和按钮之间的距离。*/
    letter-spacing: 0.02em;
}


/* ==========================================
   Landing Scroll Button（View More）
========================================== */
.scroll-down {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: #38bdf8;

    padding: 14px 26px;
    border-radius: 999px; /* 胶囊按钮 */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;

    backdrop-filter: blur(8px); /*glassmorphism-lite*/
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);

    transition: all 0.25s ease;
}

/* Hover：轻微浮起 + 更亮 */
.scroll-down:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #7dd3fc;
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.22);
}

/* 按钮文字 */
.scroll-text {
    letter-spacing: 0.02em;
}

/* 箭头图标 */
.scroll-icon {
    display: inline-block;
    font-size: 1.1rem;
    animation: floatArrow 1.8s ease-in-out infinite;
}


/*
   Arrow Floating Animation
   作用：让箭头轻微上下浮动，提示“向下继续” */
@keyframes floatArrow {
    0% {
        transform: translateY(0);
        opacity: 0.85;
    }
    50% {
        transform: translateY(4px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.85;
    }
}

/* ==========================================
   Hero Section
========================================== */
.hero {
    padding: 120px 0 100px;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #38bdf8; /* 蓝色强调 */
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-title span:last-child {
    color: #38bdf8;
}

.hero-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 700px;
    margin-bottom: 36px;
    line-height: 1.9;
}


/* ==========================================
   Hero 按钮区域
========================================== */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ==========================================
   按钮 Button 基础样式
========================================== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}


/* 主按钮 */
.btn-primary {
    background-color: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
}


/* 次按钮 */
.btn-secondary {
    background-color: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background-color: #334155;
    transform: translateY(-2px);
}


/* 线框按钮 */
.btn-outline {
    border: 1px solid #475569;
    color: #f8fafc;
    background: transparent;
}

.btn-outline:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}


/* ==========================================
   About Preview / Notes / 普通内容链接
========================================== */
.text-link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    color: #38bdf8;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #7dd3fc;
}


/* ==========================================
   Projects Section
========================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.section-action {
    margin-top: 36px;
}


/* ==========================================
   Footer
========================================== */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}