/**
 * Awwwards.com Style Design
 * Based on downloaded awwwards.com design patterns
 */

/******************************************************************
 1. CSS VARIABLES & RESET
*******************************************************************/

:root {
    /* Colors - Dark Theme */
    --color-black: #0a0a0a;
    --color-black-light: #141414;
    --color-black-dark: #050505;
    --color-white: #ffffff;
    --color-gray-light: #2a2a2a;
    --color-gray: #888888;
    --color-gray-dark: #666666;
    --color-accent: #00ff88;
    --color-accent-green: #00dc82;

    /* Typography
       说明：原先这里写的是 'Inter Tight'，但全站（含 local.google.fonts.css）
       从未定义过这个字体，等于每次都静默回退——留着只会造成误导。
       现改为实际可用的系统字体栈，并补上中文回退，保证中英文都有一致的渲染。 */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;

    /* Spacing */
    --gutter: 20px;
    --gutter-large: 40px;

    /* Border Radius */
    --rounded-small: 4px;
    --rounded-normal: 8px;
    --rounded-large: 16px;
    --rounded-xlarge: 24px;

    /* Text Sizes */
    --text-size-small: 12px;
    --text-size-primary: 14px;
    --text-size-medium: 16px;
    --text-size-large: 20px;
    --text-size-xlarge: 32px;
    --text-size-xxlarge: 48px;
    --text-size-hero: clamp(48px, 8vw, 120px);
}

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

html {
    font-size: 16px;
    overflow-x: hidden;
    height: auto;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-size-medium);
    line-height: 1.5;
    color: var(--color-white);
    background: var(--color-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    padding-top: 70px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 链接在任何状态下都不要下划线。
   assets/css/plugins.css 里打包了 Bootstrap 3，其中有：
       a,a:visited         { text-decoration: underline }
       a:focus,a:hover     { color:#23527c; text-decoration:underline }
   `a:hover` 的优先级是 (0,1,1)，会压过单独 `a` 的 (0,0,1)，
   导致鼠标悬停时所有链接文字都被加上下划线。
   下面用同等或更高优先级、且声明在**更晚的样式表**里（awwwards-style.css
   在每个页面都排在 plugins.css 之后）把它覆盖掉。
   main.css 也自带同样的覆盖（main.css:58），旧版作品页不受影响。 */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none;
}
/* 焦点样式（全站统一）
   plugins.css 里打包的 Bootstrap 3 有一条：
       a:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px }
   它在深色背景上会渲染成一圈浅白色边框。因为站内所有按钮都是 <a>，
   点击后链接获得焦点，这圈白边就会出现并一直留着（Bootstrap 只清掉了 :hover/:active）。
   下面用 :focus-visible 区分输入方式：
     · 鼠标 / 触摸点击 -> 不显示任何焦点框
     · 键盘 Tab 导航   -> 显示品牌绿焦点圈（既不是白边，也保住了键盘可访问性）
   a:focus-visible 与 Bootstrap 的 a:focus 同优先级 (0,1,1)，靠声明更晚取胜；
   :focus:not(:focus-visible) 优先级是 (0,2,0)，高于 a:focus，因此点击时一定生效。 */
:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent-green, #00dc82);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/******************************************************************
 2. HEADER / NAVIGATION
*******************************************************************/

.header-site {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.header-site__container {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

/* 顶部左上角品牌名（index.html / about.html）。
   work.html / portfolio-item.html / project-detail.html 各自的内联样式里
   有 .page-header__logo / .project-header__logo，取值与本规则保持一致。
   如需改品牌名字体或字重，记得四处一起改。 */
.header-site__logo {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-site__logo:hover {
    color: var(--color-accent-green);
    text-decoration: none;
}

@media (max-width: 768px) {
    .header-site__logo {
        font-size: 20px;
    }
}

.header-site__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-site__nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    text-decoration: none;
}

.header-site__nav a:hover {
    color: var(--color-accent-green);
    text-decoration: none;
}

.header-site__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-submit {
    padding: 12px 24px;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--rounded-normal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--color-accent-green);
    color: var(--color-white);   /* 悬停变绿时文字用白色 */
    transform: translateY(-2px);
}

/******************************************************************
 3. HERO SECTION
*******************************************************************/

.hero-site {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-black) 0%, var(--color-black-light) 100%);
}

