/* ==========================================================================
   瑞语化境官网核心样式表
   融合东方美学 (黑白灰/水墨/印章/金) 与未来科技 (粒子/流光/网格/青)
   ========================================================================== */

:root {
    /* 核心色彩体系 */
    --bg-primary: #f6f6f9;        /* 宣纸感淡灰背景 */
    --bg-secondary: #ffffff;      /* 纯白卡片背景 */
    --bg-dark: #070708;           /* 黛黑/深邃墨黑 (用于导航栏、页脚) */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    
    /* 文本色彩 */
    --text-primary: #18181c;      /* 浓墨黑 */
    --text-secondary: #55555d;    /* 烟灰 */
    --text-muted: #8e8e93;        /* 浅灰 */
    --text-light: #ffffff;        /* 纯白 */
    
    /* 点缀与主题色彩 */
    --accent-red: #9e2a2b;        /* 东方暗红 (印章、重点标红) */
    --accent-gold: #c9a054;       /* 雅金 (点缀、高贵品质感) */
    --accent-cyan: #00f2fe;       /* 科技青 (流光、粒子数据流) */
    --accent-cyan-glow: rgba(0, 242, 254, 0.4);
    
    /* 字体族 */
    --font-serif: 'Noto Serif SC', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* 其它系统变量 */
    --navbar-height: 180px;
    --navbar-shrink-height: 95px;
    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
}

/* ==========================================================================
   基础样式重置 (Reset & Base)
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-premium);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ==========================================================================
   Canvas 背景与网格系统
   ========================================================================== */

#gridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-primary);
}

/* ==========================================================================
   网页头部 & 导航栏 (Navbar)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: rgba(7, 7, 8, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    transition: var(--transition-premium);
    display: flex;
    align-items: center;
}

.navbar.shrink {
    height: var(--navbar-shrink-height);
    background-color: rgba(7, 7, 8, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar.shrink .logo {
    height: 75px;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 140px;
    transition: var(--transition-premium);
}

.logo-svg,
.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

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

.nav-item {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-premium);
    transform: translateX(-50%);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-light);
}

.nav-item.active::after, .nav-item:hover::after {
    width: 100%;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-premium);
}

/* ==========================================================================
   Hero 视觉区 (Hero Section)
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--navbar-height) + 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 苏州园林月洞门背景剪影 */
.moongate-silhouette {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vh;
    height: 90vh;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(246, 246, 249, 0) 70%);
}

.moongate-silhouette::before {
    content: '';
    position: absolute;
    top: 4%;
    left: 4%;
    right: 4%;
    bottom: 4%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 0, 0, 0.03);
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 12px;
    margin-right: -12px; /* 修正字间距偏移 */
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 6px;
    margin-right: -6px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle .divider {
    font-size: 14px;
    opacity: 0.5;
    margin: 0 12px;
    color: var(--accent-red);
}

/* 15秒视频播放器外壳 */
.player-wrapper {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-dark);
    padding: 3px; /* 微光边框间隙 */
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 242, 254, 0.05);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(0, 242, 254, 0.2), rgba(0, 0, 0, 0.8));
    transition: var(--transition-premium);
}

.player-wrapper:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2), 0 0 50px rgba(0, 242, 254, 0.12);
}

.player-container {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--border-radius-md) - 3px);
    overflow: hidden;
    position: relative;
    background-color: #000000;
}

/* 预览图覆盖层 */
.player-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* 科技HUD氛围 */
.hud-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(0, 242, 254, 0.3);
    border-radius: 50%;
    animation: rotateHUD 20s linear infinite;
    pointer-events: none;
}

.hud-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hud-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0) 0%, rgba(0, 242, 254, 0.4) 50%, rgba(0, 242, 254, 0) 100%);
    animation: scanHUD 4s ease-in-out infinite;
    pointer-events: none;
}

.play-btn-large {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 242, 254, 0.3);
    transition: var(--transition-bounce);
    z-index: 6;
}

.play-btn-large svg {
    width: 24px;
    height: 24px;
    margin-left: 4px; /* 居中微调 */
    transition: var(--transition-bounce);
}

.play-btn-large:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.6);
    color: var(--accent-cyan);
}

/* 视频元素 */
.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.95);
    transition: filter 0.5s ease;
}

/* 底部控制条 (15秒进度条) */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.player-container:hover .player-controls {
    opacity: 1;
}

