@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* --- 1. 全局设置 --- */
:root {
    --gold-primary: #bf9b4d;      
    --gold-light: #e0ca96;        
    --dark-gray: #524636;         
    --bg-white: #ffffff;          
    --bg-light: #f9f9f9;
    --text-main: #333333;
    --border-color: rgba(191, 155, 77, 0.2);
}

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

body {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; /* 正文用黑体易读 */
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; /* 标题用宋体显高级 */
    font-weight: 500;
}

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

/* --- 2. 导航栏 (复用并微调) --- */
.navbar {
    display: flex;
    height: 100px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.logo-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-right: 15px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-subtext {
    color: var(--gold-primary);
    font-size: 11px;
    letter-spacing: 0.25em;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    line-height: 1;
    text-indent: 0.25em;
    white-space: nowrap;
}

/* 移除旧的 logo-symbol 样式 */
/* 
.logo-symbol {
    width: 45px; height: 45px;
    ...
}
*/

.brand-text { color: var(--dark-gray); font-size: 20px; letter-spacing: 1px; font-family: serif; }
.brand-text span { display: block; font-size: 10px; color: var(--gold-primary); margin-top: 2px; font-weight: bold; }

.nav-content { width: 60%; display: flex; flex-direction: column; }

.top-row { display: flex; height: 45px; background-color: var(--dark-gray); color: #fff; font-size: 12px; }

.contact-btn {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    flex: 1.5; display: flex; align-items: center; justify-content: center;
    font-weight: bold; cursor: pointer;
    font-size: 14px;
}
.contact-btn:hover { filter: brightness(1.1); }

.top-item { flex: 1; display: flex; justify-content: center; align-items: center; border-left: 1px solid rgba(255,255,255,0.1); cursor: pointer; }

.main-row { display: flex; height: 55px; border-bottom: 1px solid var(--border-color); }

.nav-link {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: var(--dark-gray); font-size: 14px; font-weight: 500;
    border-left: 1px solid var(--border-color);
    position: relative;
}
.nav-link:hover { color: var(--gold-primary); background: rgba(191, 155, 77, 0.04); }
.nav-link::after { content: ''; margin-left: 8px; border: 4px solid transparent; border-top-color: var(--gold-primary); margin-top: 4px; opacity: 0.6; }

/* --- Dropdown Navigation Styles --- */
.nav-item-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    /* Ensure child nav-link fills the height */
}

.nav-item-wrapper .nav-link {
    width: 100%;
    /* Remove border-left from here if we want it on wrapper, or keep it. 
       If keeping it, ensure nav-link is full height. 
       nav-link already has display: flex, align-items: center. 
       We just need flex: 1 on wrapper and height: 100% on link.
    */
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px; /* Slightly wider than the button */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border-top: 3px solid var(--gold-primary);
}

.nav-item-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep the parent link active when dropdown is open */
.nav-item-wrapper:hover .nav-link {
    color: var(--gold-primary);
    background: rgba(191, 155, 77, 0.04);
}

.dropdown-item {
    display: block;
    padding: 14px 24px;
    color: var(--dark-gray);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--gold-primary);
    padding-left: 30px; /* Slide effect */
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0;
    transition: 0.2s;
}

.dropdown-item:hover::before {
    opacity: 1;
}

/* --- 3. Hero Section (首屏视觉) --- */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../assets/images/index-hero.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 竖排文字设计 */
.hero-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: white;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    letter-spacing: 0.3em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero-title {
    font-size: 40px;
    font-weight: 600;
    border-left: 2px solid var(--gold-primary);
    padding-left: 18px;
    letter-spacing: 0.15em;
    line-height: 1.8;
}
.hero-title .hero-japan-word { display: inline-block; white-space: nowrap; }
.hero-sub {
    font-size: 15px;
    margin-right: 40px;
    color: var(--gold-light);
    letter-spacing: 0.2em;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 滚动提示 */
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: white; font-size: 12px; display: flex; flex-direction: column; align-items: center;
    opacity: 0.8; animation: bounce 2s infinite;
}
.scroll-line { width: 1px; height: 40px; background: white; margin-top: 10px; }

@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* --- 4. 业务板块 (Services) --- */
.section { padding: 80px 10%; }
.section-bg { background-color: var(--bg-light); }

.video-section {
    background: #eef6f7;
    padding-top: 90px;
    padding-bottom: 90px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 120px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); filter: brightness(1.1); }
.social-btn:active { transform: translateY(-1px); }

