/* =========================================
   1. 全局设置 & 变量 (Global & Variables)
   ========================================= */
:root {
    --primary-color: #2c3e50; /* 商务深蓝灰 */
    --accent-color: #d4af37;  /* 高端金 */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    
    /* 字体定义 */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;
    --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif; /* 高端衬线体 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-jp);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

/* =========================================
   2. 布局工具 (Layout Utilities)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* 背景色工具 */
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.bg-white { background-color: var(--white); }

/* 对齐与间距 */
.center { text-align: center; }
.mb-50 { margin-bottom: 50px; }
.mb-20 { margin-bottom: 20px; }

/* 图片工具 */
.img-responsive { width: 100%; height: auto; display: block; }
.shadow { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* =========================================
   3. 导航栏 (Header & Navigation)
   ========================================= */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    z-index: 1000; 
    padding: 10px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Logo 样式 */
.logo-img { height: 50px; width: auto; display: block; transition: 0.3s; }
.logo-img:hover { opacity: 0.8; }

/* 菜单导航 */
nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--primary-color); 
    font-weight: 500; font-size: 0.9rem; transition: 0.3s; 
}
.nav-links a:hover { color: var(--accent-color); }

/* 语言选择器 (并列一行) */
.nav-controls { display: flex; align-items: center; gap: 15px; }
.lang-wrapper { 
    display: flex; align-items: center; gap: 6px; 
    padding-left: 15px; border-left: 1px solid #eee; 
}
.globe-icon { width: 18px; height: 18px; stroke: var(--primary-color); fill: none; }
select#language-selector {
    border: none; background: transparent; font-family: var(--font-jp); font-size: 0.85rem;
    color: var(--primary-color); cursor: pointer;
}
select#language-selector:focus { outline: none; }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--primary-color); margin: 5px; transition: all 0.3s ease; }

/* =========================================
   4. 首屏轮播 (Hero Section & Slider)
   ========================================= */
.hero {
    position: relative; 
    height: 90vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    transform: scale(1.05); /* 防止白边 */
}

.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; padding: 0 20px; }
.hero h2 { font-size: 3.5rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; }
.divider-hero { width: 80px; height: 4px; background: var(--accent-color); margin: 0 auto 30px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; font-weight: 300; }

.btn-primary {
    display: inline-block; padding: 15px 40px; background-color: var(--accent-color); color: var(--white);
    text-decoration: none; font-weight: 700; transition: background 0.3s; border-radius: 2px; letter-spacing: 1px;
}
.btn-primary:hover { background-color: #b5932b; }
.btn-large { font-size: 1.2rem; margin-top: 20px; }

/* =========================================
   5. 产品展示 (Products Grid - Index)
   ========================================= */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}

.product-card { 
    background: var(--white); 
    transition: transform 0.3s ease; 
    cursor: pointer; 
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-img-wrapper { 
    width: 100%; 
    aspect-ratio: 3 / 4; 
    overflow: hidden; 
    background-color: #f0f0f0; 
    margin-bottom: 15px; 
}

.product-img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease; 
}

.product-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary-color); }
.product-info p { font-size: 0.9rem; color: #666; line-height: 1.5; }
.section-sub { color: #888; margin-top: -40px; margin-bottom: 40px; font-size: 0.95rem; }

/* =========================================
   6. 愿景部分 (Vision Section - High-end Fix)
   ========================================= */
.vision-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0a1a2a; 
}

.vision-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* 默认金色网络图 */
    background-image: url('../images/vision_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomSlow 30s infinite alternate; /* 呼吸动画 */
}

@keyframes zoomSlow {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.vision-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.vision-section .container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
}

.vision-content { text-align: center; color: #fff; padding: 60px 40px; max-width: 800px; position: relative; }
.vision-frame { 
    border-left: 1px solid rgba(212, 175, 55, 0.3); 
    border-right: 1px solid rgba(212, 175, 55, 0.3); 
    padding: 0 40px; 
    position: relative; 
}
.decor-line-top, .decor-line-bottom { 
    position: absolute; left: 50%; transform: translateX(-50%); 
    width: 60px; height: 2px; background-color: var(--accent-color); 
}
.decor-line-top { top: -30px; } 
.decor-line-bottom { bottom: -30px; }

.vision-title { 
    font-family: var(--font-serif); 
    font-size: 3.5rem; 
    font-weight: 500; 
    letter-spacing: 0.2em; 
    margin-bottom: 40px; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}
.vision-text { 
    font-size: 1.2rem; line-height: 2.2; font-weight: 300; letter-spacing: 0.05em; opacity: 0.9; 
}

/* =========================================
   7. 常规组件 (Services, News, Footer)
   ========================================= */
.section-title { font-size: 2rem; margin-bottom: 30px; position: relative; color: var(--primary-color); font-weight: 700; }
.section-title.light { color: var(--white); }
.section-title.center-border { display: inline-block; }
.section-title.center-border::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent-color); margin: 15px auto 0; }