.hero-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 220, 130, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-site__content {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.hero-site__title {
    font-size: var(--text-size-hero);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero-site__title span {
    display: block;
}

.hero-site__subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--color-gray);
    max-width: 600px;
    margin-bottom: 48px;
}

.hero-site__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--rounded-normal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-accent-green);
    color: var(--color-white);   /* 悬停变绿时文字用白色 */
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 220, 130, 0.3);
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--color-white);
    border-radius: var(--rounded-normal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/******************************************************************
 4. WEBSITES GRID (Portfolio)
*******************************************************************/

.websites-section {
    position: relative;
    padding: 100px 40px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-green);
    text-decoration: none;
}

.section-link:hover {
    color: var(--color-white);
    text-decoration: none;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.website-card {
    position: relative;
    border-radius: var(--rounded-xlarge);
    overflow: hidden;
    background: var(--color-black-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.website-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-green);
    box-shadow: 0 30px 60px rgba(0, 220, 130, 0.15);
}

.website-card__image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.website-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.website-card:hover .website-card__image img {
    transform: scale(1.05);
}

.website-card__content {
    padding: 24px;
}

.website-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-white);
}

.website-card__author {
    font-size: 14px;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.website-card__author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.website-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: var(--color-accent-green);
    color: var(--color-black);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--rounded-normal);
}

/* More Card Style */
.website-card__more {
    cursor: default;
}

.website-card__more:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.website-card__more .website-card__image {
    background: rgba(0, 220, 130, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.website-card__more .website-card__title {
    color: var(--color-accent-green);
}

/******************************************************************
 5. ABOUT SECTION
*******************************************************************/

.about-section {
    position: relative;
    padding: 100px 40px;
    width: 100%;
    background: var(--color-black-light);
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section__container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-section__image {
    border-radius: var(--rounded-xlarge);
    overflow: hidden;
}

.about-section__image img {
    width: 100%;
    height: auto;
}

.about-section__content h2 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.about-section__content p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent-green);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/******************************************************************
 6. SERVICES SECTION
*******************************************************************/

.services-section {
    position: relative;
    padding: 100px 40px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    padding: 40px;
    background: var(--color-black-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-xlarge);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-8px);
    border-color: var(--color-accent-green);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    background: var(--color-white);
    border-radius: var(--rounded-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-card:hover .service-card__icon {
    background: var(--color-accent-green);
}

.service-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card__description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray);
}

.service-card:hover .service-card__description {
    color: rgba(255, 255, 255, 0.7);
}

/******************************************************************
 7. FOOTER
*******************************************************************/

.footer-site {
    position: relative;
    width: 100%;
    background: var(--color-black-dark);
    padding: 80px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-site__container {
    max-width: 1920px;
    margin: 0 auto;
}

.footer-site__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-site__brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-white);
}

.footer-site__brand p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray);
}

.footer-site__nav h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-site__nav ul {
    list-style: none;
}

.footer-site__nav li {
    margin-bottom: 12px;
}

.footer-site__nav a {
    font-size: 14px;
    color: var(--color-gray);
    text-decoration: none;
}

.footer-site__nav a:hover {
    color: var(--color-accent-green);
    text-decoration: none;
}

.footer-site__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-site__copyright {
    font-size: 14px;
    color: var(--color-gray);
}

.footer-site__social {
    display: flex;
    gap: 16px;
}

.footer-site__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    color: var(--color-black);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-site__social a:hover {
    background: var(--color-accent-green);
    color: var(--color-white);   /* 悬停变绿时文字用白色 */
    transform: translateY(-4px);
    text-decoration: none;
}

/******************************************************************
 8. PORTFOLIO ITEM PAGE
*******************************************************************/