.time-indicator {
    font-family: var(--font-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.progress-bar-container {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar-handle {
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar-container:hover .progress-bar-handle {
    opacity: 1;
}

.fullscreen-btn {
    color: rgba(255, 255, 255, 0.6);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
}

.fullscreen-btn:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

/* 向下滚动箭头 */
.scroll-down {
    margin-top: 60px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounceDown 2s infinite;
}

.scroll-down svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   公共区块样式 (Section Layout)
   ========================================================================== */

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
    text-align: center;
}

.section-header.center {
    align-items: center;
}

.stamp-icon {
    font-family: var(--font-serif);
    font-size: 14px;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--accent-red);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-weight: 600;
    border-radius: 2px;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 6px;
    margin-right: -6px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-divider {
    width: 40px;
    height: 1px;
    background-color: var(--text-muted);
    opacity: 0.3;
}

/* ==========================================================================
   服务模块 ("我们的服务")
   ========================================================================== */

.services-section {
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card {
    display: flex;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition-premium);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.service-content {
    flex: 1.2;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.service-card-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 1px;
}

.learn-more .arrow {
    transition: transform 0.3s ease;
}

.learn-more:hover .arrow {
    transform: translateX(6px);
}

.service-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: var(--transition-premium);
}

.service-card:hover .service-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 服务卡片发光边框 */
.service-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border: 2px solid transparent;
    border-radius: inherit;
    z-index: 10;
    transition: var(--transition-premium);
}

.service-card:hover .service-glow-border {
    border-image: linear-gradient(135deg, var(--accent-cyan) 0%, transparent 40%, var(--accent-gold) 100%) 2;
}

/* 交错卡片布局适配 */
.service-card.alt {
    flex-direction: row;
}

/* ==========================================================================
   作品案例模块 ("作品案例")
   ========================================================================== */

.portfolio-section {
    position: relative;
    z-index: 10;
}

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

.portfolio-item {
    cursor: pointer;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-premium);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.portfolio-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.95);
    transition: var(--transition-premium);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 8, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-premium);
}

.play-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition-bounce);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-icon-small svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.portfolio-item:hover .portfolio-image {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.06);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .play-icon-small {
    transform: scale(1);
}

.portfolio-meta {
    padding: 24px;
}

.portfolio-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.portfolio-category {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   公司理念与图形区 ("我们的理念")
   ========================================================================== */

.philosophy-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.philosophy-visual {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.7);
}

.golden-ring-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 35px var(--accent-gold), inset 0 0 35px var(--accent-gold);
    opacity: 0.15;
    animation: goldenRingPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.philosophy-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.philosophy-content .section-title {
    color: var(--text-light);
}

.philosophy-content .stamp-icon {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.philosophy-quote {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 5px;
    line-height: 2;
    padding: 0 40px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   联系我们模块 ("联系我们")
   ========================================================================== */

.contact-section {
    position: relative;
    z-index: 10;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-premium);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(158, 42, 43, 0.06);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: var(--transition-premium);
}

.contact-card:hover .contact-icon {
    background-color: var(--accent-red);
    color: var(--text-light);
    transform: scale(1.08);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-card-value {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-card-value a:hover {
    color: var(--accent-red);
}

/* ==========================================================================
   页脚模块 (Footer)
   ========================================================================== */

.footer {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    border-top: 1px solid var(--border-dark);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 140px;
}

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

.company-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.icp-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

.icp-info a {
    transition: var(--transition-premium);
}

.icp-info a:hover {
    color: var(--accent-gold);
}

.scroll-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
}

.scroll-to-top:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

.scroll-to-top svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   全屏作品视频播放模态窗 (Video Modal)
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content-container {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 10;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
}

.modal-close:hover {
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    background-color: #0d0d0e;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-dark);
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.modal-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 模态窗HUD装饰角落线 */
.hud-corners span {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid var(--accent-cyan);
    pointer-events: none;
}

.hud-corners span:nth-child(1) { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.hud-corners span:nth-child(2) { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.hud-corners span:nth-child(3) { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.hud-corners span:nth-child(4) { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.modal-info {
    padding: 24px 30px;
    background-color: #070708;
    border-top: 1px solid var(--border-dark);
}

#modal-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

#modal-category {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   动画与滚动显现系统 (Animations & Reveal)
   ========================================================================== */

/* 揭开显示类 */
[data-reveal] {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* 动效延迟定义 */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

/* 关键帧动画 */
@keyframes rotateHUD {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scanHUD {
    0%, 100% { top: 0%; opacity: 0; }
    5%, 95% { opacity: 1; }
    50% { top: 100%; opacity: 1; }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-4px); }
}

@keyframes goldenRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.28; }
}

/* ==========================================================================
   响应式断点适配 (Responsive Breakpoints)
   ========================================================================== */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card:nth-child(3) {
        grid-column: span 2;
    }
    
    .hero-title {
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    /* 移动端菜单切换显示 */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-premium);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-item {
        font-size: 18px;
    }
    
    /* 英雄区高度自适应 */
    .hero-section {
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 8px;
        margin-right: -8px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 4px;
        margin-right: -4px;
    }
    
    /* 卡片布局降级为一列 */
    .service-card, .service-card.alt {
        flex-direction: column;
    }
    
    .service-content {
        padding: 40px 30px;
    }
    
    .service-image-wrapper {
        min-height: 240px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card:nth-child(3) {
        grid-column: span 1;
    }
    
    .philosophy-quote {
        font-size: 18px;
        padding: 0 10px;
        line-height: 1.8;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .scroll-to-top {
        margin: 0 auto;
    }
}
