/* Design tokens */
:root {
    --color-text: #1e293b; /* 增强文字对比度 */
    --color-text-muted: #475569; /* 新增辅助文字颜色 */
    --color-heading: #0f172a; /* 增强标题对比度 */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-surface: #ffffff;
}

/* General Body and Typography */
body {
    font-family: 'Inter', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc; /* bg-slate-50 */
    color: var(--color-text);
    line-height: 1.7; /* 改善行高 */
    font-size: clamp(16px, 1.8vw, 18px); /* 增大基础字体 */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3; /* 改善标题行高 */
}
h1 { font-size: clamp(32px, 5vw, 52px); } /* 增大h1 */
h2 { font-size: clamp(28px, 4vw, 40px); } /* 增大h2 */
h3 { font-size: clamp(24px, 3.2vw, 34px); } /* 增大h3 */

a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 or px-6 equivalent */
    padding-right: 1rem;
}

/* Responsive container widths */
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px){ .container { max-width: 1024px; } }
@media (min-width: 1280px){ .container { max-width: 1200px; } }

/* Header and Navigation */
.site-header {
    background-color: #ffffff; /* bg-white */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
    text-decoration: none;
}
.logo-image {
    width: 40px;
    height: 40px;
    display: inline-block;
}
.logo-text {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: var(--color-primary); /* use theme token */
}

/* Hover state: darken the text color to match theme */
.logo:hover .logo-text { color: var(--color-primary-dark); }

/* Small screens: slightly smaller logo */
@media (max-width: 480px) {
    .logo-image { width: 32px; height: 32px; }
    .logo-text { font-size: 1.25rem; }
}

.main-nav {
    display: none; /* Hidden on mobile by default */
}

.main-nav a {
    color: #334155; /* text-slate-700 */
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2563eb; /* text-blue-600 */
    font-weight: 600; /* font-semibold */
}

.main-nav .cta-button {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff; /* text-white */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-semibold */
}

.main-nav .cta-button:hover {
    background-color: #1d4ed8; /* bg-blue-700 */
    color: #ffffff;
}

/* Mobile Menu */
.mobile-menu-button {
    display: block; /* Hidden on desktop by default */
    background: none;
    border: none;
    color: #334155; /* text-slate-700 */
    cursor: pointer;
}
.mobile-menu-button svg {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
}

.mobile-menu {
    display: none;
    background-color: #ffffff; /* bg-white */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* shadow-lg */
    position: absolute; /* 将在脚本打开时切换为 fixed */
    top: 100%; /* 初始定位在 header 下方 */
    left: 0;
    right: 0;
    z-index: 1000; /* 提升层级，确保覆盖页面内容 */
    border-top: 1px solid #e2e8f0; /* 分隔线，避免与头部粘连视觉问题 */
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    color: #334155; /* text-slate-700 */
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0; /* border-slate-200 */
}
.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: #eff6ff; /* bg-blue-50 */
    color: #2563eb; /* text-blue-600 */
}

/* Touch target size in mobile menu */
.mobile-menu a { min-height: 44px; display: flex; align-items: center; }


