/* Copyright (c) 2026 Dubhe Nexus Innovation and Research Studio */
/* Licensed under MIT License */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #111111;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    line-height: 1.4;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #aaa;
}

/* 导航栏 */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: #ffffff;
    padding: 0.875rem 2rem;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 1.5rem;
    }

    .glass-nav.scrolled {
        padding: 0.75rem 1.5rem;
    }
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa, .fab, .fas, .far, .bx {
    font-size: 0.85em;
    vertical-align: middle;
}

.lucide {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
    vertical-align: middle;
}

.nav-links i, .nav-links svg {
    margin-right: 6px;
    opacity: 0.8;
}

h3 i, h3 svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    opacity: 0.9;
}

.project-title i, .project-title svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    font-weight: 400;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: all 0.3s;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo:hover {
    opacity: 0.8;
    letter-spacing: 0.32em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 10px;
        letter-spacing: 0.2em;
    }
}

/* 首屏 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #efefef;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
    }
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 0.4em;
    color: #9b9b9b;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 400;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #111;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title span {
    color: #e0e0e0;
    font-style: italic;
    font-weight: 300;
    display: inline-block;
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.hero-desc {
    max-width: 42rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-desc p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    font-weight: 300;
    border-left: 2px solid #000;
    padding-left: 1.25rem;
}

/* 通用容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* 动画类 */
.fade-up,
.fade-left,
.fade-right,
.scale-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.fade-up {
    transform: translateY(40px);
}

.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    transform: translateX(30px);
}

.fade-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.96);
}

.scale-in.revealed {
    opacity: 1;
    transform: scale(1);
}

/* 团队理念 */
.philosophy-section {
    padding: 7rem 0;
}

@media (max-width: 768px) {
    .philosophy-section {
        padding: 4rem 0;
    }
}

.section-tag {
    font-size: 11px;
    letter-spacing: 0.4em;
    color: #9b9b9b;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.pillar-card {
    border-bottom: 1px solid #ececec;
    padding-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.pillar-card:hover {
    border-bottom-color: #000;
    transform: translateY(-4px);
    padding-left: 8px;
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
}

.pillar-card:hover h3 {
    transform: translateX(4px);
}

.pillar-card p {
    color: #8b8b8b;
    font-weight: 300;
    line-height: 1.5;
    font-size: 0.9rem;
}

.pillar-card:hover p {
    color: #4a4a4a;
}

/* 项目区域 */
.projects-section {
    padding: 7rem 0;
    border-top: 1px solid #efefef;
}

@media (max-width: 768px) {
    .projects-section {
        padding: 4rem 0;
    }
}

.projects-sub {
    color: #9b9b9b;
    font-size: 0.875rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0 2rem;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    border: 1px solid #eaeaea;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.02), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: #111;
    background: #fafafa;
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}

.project-badge {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    color: #6b6b6b;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 380;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.875rem;
    color: #8b8b8b;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.project-link {
    font-size: 0.75rem;
    font-weight: 400;
    color: #4a4a4a;
    transition: all 0.3s;
    display: inline-block;
}

.project-card:hover .project-link {
    color: #000;
    transform: translateX(4px);
}

/* 技术栈 */
.technology-stack-section {
    padding: 8rem 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.technology-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .technology-stack-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.tech-group {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 0 1rem 0;
    border-left: 2px solid transparent;
    padding-left: 1.2rem;
}

.tech-group:hover {
    border-left-color: #d4d4d4;
    transform: translateX(4px);
}

.group-header {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.group-no {
    font-size: 0.7rem;
    font-family: 'Inter', monospace;
    font-weight: 400;
    color: #bfbfbf;
    background: #f8f8f8;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0;
}

.group-label {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #2c2c2c;
    font-weight: 450;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
    align-items: center;
}

.tech-item-mini {
    font-size: 1rem;
    font-weight: 380;
    color: #3a3a3a;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
    cursor: default;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-item-mini i, 
.tech-item-mini svg {
    font-size: 0.8rem;
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.tech-item-mini::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: width 0.25s;
}

.tech-item-mini:hover {
    color: #000;
    transform: translateY(-2px);
}

.tech-item-mini:hover::after {
    width: 100%;
}

.tech-group:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #eaeaea 0%, #ffffff 100%);
}

@media (min-width: 769px) {
    .tech-group:not(:last-child)::after {
        bottom: -1.5rem;
    }
}

/* 关于我们 */
.about-section {
    padding: 7rem 0;
    border-bottom: 1px solid #efefef;
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-left h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-left hr {
    width: 3rem;
    height: 1px;
    background: #000;
    border: 0;
    margin-top: 2rem;
    transition: width 0.5s ease;
}

.about-section:hover .about-left hr {
    width: 5rem;
}

.about-right p {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.about-right .note {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.info-section {
    padding: 5rem 0;
    border-top: 1px solid #efefef;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
}

.info-block h3 {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.info-block h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.4s ease;
}

.info-block:hover h3::after {
    width: 100%;
}

.info-block p {
    font-size: 0.875rem;
    color: #6b6b6b;
    font-weight: 300;
    line-height: 1.55;
}

.info-tags {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #aaa;
}

.info-tags span {
    transition: all 0.3s;
    cursor: default;
}

.info-tags span:hover {
    color: #333;
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background: #fff;
    border-top: 1px solid #efefef;
    padding: 5rem 2rem 3rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand .footer-logo {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.75rem;
    color: #777;
    max-width: 280px;
    line-height: 1.5;
}

.footer-contact {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-contact {
        text-align: left;
    }
}

.footer-contact h4 {
    font-size: 10px;
    letter-spacing: 0.3em;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-contact a {
    display: block;
    font-size: 0.875rem;
    color: #3a3a3a;
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: all 0.3s;
}

.footer-contact a:hover {
    color: #000;
    transform: translateX(-4px);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .footer-nav {
        justify-content: flex-start;
    }
}

.footer-nav a {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-nav a:hover {
    color: #000;
}

.footer-copyright {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #ececec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 10px;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
    }
}