.portfolio-item-page {
    padding: 120px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item-page__header {
    margin-bottom: 60px;
}

.portfolio-item-page__title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.portfolio-item-page__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.portfolio-item-page__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray);
}

.portfolio-item-page__gallery {
    display: grid;
    grid-gap: 40px;
    margin-bottom: 60px;
}

.portfolio-item-page__image {
    border-radius: var(--rounded-xlarge);
    overflow: hidden;
}

.portfolio-item-page__image img {
    width: 100%;
    height: auto;
}

.portfolio-item-page__description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    max-width: 800px;
}

/******************************************************************
 9. ABOUT PAGE
*******************************************************************/

.about-page {
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-page__header {
    margin-bottom: 60px;
}

.about-page__title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.about-page__content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 60px;
}

.about-page__skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-tag {
    padding: 12px 24px;
    background: var(--color-gray-light);
    border-radius: var(--rounded-normal);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.skill-tag:hover {
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
}

/******************************************************************
 10. RESPONSIVE
*******************************************************************/

@media (max-width: 1200px) {
    .websites-grid,
    .portfolio-grid,
    .latest-works-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 平面作品在中等屏幕显示 2 列 */
    .portfolio-grid-graphic {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 拍摄作品在中等屏幕显示 2 列，使用 flex 布局 */
    .portfolio-grid-photo {
        display: flex !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .portfolio-grid-photo .website-card {
        width: auto !important;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .header-site__container {
        padding: 16px 20px;
    }

    .header-site__nav {
        display: none;
    }

    .hero-site {
        padding: 140px 20px 60px;
    }

    .websites-section,
    .services-section,
    .category-section {
        padding: 60px 20px;
    }

    .websites-grid,
    .portfolio-grid,
    .latest-works-grid {
        grid-template-columns: 1fr !important;
    }

    .portfolio-grid-photo {
        grid-template-columns: 1fr !important;
    }

    .about-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-site__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-site__bottom {
        flex-direction: column;
        gap: 20px;
    }

    /* Bottom nav responsive - horizontal scroll */
    .bottom-nav {
        bottom: 10px;
        padding: 10px 12px;
        max-width: calc(100vw - 20px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .bottom-nav__item {
        padding: 8px 10px;
        min-width: fit-content;
    }

    .bottom-nav__icon {
        width: 18px;
        height: 18px;
    }

    .bottom-nav__label {
        font-size: 8px;
    }

    .bottom-nav__divider {
        height: 20px;
    }
}

/******************************************************************
 11. ANIMATIONS
*******************************************************************/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.animate-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.animate-in-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Section Title Animation */
@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 220, 130, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 220, 130, 0.6);
    }
}

.section-title-animated {
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: titleSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards, titleGlow 3s ease-in-out infinite 1s;
}

.section-title-animated::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent-green));
    animation: lineGrow 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes lineGrow {
    to {
        transform: scaleX(1);
    }
}

.category-section {
    padding: 80px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.category-section:first-of-type {
    padding-top: 40px;
}

.category-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 80px;
    padding-top: 0;
    border-top: none;
}

.category-footer__text {
    color: var(--color-gray);
    font-size: 14px;
}

.category-footer__link {
    color: var(--color-accent-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-footer__link:hover {
    color: var(--color-white);
}

/* Old category header style - deprecated, use c-heading instead */
.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--color-accent-green);
    border-radius: 2px;
}

.category-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* 平面作品显示两排（3 列 x 2 行） */
.portfolio-grid-graphic {
    grid-template-columns: repeat(3, 1fr);
}

/* 拍摄作品显示一排 2 个，居中显示，每个项目框宽度 873px */
.portfolio-grid-photo {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.portfolio-grid-photo .website-card {
    width: 873px;
}

/* Latest Works Section */
.latest-works-section {
    position: relative;
    padding: 60px 40px 80px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.latest-works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.latest-works-title {
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.latest-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/******************************************************************
 12. AWWWARDS STYLE HEADINGS
*******************************************************************/

/* C-Heading Component */
.c-heading {
    position: relative;
    margin-bottom: clamp(40px, 5vw, 96px);
    font-weight: 400;
    text-align: left;
}

.c-heading.c-heading--center {
    text-align: center;
}

.c-heading--small .c-heading__top {
    margin-bottom: 1rem;
}

.c-heading--small .c-heading__middle + .c-heading__bottom {
    margin-top: 1em;
}

.c-heading--small .c-heading__short-desc {
    width: 500px;
}

.c-heading__top {
    margin-bottom: clamp(20px, 3vw, 24px);
    font-weight: 400;
    display: flex;
    justify-content: flex-start;
}

.c-heading.c-heading--center .c-heading__top {
    justify-content: center;
}

.c-heading__top .text-default {
    font-weight: 400;
}

.c-heading__middle + .c-heading__bottom {
    margin-top: 1em;
}

.c-heading__middle {
    display: flex;
    justify-content: flex-start;
}

.c-heading.c-heading--center .c-heading__middle {
    justify-content: center;
}

.c-heading__short-desc {
    display: inline-block;
    width: 360px;
    max-width: 100%;
    font-size: 18px;
    font-size: clamp(18px, 16.5915492958px + 0.2816901408vw, 22px);
}

.c-heading__bottom {
    display: flex;
    justify-content: flex-start;
}

.c-heading.c-heading--center .c-heading__bottom {
    justify-content: center;
}

.c-heading__large-desc {
    display: inline-block;
    width: 900px;
    max-width: 100%;
    font-size: 18px;
    font-size: clamp(18px, 16.5915492958px + 0.2816901408vw, 22px);
}

.c-heading__by {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(20px, 2vw, 30px);
    font-size: 16px;
    font-size: clamp(16px, 14.5915492958px + 0.2816901408vw, 20px);
}

.c-heading__by small {
    font-size: 0.6em;
}

.c-heading__between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.c-heading .heading-1 {
    position: relative;
    display: inline-block;
}

/* Heading Sizes */
.heading-1 {
    font-family: var(--font-primary);
    font-size: 42px;
    font-size: clamp(42px, -3.0704225352px + 9.014084507vw, 170px);
    line-height: 100%;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.heading-2 {
    font-family: var(--font-primary);
    font-size: 42px;
    font-size: clamp(42px, 5.3802816901px + 7.323943662vw, 146px);
    line-height: 100%;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.heading-3 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-size: clamp(36px, 15.5774647887px + 4.0845070423vw, 94px);
    line-height: 100%;
    font-weight: 500;
    text-decoration: none;
}

.heading-4 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-size: clamp(32px, 17.2112676056px + 2.9577464789vw, 74px);
    line-height: 100%;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.heading-5 {
    font-family: var(--font-primary);
    font-size: 26px;
    font-size: clamp(26px, 17.5492957746px + 1.6901408451vw, 50px);
    line-height: 120%;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.heading-6 {
    font-family: var(--font-primary);
    margin-bottom: 1em;
    font-size: 22px;
    font-size: clamp(22px, 13.5492957746px + 1.6901408451vw, 46px);
    line-height: 130%;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
}

/* Text Utilities */
.text-default {
    font-size: var(--text-size-primary);
    font-weight: 300;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-balance {
    text-wrap: balance;
}

.text-center {
    text-align: center;
}

/* Has Sticker Animation */
.has-sticker {
    position: relative;
    display: inline-block;
}

.has-sticker__ico {
    position: absolute;
    height: auto;
    margin-block: auto;
    pointer-events: none;
}

/* Text Sizes */
.text-x-large {
    font-size: 22px;
    font-size: clamp(22px, 19.8873239437px + 0.4225352113vw, 28px);
}

.text-large {
    font-size: 18px;
    font-size: clamp(18px, 17.2957746479px + 0.1408450704vw, 20px);
}

.text-medium {
    font-size: 16px;
}

.text-subtitle-narrow {
    display: inline-block;
    width: 360px;
    max-width: 100%;
}


/******************************************************************
 13. BOTTOM NAVIGATION
*******************************************************************/

.bottom-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.bottom-nav__item {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.bottom-nav__item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 4px;
    height: 2px;
    background: var(--color-accent-green);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav__item.active::after {
    transform: translateX(-50%) scaleX(1);
}

.bottom-nav__item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav__item.active {
    background: rgba(0, 220, 130, 0.1);
}

.bottom-nav__item.active .bottom-nav__icon {
    color: var(--color-accent-green);
}

.bottom-nav__item.active .bottom-nav__label {
    color: var(--color-accent-green);
    font-weight: 600;
}

.bottom-nav__item:hover .bottom-nav__icon {
    color: var(--color-white);
}

.bottom-nav__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav__icon svg {
    width: 100%;
    height: 100%;
}

.bottom-nav__label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
}

/* Awwwards Style Bottom Navigation */
.bottom-nav-awwwards {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: auto;
    max-width: 95vw;
}

.bottom-nav-awwwards__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 100px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    overflow-y: hidden;
}

.bottom-nav-awwwards__inner::-webkit-scrollbar {
    display: none;
}

.bottom-nav-awwwards__logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    background: #000;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-right: 8px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 注意：这里不再包含 :focus —— 鼠标点击时的焦点框已由全局
   `:focus:not(:focus-visible)` 处理；保留 :focus 会连键盘 Tab 的焦点圈一起干掉。 */
.bottom-nav-awwwards__logo:active {
    outline: none;
    text-decoration: none;
}

.bottom-nav-awwwards__logo:hover {
    background: var(--color-accent-green);
    color: var(--color-white);   /* 悬停变绿时文字用白色 */
    text-decoration: none;
}

.bottom-nav-awwwards__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav-awwwards__list li {
    display: flex;
    align-items: center;
}

.bottom-nav-awwwards__list li a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    text-decoration-line: none;
}

.bottom-nav-awwwards__list li a:hover,
.bottom-nav-awwwards__list li a.active {
    text-decoration: none;
}

.bottom-nav-awwwards__list li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.bottom-nav-awwwards__list li a.active {
    background: rgba(0, 220, 130, 0.15);
    color: var(--color-accent-green);
}

.bottom-nav-awwwards__cta {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 8px;
}

.bottom-nav-awwwards__cta:hover {
    background: var(--color-accent-green);
    color: var(--color-white);   /* 悬停变绿时文字改白色（原来是 #000） */
    transform: scale(1.05);
    text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 1200px) {
    .bottom-nav-awwwards {
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: none;
    }

    .bottom-nav-awwwards__inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bottom-nav-awwwards__list {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .bottom-nav-awwwards {
        bottom: 10px;
        width: calc(100% - 20px);
    }

    .bottom-nav-awwwards__inner {
        padding: 8px 12px;
        gap: 6px;
    }

    .bottom-nav-awwwards__logo {
        font-size: 14px;
        padding: 6px 12px;
        margin-right: 4px;
    }

    .bottom-nav-awwwards__list li a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .bottom-nav-awwwards__cta {
        padding: 10px 16px;
        font-size: 12px;
        margin-left: 4px;
    }
}


/******************************************************************
 13. SMOOTH SCROLL IMPROVEMENTS
*******************************************************************/

html {
    font-size: 16px;
    height: 100%;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 确保鼠标滚轮正常工作 */
    position: relative;
}

/* 禁用固定元素的滚动拦截 */
.header-site,
.bottom-nav {
    touch-action: manipulation;
}

/* 确保内容区域可以正常滚动 */
.hero-site,
.websites-section,
.about-section,
.services-section {
    overflow: visible;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-green);
}

/******************************************************************
 14. UTILITY CLASSES
*******************************************************************/

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }


/******************************************************************
  外部链接角标
  ----------------------------------------------------------------
  作品卡片的跳转方式选了「外部链接」时，图片左上角出现这个 ↗，
  提示访客点击后会离开本站（同时用 target="_blank" 新窗口打开）。
*******************************************************************/
.card-external-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-green, #00dc82);
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}