/* --- 🎨 核心配色：科技蓝版 --- */
:root {
    --bg-color: #050505;       /* 极深灰黑背景 */
    --nav-bg: rgba(5, 5, 5, 0.9);
    --text-main: #ffffff;
    --text-sub: #aaaaaa;
    --accent-blue: #007bff;    
    --accent-blue-hover: #0056b3;
    --card-bg: #111111;
}

/* --- 基础排版 --- */
body {
    margin: 0; padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* --- 顶部导航栏 --- */
header {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: var(--nav-bg); backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; box-sizing: border-box; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* LOGO 终极修复：剪影变白法 */
.logo-container img {
    height: 40px; width: auto; vertical-align: middle;
    filter: brightness(0) invert(1); 
    opacity: 0.95; 
}

.nav-menu { display: flex; gap: 20px; } 
.nav-menu a { font-size: 14px; font-weight: 500; color: #ccc; letter-spacing: 1px; }
.nav-menu a:hover { color: var(--accent-blue); }

.header-btn { 
    background: var(--accent-blue); 
    border: none;
    color: #fff;
    padding: 10px 24px; 
    border-radius: 4px; 
    font-size: 14px; font-weight: 600; 
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    z-index: 1001;
}
.header-btn:hover { background: var(--accent-blue-hover); transform: translateY(-2px); }

/* --- Hero 区域 --- */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex; flex-direction: column; justify-content: center;
    align-items: flex-start; 
    padding-left: 10%; padding-right: 5%;
    overflow: hidden;
}

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0;
    animation: fadeLoop 18s infinite;
}

/* 轮播图图片路径 (仅 index.html 使用) */
.slide-1 { 
    background-image: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)), url('images/banner1.jpg'); 
    animation-delay: 0s;
}
.slide-2 { 
    background-image: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)), url('images/banner2.jpg'); 
    animation-delay: 6s;
}
.slide-3 { 
    background-image: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)), url('images/banner3.jpg'); 
    animation-delay: 12s;
}

@keyframes fadeLoop {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; } 
    43% { opacity: 0; transform: scale(1.05); } 
    100% { opacity: 0; }
}

.hero-subtitle {
    color: var(--accent-blue); letter-spacing: 3px; font-size: 14px; font-weight: bold; margin-bottom: 20px; text-transform: uppercase;
    z-index: 10;
}
.hero-title { 
    font-size: 56px; line-height: 1.1; margin-bottom: 30px; font-weight: 700; z-index: 10; color: #fff;
}
.hero-desc { 
    font-size: 16px; color: #ccc; margin-bottom: 50px; max-width: 500px; z-index: 10; line-height: 1.8;
    border-left: 3px solid var(--accent-blue); padding-left: 20px;
}

/* 🚨 Hero区域双按钮容器样式 (index.html) 🚨 */
.hero-cta-group {
    display: flex;
    gap: 20px;
    z-index: 10;
}

.btn-primary { 
    background: var(--accent-blue); color: #fff; 
    padding: 14px 40px; border-radius: 4px; font-weight: bold; 
    cursor: pointer; z-index: 10; display: inline-block;
    letter-spacing: 1px; font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover { background: var(--accent-blue-hover); transform: translateY(-2px); }

/* 新增的辅助按钮样式 */
.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 40px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: inline-block;
    letter-spacing: 1px;
    font-size: 16px;
    transition: 0.3s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}


/* --- 品牌故事 & 团队介绍通用样式 --- */
.story-section {
    padding: 100px 10%; background: #080808; display: flex; align-items: center; gap: 60px;
}
.story-text { flex: 1; }
.story-image { 
    flex: 1; height: 400px; 
    background: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=1000&auto=format&fit=crop') center/cover;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: 0.5s;
}
.story-image:hover { filter: grayscale(0%); }

.story-heading { font-size: 32px; margin-bottom: 25px; color: #fff; font-weight: bold; }
.story-heading span { color: var(--accent-blue); }
.story-p { color: var(--text-sub); line-height: 1.8; margin-bottom: 20px; font-size: 16px; }

/* --- Logo 墙样式 --- */
.brands-section { 
    padding: 80px 5%; 
    background: #050505; 
    text-align: center; 
}

.lazy-logo-container {
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 20px;
    background: #000; 
    border-radius: 8px; 
    border: 1px solid #222;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lazy-logo-container:hover {
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.3);
    transform: translateY(-5px); 
}

.magic-logo-img {
    max-width: 100%;
    height: auto; 
    display: block;
    filter: grayscale(100%) invert(1) brightness(1.6); 
    mix-blend-mode: screen; 
    opacity: 0.8; 
    transition: opacity 0.5s, filter 0.5s;
    margin: 0 auto;
}
.lazy-logo-container:hover .magic-logo-img { 
    opacity: 1; 
    filter: grayscale(0%) invert(1) brightness(2);
}