/* Page Header (for subpages) */
.page-header {
    padding: 3rem 0; /* py-12 md:py-20 */
    text-align: center;
    background-size: cover;
    background-position: center center;
    color: #ffffff; /* text-white */
}
.page-header h1 {
    font-size: 2.5rem; /* text-4xl md:text-5xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: #ffffff;
}
.page-header p {
    font-size: 1.25rem; /* text-xl md:text-2xl */
    color: #e2e8f0; /* text-slate-200 */
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumb {
    padding: 1rem 0; /* py-4 */
    font-size: 0.875rem; /* text-sm */
}
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb a {
    color: #64748b; /* text-slate-500 */
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb svg {
    fill: currentColor;
    width: 0.75rem; /* w-3 */
    height: 0.75rem; /* h-3 */
    margin: 0 0.5rem; /* mx-2 */
    color: #94a3b8; /* text-slate-400 */
}
.breadcrumb .current {
    color: #334155; /* text-slate-700 */
    font-weight: 500; /* font-medium */
}

/* Section Styling */
.section {
    padding: 3rem 0; /* py-12 md:py-16 */
}
.section-bg-slate-100 {
    background-color: #f1f5f9; /* bg-slate-100 */
}
.section-bg-blue-50 {
    background-color: #eff6ff; /* bg-blue-50 */
}

.section-title {
    font-size: 2rem; /* text-3xl md:text-4xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
    text-align: center;
    color: #1e293b; /* text-slate-800 */
}
.section-subtitle {
    font-size: 1.125rem; /* text-lg md:text-xl */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 2.5rem; /* mb-10 */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600; /* font-semibold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 0.5rem; /* rounded-lg */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* 防止按钮文字换行 */
    min-height: 44px; /* ensure comfortable touch area */
    min-width: 44px; /* 确保最小触摸目标 */
    line-height: 1.4; /* 改善按钮内文字行高 */
}
.btn-primary {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff; /* text-white */
}
.btn-primary:hover {
    background-color: #1d4ed8; /* bg-blue-700 */
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: #f59e0b; /* bg-amber-500 */
    color: #ffffff; /* text-white */
}
.btn-secondary:hover {
    background-color: #d97706; /* bg-amber-600 */
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid #2563eb; /* border-blue-600 */
    color: #2563eb; /* text-blue-600 */
}
.btn-outline:hover {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff; /* text-white */
    transform: translateY(-2px);
}
.btn-lg {
    padding: 1rem 2rem; /* py-4 px-8 */
    font-size: 1.125rem; /* text-lg */
}

/* Icons in buttons or inline with text */
.btn i, .btn svg { 
    display: inline-flex; 
    vertical-align: middle; 
    line-height: 1; 
    margin-right: 0.5rem; 
    font-size: 1em; 
    align-items: center; /* 改善对齐 */
}
.icon-sm { font-size: 1rem; width: 1rem; height: 1rem; } /* 增大小图标 */
.icon-md { font-size: 1.5rem; width: 1.5rem; height: 1.5rem; } /* 增大中图标 */
.icon-lg { font-size: 2rem; width: 2rem; height: 2rem; } /* 增大大图标 */

/* 按钮组样式 - 响应式水平调整大小 */
.product-button-group {
    display: flex;
    flex-wrap: nowrap; /* 强制不换行 */
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    overflow-x: auto; /* 提供备用滚动方案，但主要靠缩放 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.product-button-group::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.product-button-group .btn {
    flex-shrink: 1; /* 允许按钮收缩 */
    flex-grow: 1;   /* 允许按钮拉伸 */
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    /* 居中对齐文本与图标，修复移动端不居中问题 */
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

/* 默认样式（大屏幕） */
.product-button-group .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* 平板电脑屏幕 */
@media (max-width: 768px) {
    .product-button-group .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* 大型手机屏幕 */
@media (max-width: 640px) {
    .product-button-group {
        gap: 0.3rem;
    }
    .product-button-group .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* 小型手机屏幕 */
@media (max-width: 480px) {
    .product-button-group {
        gap: 0.2rem;
    }
    .product-button-group .btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
}



/* Cards */
.card {
    background-color: #ffffff; /* bg-white */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04); /* shadow-lg */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-xl */
}
.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem; /* p-6 */
}
.card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: var(--color-heading); /* 使用改进的标题颜色 */
}
.card-text {
    color: var(--color-text-muted); /* 使用新的辅助文字颜色 */
    margin-bottom: 1rem; /* mb-4 */
    font-size: 0.95rem; /* 稍微增大字体 */
    line-height: 1.6; /* 改善行高 */
}
.card-link {
    font-weight: 500; /* font-medium */
    color: #2563eb; /* text-blue-600 */
    text-decoration: none;
}
.card-link:hover {
    color: #1d4ed8; /* text-blue-700 */
    text-decoration: underline;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem; /* gap-8 */
}
/* Do not redefine grid-cols-* utilities here to avoid conflicts with Tailwind */


/* Footer */
.site-footer {
    background-color: #1e293b; /* bg-slate-800 */
    color: #cbd5e1; /* text-slate-300 */
    padding: 3rem 0; /* py-12 */
    text-align: center;
    margin-top: 3rem; /* mt-12 md:mt-16 */
}
.site-footer p {
    margin-bottom: 0.5rem; /* mb-2 */
}
.site-footer a {
    color: #94a3b8; /* text-slate-400 */
    text-decoration: none;
    margin: 0 0.5rem; /* mx-2 */
}
.site-footer a:hover {
    color: #ffffff; /* text-white */
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* 新增：响应式工具类 */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* 新增：可访问性改进 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 新增：焦点状态优化 */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* Hero Section (Homepage) */
.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(55vh, 70vh, 85vh);
    overflow: hidden;
}
.hero-carousel .carousel-item {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}
.hero-carousel .carousel-item.active {
    display: block;
    opacity: 1;
}
.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-carousel .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem; /* p-6 */
}
.hero-carousel .hero-gradient h1 {
    font-size: 2.5rem; /* text-4xl md:text-6xl */
    font-weight: 700; /* font-bold */
    color: #ffffff; /* text-white */
    margin-bottom: 1rem; /* mb-4 */
    animation: fadeInDown 1s ease-out forwards;
}
.hero-carousel .hero-gradient p {
    font-size: 1.125rem; /* text-lg md:text-2xl */
    color: #f1f5f9; /* text-slate-100 */
    margin-bottom: 2rem; /* mb-8 */
    animation: fadeInUp 1s ease-out 0.5s forwards;
}
.hero-carousel .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 0.75rem; /* p-3 */
    min-width: 44px; /* a11y min touch size */
    min-height: 44px; /* a11y min touch size */
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}
.hero-carousel .carousel-nav-btn:hover {
    background-color: rgba(0,0,0,0.6);
}
.hero-carousel #prevBtn { left: 1rem; } /* left-4 */
.hero-carousel #nextBtn { right: 1rem; } /* right-4 */

.hero-carousel #carousel-indicators {
    position: absolute;
    bottom: 1.25rem; /* bottom-5 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem; /* space-x-2 */
    z-index: 10;
}
.hero-carousel #carousel-indicators button {
    width: 0.75rem; /* w-3 */
    height: 0.75rem; /* h-3 */
    border-radius: 9999px; /* rounded-full */
    background-color: #9ca3af; /* bg-gray-400 */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.hero-carousel #carousel-indicators button.active {
    background-color: #ffffff; /* bg-white */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item { transition: none; }
    .hero-carousel .hero-gradient h1,
    .hero-carousel .hero-gradient p { animation: none; }
}