.social-btn.tiktok { background: linear-gradient(135deg, #000000, #00f2ea); color: #fff; }
.social-btn.youtube { background: #ff0000; }
.social-btn.xhs { background: #ff2442; }
.social-btn.douyin { background: linear-gradient(135deg, #000000, #ff0050); }
.social-btn.bilibili { background: #00a1d6; }

.social-empty {
    width: 100%;
    text-align: left;
    color: #aaa;
    font-size: 12px;
    padding: 6px 0;
}

.video-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 24px;
    overflow-x: auto;
    padding: 12px 10%;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-padding: 10%;
    -webkit-overflow-scrolling: touch;
    align-items: start;
}

.video-grid::-webkit-scrollbar { height: 8px; }
.video-grid::-webkit-scrollbar-track { background: rgba(191, 155, 77, 0.08); }
.video-grid::-webkit-scrollbar-thumb { background: rgba(82, 70, 54, 0.4); border-radius: 10px; }

.video-card {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    min-width: 280px;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(191, 155, 77, 0.15);
}

.video-frame {
    position: relative;
    height: 380px;
    background: #0f0f0f;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* TikTok 视频特殊样式 - 竖屏视频 */
.video-frame-tiktok {
    position: relative;
    background: transparent;
    height: 380px;
    max-height: 380px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.video-card-tiktok {
    min-width: 280px;
    max-width: 280px;
}

.video-frame-tiktok .tiktok-embed {
    margin: 0 auto;
    max-height: 380px;
    overflow: hidden;
}

.video-frame-tiktok iframe {
    max-height: 380px;
}

.video-meta {
    padding: 16px 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.video-title {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.5;
    flex: 1;
}

.video-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(191, 155, 77, 0.12);
    color: var(--gold-primary);
    font-size: 11px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.video-empty {
    width: 100%;
    text-align: center;
    color: #777;
    padding: 30px 0;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 32px; color: var(--dark-gray); margin-bottom: 15px; letter-spacing: 0.1em; }
.section-subtitle { font-size: 14px; color: var(--gold-primary); font-family: sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }

/* 装饰短线 */
.divider { width: 40px; height: 2px; background: var(--gold-primary); margin: 0 auto; }

/* 2x2 网格布局 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px;
    border-top: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--gold-primary);
    box-shadow: 0 15px 30px rgba(191, 155, 77, 0.15);
}

/* 卡片背景装饰 (日式波纹模拟) */
.service-card::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 100px; height: 100px; background: var(--gold-light);
    opacity: 0.1; border-radius: 50%; transition: 0.5s;
}
.service-card:hover::before { transform: scale(1.5); }

.card-icon { font-size: 30px; color: var(--gold-primary); margin-bottom: 20px; }
.card-title { font-size: 20px; color: var(--dark-gray); margin-bottom: 15px; font-family: serif; }
.card-desc { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 20px; }

.card-link {
    font-size: 13px; color: var(--gold-primary); font-weight: bold;
    display: flex; align-items: center;
}
.card-link::after { content: '→'; margin-left: 5px; transition: 0.3s; }
.service-card:hover .card-link::after { margin-left: 10px; }

/* --- 5. 公司简介 (About) --- */
.about-section { display: flex; align-items: center; gap: 50px; padding: 100px 10%; }
.about-image { flex: 1; height: 400px; background: #ddd; position: relative; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
/* 金色边框装饰 */
.about-image::after {
    content: ''; position: absolute; bottom: -20px; right: -20px;
    width: 100%; height: 100%; border: 2px solid var(--gold-primary); z-index: -1;
}

.about-content { flex: 1; }
.about-text { margin: 30px 0; color: #555; text-align: justify; }

/* 按钮样式 */
.btn-gold {
    display: inline-block; padding: 12px 35px;
    background: var(--dark-gray); color: white;
    border: 1px solid var(--dark-gray);
    font-size: 14px; transition: 0.3s;
}
.btn-gold:hover { background: white; color: var(--dark-gray); }

/* --- 6. Footer --- */
footer { background: #1a1a1a; color: #888; padding: 60px 10% 20px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; border-bottom: 1px solid #333; padding-bottom: 40px; }
.footer-logo { color: white; font-size: 18px; margin-bottom: 20px; display: block; font-family: 'Quicksand', 'Rounded Mplus 1c', sans-serif; font-weight: 600; }
.footer-logo span { color: var(--gold-primary); }
.footer-heading { color: white; margin-bottom: 20px; font-size: 14px; font-weight: bold; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold-primary); }
.copyright { text-align: center; font-size: 11px; }

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-title { font-size: 28px; padding-left: 12px; }
    .hero-sub { margin-right: 24px; font-size: 13px; }
    .video-grid {
        grid-auto-columns: 80vw;
        gap: 16px;
        padding: 12px 16px;
        scroll-padding: 16px;
    }
    .social-links { 
        gap: 10px;
        max-width: 100%;
    }
    .service-grid { grid-template-columns: 1fr; }
    .about-section { flex-direction: column; }
    .nav-content { display: none; } /* 移动端暂隐导航 */
    .logo-section { padding-left: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* 模拟图标 */
.ico-box { width: 40px; height: 40px; border: 1px solid var(--gold-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: 50%; font-size: 18px; font-style: normal; }
