/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
    /* Colors - Sophisticated Deep Ocean & Platinum Palette */
    --primary-color: #0a2540;
    --secondary-color: #e8e8e8;
    --accent-color: #1e4d7b;
    --accent-light: #3d7ba8;
    --text-dark: #1a1a1a;
    --text-light: #5a6c7d;
    --text-white: #ffffff;
    --bg-light: #f7f9fc;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px;
    --container-padding: 20px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

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

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

ul {
    list-style: none;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding) 0;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(10, 37, 64, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(10, 37, 64, 0.1);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 37, 64, 0.05), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    background: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
    overflow: visible;
}

.navbar .logo {
    color: var(--text-white);
}

.navbar .logo-icon {
    color: var(--text-white);
}

.navbar .nav-link {
    color: var(--text-white);
}

.navbar .nav-toggle span {
    background: var(--text-white);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.navbar.scrolled .logo-icon {
    color: var(--primary-color);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.navbar.scrolled .nav-toggle span {
    background: var(--primary-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    max-height: 0;
    opacity: 0;
    overflow: visible;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-left: auto;
    margin-right: 60px;
}

.nav-menu.active {
    max-height: 80px;
    opacity: 1;
}

/* 滚动后菜单项颜色调整 */
.navbar.scrolled .nav-menu .nav-link {
    color: var(--text-dark);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition-smooth);
}

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

.nav-cta {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-white) !important;
    border-radius: 30px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 37, 64, 0.3);
    background: var(--accent-color);
}

/* 确保滚动后 Contact 按钮保持蓝底白字 */
.navbar.scrolled .nav-cta {
    background: var(--primary-color);
    color: var(--text-white) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--accent-color);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--text-white);
    transition: var(--transition-smooth);
    border-radius: 2px;
    display: block;
}

/* PC 端汉堡按钮样式 */
.navbar.scrolled .nav-toggle span {
    background: var(--primary-color);
}

/* X 按钮样式 - 页面顶部时白色，其他时候深蓝色 */
.nav-toggle.active span {
    background: var(--text-white);
}

.navbar.scrolled .nav-toggle.active span {
    background: var(--primary-color);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a2540 0%, #1e4d7b 50%, #2c5f8d 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 123, 168, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    opacity: 0.8;
}

.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--text-white);
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.7));
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===================================
   Services Section
   =================================== */
.services-preview {
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.service-card {
    padding: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: -40px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 20px;
    color: var(--text-white);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.3);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding: 0 40px;
}

.service-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 0 40px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    padding: 0 40px 40px;
}

.service-link:hover {
    color: var(--accent-color);
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose {
    background: var(--bg-light);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-choose-text {
    max-width: 600px;
}

.why-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.why-list {
    margin-bottom: 40px;
}

.why-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.why-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(10, 37, 64, 0.2);
}

.why-list strong {
    display: block;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.why-list p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.why-choose-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    padding: 0;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.visual-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.visual-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.visual-card.card-1 {
    top: 0;
    left: 0;
    width: 250px;
}

.visual-card.card-2 {
    top: 150px;
    right: 0;
    width: 280px;
}

.visual-card.card-3 {
    bottom: 0;
    left: 50px;
    width: 240px;
}

.visual-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding: 25px 20px;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 123, 168, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-title {
    font-size: 1.125rem;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===================================
   Page Hero (About & Services Pages)
   =================================== */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.page-hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.page-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--text-white);
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* ===================================
   Company Story Section
   =================================== */
.company-story {
    background: var(--bg-white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.story-paragraph {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -47px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===================================
   Values Section
   =================================== */
.values-section {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.value-card {
    padding: 50px 40px;
    background: var(--bg-white);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.value-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Team Section
   =================================== */
.team-section {
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.team-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-secondary);
}

.team-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Certifications Section
   =================================== */
.certifications {
    background: var(--bg-white);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.cert-item {
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cert-badge {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: 15px;
}

.cert-item p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===================================
   Services Detail Section
   =================================== */
.services-detail {
    background: var(--bg-white);
}

.service-detail-item {
    margin-bottom: 100px;
}

.service-detail-item:last-child {
    margin-bottom: 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.service-detail-item.reverse .service-detail-content {
    grid-template-columns: 0.8fr 1.2fr;
}

.service-detail-item.reverse .service-detail-text {
    order: 2;
}

.service-detail-item.reverse .service-detail-visual {
    order: 1;
}

.service-detail-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(10, 37, 64, 0.2);
}

.service-features strong {
    display: block;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.service-features p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visual-box {
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 30px;
    text-align: center;
    color: var(--text-white);
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.3);
    overflow: hidden;
    position: relative;
}

.visual-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.3;
}

.visual-box h3 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin: 30px 0 10px;
    font-family: var(--font-secondary);
    position: relative;
    z-index: 2;
}

.visual-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* ===================================
   Process Section
   =================================== */
.process-section {
    background: var(--bg-light);
}

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

.process-step {
    padding: 40px 30px;
    background: var(--bg-white);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    opacity: 0.3;
}

.step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Categories Section
   =================================== */
.categories-section {
    background: var(--bg-white);
}

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

.category-card {
    padding: 0;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    overflow: hidden;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.category-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 30px 15px;
    padding: 0;
}

.category-description {
    font-size: 1rem;
    color: var(--text-light);
    padding: 0 30px 30px;
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .why-choose-content {
        gap: 50px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-detail-item.reverse .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-detail-item.reverse .service-detail-text {
        order: 1;
    }

    .service-detail-item.reverse .service-detail-visual {
        order: 2;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* 菜单遮罩层 - 仅移动端使用 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* PC 端不显示遮罩层 */
@media (min-width: 769px) {
    .nav-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* 移动端菜单改为侧边栏 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        max-height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        padding: 40px 30px;
        margin: 0;
        background: var(--bg-white);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        opacity: 1;
        overflow: visible;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
        max-height: 100vh;
    }

    /* 移动端菜单项颜色 */
    .nav-menu .nav-link {
        color: var(--text-dark) !important;
        font-size: 1.125rem;
        font-weight: 600;
        padding: 8px 0;
        text-align: center;
    }

    .nav-menu .nav-link:hover {
        color: var(--primary-color) !important;
    }

    .nav-menu .nav-link::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu .nav-link:hover::after,
    .nav-menu .nav-link.active::after {
        width: 60%;
    }

    /* 移动端 Contact 按钮样式 */
    .nav-menu .nav-cta {
        background: var(--primary-color);
        color: var(--text-white) !important;
        padding: 14px 35px;
        margin-top: 10px;
    }

    .nav-menu .nav-cta:hover {
        background: var(--accent-color);
    }

    /* 移动端显示遮罩层 */
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* 移动端按钮位置 */
    .nav-toggle {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }

    /* 移动端 X 按钮颜色 */
    .nav-toggle.active span {
        background: var(--primary-color) !important;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-choose-visual {
        height: 400px;
    }

    .visual-card {
        padding: 30px;
    }

    .visual-card.card-1,
    .visual-card.card-2,
    .visual-card.card-3 {
        width: 200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .why-choose-visual {
        display: none;
    }
}