/* Animations for Hero Text */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Product Page Specific */
.product-detail-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* bg-white */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -1px rgba(0,0,0,0.05); /* shadow-xl */
    overflow: hidden;
    margin-bottom: 2rem; /* mb-8 or mb-16 */
}
.product-detail-card img.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.product-detail-content {
    padding: 2rem; /* p-8 md:p-12 */
}
.product-detail-content .product-category-tag {
    display: inline-block;
    background-color: #e0e7ff; /* bg-indigo-100 */
    color: #4338ca; /* text-indigo-700 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    padding: 0.25rem 0.75rem; /* px-2.5 py-0.5 */
    border-radius: 9999px; /* rounded-full */
    margin-bottom: 1rem; /* mb-4 */
}
.product-detail-content h2 {
    font-size: 1.875rem; /* text-2xl md:text-3xl */
    font-weight: 600; /* font-semibold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 0.75rem; /* mb-3 */
}
.product-detail-content .product-description {
    color: #475569; /* text-slate-600 */
    margin-bottom: 1rem; /* mb-4 */
    line-height: 1.7;
}
.product-detail-content .product-features-list {
    list-style: disc;
    list-style-position: inside;
    color: #475569; /* text-slate-600 */
    margin-bottom: 1.5rem; /* mb-6 */
    padding-left: 0; /* Remove default padding if using list-style-position: inside */
}
.product-detail-content .product-features-list li {
    margin-bottom: 0.25rem; /* space-y-1 */
}