/* --- 服务卡片样式 --- */
.section { padding: 100px 5%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { 
    background: var(--card-bg); padding: 50px 40px; transition: 0.3s; border-radius: 12px;
    border: 1px solid #222;
}
.service-card:hover { border-color: var(--accent-blue); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.icon { font-size: 40px; margin-bottom: 25px; color: var(--accent-blue); }
.card-title { font-size: 22px; margin-bottom: 15px; font-weight: bold; color: #fff; }
.card-desc { color: var(--text-sub); font-size: 15px; line-height: 1.7; }

/* --- 案例首页简洁样式 (index.html) --- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.case-item { position: relative; height: 380px; overflow: hidden; cursor: pointer; border-radius: 8px; }
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; opacity: 0.9;}
.case-item:hover img { transform: scale(1.05); opacity: 1; }
.case-info { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.case-tag { font-size: 12px; color: var(--accent-blue); margin-bottom: 8px; font-weight: 700; letter-spacing: 1px; }
.case-name { font-size: 20px; font-weight: bold; color: #fff; }

/* --- 底部 --- */
.footer { padding: 100px 5%; background: #080808; text-align: center; }

/* 🚨 Footer 法律链接容器样式 🚨 */
.footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #111;
}
.footer-links a {
    color: #777;
    font-size: 12px;
    margin: 0 10px;
    white-space: nowrap;
}
.footer-links a:hover {
    color: var(--accent-blue);
}

/* --- 悬浮联系按钮样式 (全局通用) --- */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: 0.3s;
}
.float-btn:hover {
    background: var(--accent-blue-hover);
    transform: scale(1.1);
}
.float-btn span {
    font-size: 24px;
}

/* --- 页面标题区样式 (通用) --- */
.page-header {
    padding: 120px 10% 80px;
    background: #080808;
    text-align: center;
}
.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 50px;
}
.page-desc {
    color: var(--text-sub);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-size: 17px;
}
.page-subtitle {
    color: var(--accent-blue);
    letter-spacing: 3px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}


/* --- works.html 专属布局 FIX --- */
.works-container {
    padding: 0 5% 100px;
    max-width: 1400px; margin: 0 auto;
}

.works-list-grid {
    display: grid; 
    /* 核心修复：强制 3 列均匀布局 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.works-list-grid .work-item img {
    height: 220px; /* 统一案例图高度 */
}

/* 案例分类标题 */
.category-title {
    font-size: 28px; font-weight: bold; margin: 80px 0 30px; 
    padding-left: 15px; border-left: 4px solid var(--accent-blue);
    color: #fff;
}

/* 播放按钮样式 */
.play-icon {
    position: absolute; top: 110px; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    z-index: 10; backdrop-filter: blur(4px);
    transition: 0.3s;
}
.play-icon::after {
    content: ''; display: block; width: 0; height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent; border-bottom: 9px solid transparent;
    margin-left: 4px;
}


/* --- 🚨 移动端优化 (汉堡菜单) 🚨 --- */

/* 1. 汉堡菜单按钮 (仅在移动端显示) */
#menu-toggle { display: none; } /* 隐藏实际的复选框 */
.menu-icon { 
    display: none; /* 默认隐藏 */
    cursor: pointer;
    padding: 10px;
    z-index: 1001; 
}
.menu-icon .bar {
    width: 25px; height: 3px; background: #fff; margin: 5px 0;
    transition: 0.4s;
}

/* 2. 移动端导航容器 (默认隐藏在屏幕外) */
.mobile-nav {
    position: fixed; top: 0; right: 0; width: 80%; height: 100%;
    background: #111; padding-top: 80px; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex; flex-direction: column; align-items: flex-start;
}
.mobile-nav a {
    padding: 15px 30px; width: 100%; border-bottom: 1px solid #222;
    font-size: 16px; font-weight: 500; color: #ccc;
    box-sizing: border-box;
}
.mobile-nav a:hover { color: var(--accent-blue); background: #1a1a1a; }

/* 3. 切换状态 (当 checkbox 被选中时) */
#menu-toggle:checked ~ .mobile-nav {
    transform: translateX(0);
}

/* 4. 移动端媒体查询 (激活汉堡菜单) */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* 隐藏桌面导航 */
    .menu-icon { display: block; } /* 显示汉堡菜单图标 */
    .header-btn { margin-left: 10px; } /* 按钮与图标留白 */
    
    .hero-section { padding-left: 20px; padding-right: 20px; }
    .hero-title { font-size: 38px; }
    .story-section { flex-direction: column; padding: 60px 20px; gap: 40px; }
    .story-image { width: 100%; height: 250px; }
    .case-grid { grid-template-columns: 1fr; }
    .works-list-grid { grid-template-columns: 1fr; } /* 移动端改为单列 */
    .section-title, .page-title { font-size: 32px; }
    .lazy-logo-container { padding: 10px; }
    .works-list-grid .work-item img { height: 200px; }

    .footer-links { flex-direction: column; align-items: center; }
    .footer-links a { margin: 5px 0; }
}