:root {
    --ink: #1a1a2e;           /* 深蓝色墨水：标题/粗体 */
    --ink-2: #16213e;         /* 次级深蓝色文字 */
    --cream: #f8f6f0;         /* 淡黄色纸张背景 */
    --lavender: #0f3460;      /* 深蓝色主色调 */
    --lavender-2: #16213e;    /* 悬停/高亮深蓝色 */
    --line: rgba(26,26,46,0.15); /* 深蓝色分割线/边框 */
    --shadow: 0 8px 28px rgba(26,26,46,0.15);
}

body { margin:0; padding:0; font-family: 'Sora', 'Inter', Arial, sans-serif; background: var(--cream); color: var(--ink); overflow-x: hidden; }

/* 导航 */
.navbar { width:100%; background:var(--cream); box-shadow: var(--shadow); position: sticky; top:0; z-index:100; border:none; height:96px; display:flex; align-items:center; }
.navbar-container { max-width:100%; width:100%; margin:0; display:flex; align-items:center; justify-content: space-between; padding:0 8vw; height:96px; }
.navbar-logo { height:56px; width:auto; margin-right:20px; border-radius:10px; box-shadow:0 4px 18px rgba(0,0,0,0.06); transform: rotate(70deg); }
.navbar-left { display:flex; align-items:center; }
.navbar-brand-word { font-weight:700; font-size:1.05rem; letter-spacing:.3px; color: var(--ink); text-decoration:none; }
.navbar-right { display:flex; gap:22px; align-items:center; margin-left:auto; }
.nav-btn { font-size:0.95rem; color: var(--ink); text-decoration:none; padding:10px 14px; border-radius:10px; transition:.2s ease; }
.nav-btn:hover { background: var(--lavender-2); color:#fff; }

/* 下拉子菜单 */
.nav-item { position:relative; }
.has-submenu .submenu { display:none; position:absolute; top:100%; right:0; background:var(--cream); box-shadow: var(--shadow); border-radius:12px; padding:8px; min-width: 220px; z-index: 999; }
.has-submenu:hover .submenu { display:block; }
.submenu .submenu-item { display:block; color: var(--ink); text-decoration:none; padding:10px 12px; border-radius:10px; white-space: nowrap; }
.submenu .submenu-item:hover { background: var(--lavender-2); color:#fff; }

/* 手机侧边菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--cream);
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(26, 26, 46, 0.15);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.mobile-menu-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--line);
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.mobile-menu-item:hover {
    background: var(--lavender-2);
    color: #fff;
}

/* Hero */
.hero { position:relative; width:100%; min-height:52vh; display:flex; align-items:center; background: var(--cream); margin-top:0; }
.hero-bg { position:absolute; top:0; right:0; width:100%; height:100%; }
.hero-img { width:100%; height:100%; object-fit:cover; filter: brightness(0.94); }
.hero-content { position:relative; padding-left:8vw; padding-right:4vw; width:50%; z-index:2; }
.hero-title { font-size:3.6rem; font-weight:700; color: #ffffff; letter-spacing:.2px; margin:0 0 8px 0; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
.hero-subtitle { font-size:1.1rem; color: rgba(255, 255, 255, 0.95); text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); }
.hero-location { font-size:.95rem; color: rgba(255, 255, 255, 0.9); text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }

.hero-btn {
    display: inline-block;
    background: var(--lavender);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background: var(--lavender-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}



/* Services Section */
.service-cards { 
    display: flex; 
    justify-content: center; 
    gap: 28px; 
    max-width: 1200px; 
    margin: 48px auto; 
    padding: 0 24px 72px; 
    width: 100%;
    box-sizing: border-box;
}
.service-card { 
    flex: 1 1 0; 
    max-width: 340px; 
    height: 480px; 
    border-radius: 24px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: var(--shadow); 
    background: var(--cream); 
    display: block;
    text-decoration: none;
}
.service-card::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%); 
}
.service-title { 
    position: absolute; 
    left: 20px; 
    bottom: 20px; 
    z-index: 2; 
    color: #fff !important; 
    font-weight: 600; 
    font-size: 1.25rem; 
    letter-spacing: .3px; 
}

/* 每张卡片背景 */
.service-cards .service-card:first-child { background: url('../images/Laser-Background.jpg') center/cover no-repeat; }
.service-cards .service-card:nth-child(2) { background: url('../images/3d-Printing-Background.jpeg') center/cover no-repeat; }
.service-cards .service-card:nth-child(3) { background: url('../images/IMG20250819213357.jpg') center/cover no-repeat; }

/* 确保服务卡片始终可见 */
.service-cards {
    visibility: visible !important;
    opacity: 1 !important;
}

.service-card {
    visibility: visible !important;
    opacity: 1 !important;
}

/* 深色区块 */
.section-dark { background: var(--ink); color:#fff; padding:80px 0; }
.section-title { max-width:1200px; margin:0 auto 24px; padding:0 24px; font-weight:700; letter-spacing:.3px; }

/* 响应式 */
@media (max-width: 900px) { 
    .service-cards { 
        flex-direction:column; 
        align-items:center; 
        gap:18px; 
    } 
    .service-card{ 
        height:360px; 
        max-width:92vw; 
    } 
    .hero-title{ 
        font-size:2.1rem; 
    } 
}

@media (max-width: 768px) {
    /* 手机导航栏 */
    .navbar-container { 
        padding: 0 4vw; 
        height: 70px; 
    }
    .navbar-brand-word { 
        font-size: 0.9rem; 
        cursor: pointer;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-trigger {
        cursor: pointer;
    }
    
    /* 手机Hero区域 */
    .hero { 
        min-height: 60vh; 
        flex-direction: column; 
        justify-content: center; 
        text-align: center; 
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
        .hero-bg { 
        width: 100%;
        height: 100%;
        right: 0;
    }
    
    .hero-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        margin-top: 16px;
    }
    .hero-content { 
        width: 60%; 
        padding: 0 4vw; 
        text-align: center; 
        max-width: 60%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .hero-title { 
        font-size: 1.6rem; 
        margin-bottom: 10px; 
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    

    .hero-subtitle { 
        font-size: 0.85rem; 
        margin-bottom: 6px; 
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-location { 
        font-size: 0.7rem; 
        line-height: 1.2;
    }
    
    .hero-btn {
        padding: 14px 28px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    /* 手机服务卡片 */
    .service-cards { 
        flex-direction: column; 
        gap: 12px; 
        padding: 0 4vw 30px; 
        margin: 24px auto; 
        max-width: 100%;
        width: 100%;
        display: flex !important;
        box-sizing: border-box;
    }
    .service-card { 
        height: 180px; 
        width: 100%; 
        max-width: 100%;
        border-radius: 12px;
        display: block !important;
        flex: none;
        box-sizing: border-box;
    }
    .service-title { 
        font-size: 1rem; 
        left: 12px; 
        bottom: 12px; 
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    /* 小手机优化 */
    .hero { 
        width: 100%;
        overflow-x: hidden;
        min-height: 65vh;
        box-sizing: border-box;
    }
    

    .hero-bg { 
        width: 100%;
        right: 0;
    }
    .hero-content { 
        width: 60%;
        max-width: 60%;
        padding: 0 4vw;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .hero-title { 
        font-size: 1.4rem; 
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle { 
        font-size: 0.75rem; 
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .service-cards { 
        width: 100%;
        max-width: 100%;
        padding: 0 3vw 30px;
        display: flex !important;
        box-sizing: border-box;
    }
    .service-card { 
        height: 160px; 
        width: 100%;
        max-width: 100%;
        display: block !important;
        box-sizing: border-box;
    }
    .service-title { 
        font-size: 0.9rem; 
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
} 