/* Product Detail Page (Generic) */
.product-gallery-main {
    max-height: 500px;
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* shadow-lg */
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain for better detail visibility */
}
.product-gallery-thumbnails {
    display: flex;
    gap: 0.5rem; /* space-x-2 */
    overflow-x: auto;
    padding-bottom: 0.5rem; /* pb-2 */
    margin-top: 1rem; /* Added margin top */
}
.product-gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.375rem; /* rounded-md */
    transition: border-color 0.3s ease;
}
.product-gallery-thumbnail.active,
.product-gallery-thumbnail:hover {
    border-color: #2563EB; /* blue-600 */
}
.product-info h1 {
    font-size: 2.25rem; /* text-3xl md:text-4xl */
    font-weight: 700; /* font-bold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 0.75rem; /* mb-3 */
}
.product-info .product-sku {
    font-size: 1rem; /* text-lg */
    color: #2563eb; /* text-blue-600 */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem; /* mb-4 */
}
.product-info .prose { /* For general text formatting */
    color: #475569; /* text-slate-600 */
    line-height: 1.6;
    max-width: none; /* Override prose max-width if needed */
}
.product-info .prose p {
    margin-bottom: 1em;
}
.product-info .features-title, .product-info .specs-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #334155; /* text-slate-700 */
    margin-bottom: 0.5rem; /* mb-2 */
    margin-top: 1.5rem; /* mt-6 */
}
.product-info .features-list {
    list-style: disc;
    padding-left: 1.25rem; /* ml-5 or equivalent */
    margin-bottom: 1.5rem; /* mb-6 */
    color: #475569; /* text-slate-600 */
}
.product-info .features-list li {
    margin-bottom: 0.25rem; /* space-y-1 */
}
.product-info .specs-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem; /* text-sm */
    color: #475569; /* text-slate-600 */
    margin-bottom: 1.5rem; /* mb-6 */
    border-collapse: collapse; /* Ensures borders are clean */
}
.product-info .specs-table th, .product-info .specs-table td {
    padding: 0.5rem; /* py-2 */
    border-bottom: 1px solid #e2e8f0; /* border-slate-200 */
}
.product-info .specs-table th {
    font-weight: 600; /* font-medium */
    color: #334155; /* text-slate-700 */
    width: 30%; /* Adjust as needed */
}
.product-info .action-buttons .btn {
    margin-right: 0.5rem; /* md:ml-4 */
    margin-bottom: 0.5rem; /* For stacking on mobile */
}
.product-info .action-buttons .btn i {
    margin-right: 0.5rem; /* mr-2 */
}

/* Case Detail Page (Generic) */
.case-detail-header {
    text-align: center;
    margin-bottom: 2rem; /* mb-8 */
}
.case-detail-header .case-title {
    font-size: 2.25rem; /* text-3xl md:text-4xl */
    font-weight: 700; /* font-bold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 0.5rem; /* mb-2 */
}
.case-detail-header .case-meta {
    font-size: 0.875rem; /* text-sm */
    color: #64748b; /* text-slate-500 */
    margin-bottom: 1rem; /* mb-4 */
}
.case-detail-header .case-meta span {
    margin-right: 1rem; /* mr-4 */
}
.case-detail-image-main {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.75rem; /* rounded-xl */
    margin-bottom: 2rem; /* mb-8 */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* shadow-lg */
}
.case-detail-content .content-section {
    margin-bottom: 2rem; /* mb-8 */
}
.case-detail-content .content-section h2 { /* For subtitles like "项目背景", "解决方案" */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 1rem; /* mb-4 */
    padding-bottom: 0.5rem; /* pb-2 */
    border-bottom: 2px solid #e2e8f0; /* border-slate-200 */
}
.case-detail-content .prose { /* For general text content */
    color: #334155; /* text-slate-700 */
    line-height: 1.7;
    max-width: none;
}
.case-detail-content .prose p {
    margin-bottom: 1em;
}
.case-detail-content .prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1em;
}
.case-detail-tags {
    margin-top: 1.5rem; /* mt-6 */
    margin-bottom: 2rem; /* mb-8 */
}
.case-detail-tags .tag {
    display: inline-block;
    background-color: #eef2ff; /* bg-indigo-50 */
    color: #4f46e5; /* text-indigo-600 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 500; /* font-medium */
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border-radius: 9999px; /* rounded-full */
    margin-right: 0.5rem; /* mr-2 */
    margin-bottom: 0.5rem; /* mb-2 */
}
.case-detail-gallery .gallery-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 1rem; /* mb-4 */
}
.case-detail-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; /* gap-4 */
}
.case-detail-gallery .gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Customization Process Steps (Homepage & Customization Page) */
.customization-steps-grid {
    display: grid;
    gap: 1.5rem; /* gap-6 */
}
.step-card {
    background-color: #ffffff; /* bg-white */
    padding: 1.5rem; /* p-6 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.step-card .step-icon {
    font-size: 2.5rem; /* text-4xl */
    color: #2563eb; /* text-blue-600 */
    margin-bottom: 1rem; /* mb-4 */
    display: inline-flex; /* Use flex for centering */
    justify-content: center;
    align-items: center;
    /* The following properties for the circular background have been removed: */
    /* 
    width: 4.5rem;
    height: 4.5rem;
    background-color: #eff6ff;
    border-radius: 9999px;
    */
}
.step-card .step-number {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb; /* text-blue-600 */
    margin-bottom: 0.5rem;
}
.step-card h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 0.5rem; /* mb-2 */
}
.step-card p {
    font-size: 0.9rem;
    color: #475569; /* text-slate-600 */
    line-height: 1.5;
}