.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { padding-left: 30px; margin-bottom: 15px; position: relative; font-weight: 500; }
.feature-list li::before { content: '✔'; position: absolute; left: 0; color: var(--accent-color); }

.card { 
    background: var(--white); padding: 50px 30px; 
    border-top: 3px solid transparent; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
    transition: all 0.3s ease; text-align: center; 
}
.card:hover { transform: translateY(-10px); border-top-color: var(--accent-color); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card .icon { font-size: 3rem; margin-bottom: 20px; display: block; }

/* SVG & Glassmorphism additions */
.card .icon .svg-icon { width: 48px; height: 48px; stroke: var(--accent-color); margin-bottom: 20px; display: inline-block; }
.glass-card { background: rgba(255, 255, 255, 0.65) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.4); }
.card h4 { margin-bottom: 15px; font-size: 1.3rem; }

.news-list { max-width: 900px; margin: 0 auto; }
.news-item { display: flex; align-items: center; padding: 25px 0; border-bottom: 1px solid #eee; transition: background 0.2s; }
.news-item:hover { background-color: #fafafa; padding-left: 10px; }
.news-date { font-family: var(--font-en); font-weight: 700; color: var(--accent-color); width: 100px; flex-shrink: 0; }
.badge { font-size: 0.7rem; padding: 4px 10px; background: var(--primary-color); color: var(--white); margin-right: 20px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; }

.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { text-align: left; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.profile-table th { width: 30%; color: #aaa; font-weight: 400; }

footer { background: #1a252f; color: #7f8c8d; padding: 30px 0; font-size: 0.9rem; text-align: center; }

/* =========================================
   8. [NEW] 产品详情页专用样式 (Product Detail)
   ========================================= */
.prod-hero {
    height: 80vh;
    background: linear-gradient(to right, #fdfbfb 0%, #ebedee 100%);
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.prod-hero-img {
    width: 50%; height: 100%; object-fit: cover; position: absolute; right: 0; top: 0;
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
}
.prod-hero-content {
    width: 50%; padding: 5%; z-index: 2;
}
.badge-pink {
    background-color: #ff8e8e; color: white; padding: 5px 15px; 
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
}
.science-section { background: #fff; padding: 80px 0; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tech-box { background: #f9f9f9; padding: 40px; border-left: 3px solid #d4af37; }
.tech-img img { border-radius: 5px; }

.spec-table { width: 100%; border-top: 1px solid #ddd; margin-top: 20px; }
.spec-table th, .spec-table td { padding: 15px 0; border-bottom: 1px solid #ddd; text-align: left; }
.spec-table th { width: 30%; color: #888; font-weight: 400; }

/* =========================================
   9. 动画效果 (Animations)
   ========================================= */
.fade-up { opacity: 0; animation: fadeInUp 1s forwards; animation-delay: 0.3s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.fade-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.fade-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   10. 移动端适配 (Mobile Responsiveness)
   ========================================= */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* 字体调整 */
    .hero h2 { font-size: 2rem; }
    .vision-title { font-size: 2rem; }
    
    /* 布局调整 */
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .product-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    
    /* 详情页移动端适配 */
    .prod-hero { flex-direction: column; height: auto; padding-top: 80px; }
    .prod-hero-img { width: 100%; height: 300px; position: relative; mask-image: none; -webkit-mask-image: none; }
    .prod-hero-content { width: 100%; padding: 30px; }
    .tech-grid { grid-template-columns: 1fr; }

    /* Vision 简化 */
    .vision-frame { border: none; padding: 0; }
    
    /* 移动端导航 */
    .burger { display: block; }
    .nav-links { 
        position: absolute; right: 0; top: 70px; background: var(--white); 
        flex-direction: column; width: 100%; text-align: center; padding: 20px 0; 
        transform: translateY(-150%); transition: transform 0.5s ease; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
    }
    .nav-links.active { transform: translateY(0); }
    
    .news-item { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* =========================================
   11. Contact Form Styles (New)
   ========================================= */
.contact-layout {
    align-items: flex-start; /* 顶部对齐 */
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05); /* 半透明背景 */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.btn-block {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-form-wrapper {
        padding: 20px;
    }
}
/* ... (保留之前的 CSS) ... */

/* =========================================
   [UPDATED] Navigation Button Style
   ========================================= */
/* 针对 Contact 链接的特殊样式 */
.nav-links .nav-btn {
    background-color: var(--accent-color); /* 使用网站主色调金色 (#d4af37) */
    color: #fff !important; /* 强制文字白色 */
    padding: 10px 25px;     /* 增加内边距，使其像一个按钮 */
    border-radius: 2px;     /* 轻微圆角，保持商务感 */
    font-weight: 700;       /* 加粗字体 */
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

/* 悬停效果 */
.nav-links .nav-btn:hover {
    background-color: #b5932b; /* 悬停时变深色 */
    color: #fff;
    transform: translateY(-2px); /* 轻微上浮 */
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3); /* 增加金色阴影 */
}

/* 移动端适配：在手机菜单中保持按钮样式，或者调整为全宽 */
@media (max-width: 768px) {
    .nav-links .nav-btn {
        background-color: transparent; /* 手机菜单中通常不需要背景色，保持简洁 */
        color: var(--primary-color) !important;
        padding: 0;
    }
    .nav-links .nav-btn:hover {
        background-color: transparent;
        color: var(--accent-color) !important;
        transform: none;
        box-shadow: none;
    }
}

/* =========================================
   12. Pro-Max Floating CTA & Product Shine
   ========================================= */
.product-card { position: relative; overflow: hidden; }
.product-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: all 0.7s ease; z-index: 1; pointer-events: none;
}
.product-card:hover::after { left: 150%; }

.floating-cta {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%;
    background-color: var(--accent-color); color: var(--white); display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); z-index: 999; transition: all 0.3s ease;
}
.floating-cta:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6); color: var(--white); }
.floating-cta svg { width: 28px; height: 28px; }
.floating-cta::before {
    content: ''; position: absolute; border-radius: 50%; width: 100%; height: 100%;
    border: 2px solid var(--accent-color); animation: pulse-ring 2s infinite; pointer-events: none;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================
   13. Premium Service Section Redesign
   ========================================= */
.bg-pearl { background: linear-gradient(135deg, #ffffff 0%, #fcfaf2 100%); }

.service-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 45px 30px; /* 压缩内边距 */
    text-align: center;
    transition: all 0.6s var(--ease-pop);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent);
    pointer-events: none;
}

.service-card-premium:hover {
    background: #ffffff;
    transform: translateY(-10px); /* 减小上浮幅度 */
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.service-icon-box {
    width: 70px; /* 缩小图标盒 */
    height: 70px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.5s ease;
}

.service-card-premium:hover .service-icon-box {
    transform: rotateY(180deg) scale(1.1);
    background: rgba(212, 175, 55, 0.1);
}

.service-card-premium h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-serif);
    font-weight: 700;
}

.service-card-premium p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.service-link-arrow {
    margin-top: auto;
    padding-top: 25px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.service-card-premium:hover .service-link-arrow {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .service-grid-premium { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .service-grid-premium { grid-template-columns: 1fr; }
    .service-card-premium { padding: 40px 25px; }
}