/* FAQ Accordion (Customization Page) */
.faq-item {
    background-color: #ffffff; /* bg-white */
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06); /* shadow */
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 1rem; /* space-y-4 */
}
.faq-item summary {
    cursor: pointer;
    padding: 1rem; /* p-4 */
    font-weight: 500; /* font-medium */
    color: #1e293b; /* text-slate-800 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Remove default marker */
}
.faq-item summary::-webkit-details-marker { display: none; } /* Hide default arrow in Chrome/Safari */
.faq-item summary:hover {
    background-color: #f9fafb; /* bg-gray-50 */
}
.faq-item summary::after { /* Custom arrow */
    content: '+';
    font-size: 1.5em;
    color: #2563EB; /* text-blue-600 */
    transition: transform 0.2s ease-out;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item div.faq-content { /* Content of the details */
    padding: 0 1rem 1rem 1rem; /* px-4 pb-4 */
    color: #475569; /* text-slate-600 */
    line-height: 1.6;
    border-top: 1px solid #e5e7eb; /* border-gray-200 */
    margin-top: 0.5rem; /* Add some space between summary and content */
}

/* Timeline (About Page) */
.timeline {
    position: relative;
    max-width: 1000px; /* Adjusted for better responsiveness */
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #cbd5e1; /* slate-300 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}
.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-container.left { left: 0; }
.timeline-container.right { left: 50%; }
.timeline-container::after { /* Circles on the timeline */
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid #2563EB; /* blue-600 */
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-container.right::after { left: -13px; }
.timeline-content {
    padding: 1.25rem 1.5rem; /* p-5 p-6 */
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.timeline-content h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #2563eb; /* text-blue-600 */
    margin-bottom: 0.25rem; /* mb-1 */
}
.timeline-content p {
    font-size: 0.875rem; /* text-sm */
    color: #475569; /* text-slate-600 */
    line-height: 1.6; /* 改善行高 */
}

/* Contact Form (Placeholder Styling) */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto; /* mt-8 */
    background-color: #ffffff; /* bg-white */
    padding: 2rem; /* p-8 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
}
.contact-form .form-group {
    margin-bottom: 1.5rem; /* mb-6 */
}
.contact-form label {
    display: block;
    font-weight: 500; /* font-medium */
    color: #334155; /* text-slate-700 */
    margin-bottom: 0.5rem; /* mb-2 */
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem; /* p-3 */
    border: 1px solid #cbd5e1; /* border-slate-300 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 1rem;
    color: #334155; /* text-slate-700 */
    box-sizing: border-box; /* Important for width 100% */
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb; /* border-blue-600 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); /* ring-blue-500/50 */
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
}

/* Contact Info Box Alignment Helper */
/*
    To use this, update your HTML:
    1. Wrap the contact items in a div: <div class="contact-info-box">...</div>
    2. Change each <p class="flex items-start"> to <div class="contact-item">
    3. Remove the `mt-1` and `mr-3` classes from the <i> icon tag.
    Example:
    <div class="contact-item">
        <i class="fas fa-phone fa-fw text-blue-600 text-lg"></i>
        <span><strong>电话 / TEL:</strong> <a href="..." class="hover:underline">+86 ...</a></span>
    </div>
*/
.contact-info-box .contact-item {
    display: flex;
    align-items: center; /* Vertically center icon and text */
    gap: 0.75rem; /* Space between icon and text */
    margin-bottom: 1rem;
}
.contact-info-box .contact-item i {
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Feature Card Layout (used in about.html) */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Quality Checklist Layout (used in about.html) */
.quality-checklist li {
    gap: 0.5rem; /* Add space between check icon and text */
}

/* Responsive Adjustments */
@media (min-width: 768px) { /* md breakpoint */
    .main-nav { display: flex; align-items: center; gap: 0.5rem; /* space-x-2 or space-x-4 */ }
    .mobile-menu-button { display: none; }
    .mobile-menu { display: none !important; } /* Ensure it's hidden on desktop */

    .page-header { padding: 5rem 0; /* py-20 */ }
    .page-header h1 { font-size: 3rem; /* text-5xl */ }
    .page-header p { font-size: 1.25rem; /* text-xl */ }

    .section { padding: 4rem 0; /* py-16 md:py-24 */ }
    .section-title { font-size: 2.25rem; /* text-4xl */ }
    .section-subtitle { font-size: 1.125rem; /* text-xl */ }

    .hero-carousel { height: 85vh; }
    .hero-carousel .hero-gradient h1 { font-size: 3.75rem; /* text-6xl */ }
    .hero-carousel .hero-gradient p { font-size: 1.5rem; /* text-2xl */ }

    .grid-cols-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .product-detail-card { flex-direction: row; }
    .product-detail-card.reverse { flex-direction: row-reverse; }
    .product-detail-card .product-image-wrapper { width: 40%; /* md:w-2/5 */ }
    .product-detail-card .product-detail-content { width: 60%; /* md:w-3/5 */ }

    .product-gallery-main { max-height: 500px; }

    .customization-steps-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    /* If you want exactly 3 columns on medium screens for customization steps: */
    /* .customization-steps-grid.md-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } */

    .contact-form .btn { width: auto; }
}

@media (max-width: 767px) { /* Mobile specific adjustments */
    .site-header { padding: 0.75rem 0; }
    .section { padding: 1.5rem 0; /* tighter than default 3rem */ }
    .section-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .grid { gap: 1rem; }
    .card-content { padding: 1rem; }
    .breadcrumb { padding: 0.5rem 0; }
    .site-footer { padding: 2rem 0; }

    /* Hero tighten */
    .hero-carousel { height: 52vh; }
    .hero-carousel .hero-gradient { padding: 1rem; }
    .hero-carousel .hero-gradient h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
    .hero-carousel .hero-gradient p { font-size: 1rem; margin-bottom: 1rem; }

    /* Navigation (mobile menu already open as overlay) */
    .mobile-menu a { padding: 0.65rem 1rem; }

    /* Buttons */
    .btn-lg { padding: 0.75rem 1.25rem; font-size: 1rem; }

    /* Product detail page */
    .product-detail-content { padding: 1.25rem; }
    .product-info h1 { font-size: 1.75rem; }
    .product-gallery-thumbnails { gap: 0.4rem; }

    /* Cases */
    .case-detail-image-main { margin-bottom: 1.25rem; }
    .case-detail-header .case-title { font-size: 1.75rem; }

    /* Contact form */
    .contact-form { padding: 1.25rem; }

    .product-gallery-thumbnails {
        justify-content: flex-start; /* Align thumbnails to start on mobile */
    }
    .product-gallery-thumbnail {
        width: clamp(64px, 18vw, 88px);
        height: clamp(64px, 18vw, 88px);
    }
    
    /* Timeline on mobile - 改善移动端时间轴 */
    .timeline::after { 
        left: 1.5rem; /* 使用rem单位 */
        width: 4px; /* 减细线条 */
    }
    .timeline-container {
        width: 100%;
        padding-left: 3.5rem; /* 使用rem单位 */
        padding-right: 1rem;
        margin-bottom: 1.5rem; /* 增加容器间距 */
    }
    .timeline-container.right { left: 0%; }
    .timeline-container.left::after, .timeline-container.right::after {
        left: calc(1.5rem - 10px); /* 基于线条位置计算 */
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    
    /* 移动端时间轴内容优化 */
    .timeline-content {
        padding: 1rem 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* Ultra small screen: keep minimum touch size for product button group */
@media (max-width: 400px) {
    .product-button-group .btn { min-height: 36px; }
}

/* 新增：中等屏幕优化 (480px-768px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        width: 92%;
        max-width: 480px;
    }
    
    .product-button-group .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-height: 42px;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
    }
    
    /* 中等屏幕下的卡片优化 */
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
}

/* Font Awesome Icons - Ensure it's loaded in HTML */
/* Example: <i class="fas fa-icon-name"></i> */

