/* =========================================
   High-End Corporate Theme - Visual Upgrade
   ========================================= */

/* 1. 引入高级字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --primary-color: #0f172a; /* 深邃蓝黑 */
    --accent-color: #3470ff;  /* 品牌蓝 */
    --accent-dark: #2563eb;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. 全局排版优化 */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .section-title, .banner-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 42px;
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
    width: 100%;
    padding-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* 3. 板块间距加大 */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.dark-theme {
    background-color: var(--primary-color);
    color: #fff;
}

/* 4. 头部优化 */
.main-header {
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 25px 0;
    background: #fff;
}

.main-nav-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu a {
    color: var(--primary-color);
    font-weight: 500;
    border-right: none;
    position: relative;
    padding: 22px 30px;
    font-size: 15px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover, .nav-menu a.active {
    background: transparent;
    color: var(--accent-color);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 40px;
}

/* 5. Banner 区域增强 */
.banner-title {
    font-size: 64px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    font-weight: 700;
    margin-bottom: 30px;
}

.banner-subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-button {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #fff;
    padding: 16px 42px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.banner-button:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Breadcrumb Optimization */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item a svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 16px;
    color: #cbd5e1;
    padding: 0 10px;
    line-height: 1;
}

/* 6. 卡片样式重构 */
.product-card, .case-card, .article-card, .advantage-card, .category-nav-card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.product-card:hover, .case-card:hover, .article-card:hover, .advantage-card:hover, .category-nav-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image, .case-logo, .article-image {
    overflow: hidden;
}

.product-image img, .case-logo img, .article-image img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: auto;
    display: block;
}

.product-card:hover .product-image img,
.case-card:hover .case-logo img,
.article-card:hover .article-image img {
    transform: scale(1.1);
}

/* 7. 关于我们 - 高端错位布局 */
.about-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 4px;
    z-index: 2;
    box-shadow: -30px 30px 0 var(--accent-color);
}

.about-main-img {
    border-radius: 4px;
    width: 100%;
    height: auto;
    display: block;
}

.about-placeholder {
    width: 100%;
    padding-bottom: 75%;
    background: #f3f4f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.section-title-left {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: left;
}

.about-text {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* 8. 统计数据 - 视差滚动 */
.statistics-section {
    background: linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.92)), url('/assets/images/admin_login_menu.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

/* 9. 优势/图标通用 */
.advantage-icon, .category-icon, .step-icon {
    background: #fff;
    color: var(--accent-color);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-md);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.advantage-icon svg, .category-icon svg, .step-icon svg {
    width: 36px;
    height: 36px;
}

.advantage-card {
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.advantage-card:hover .advantage-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 10px 20px rgba(52, 112, 255, 0.3);
}

/* 10. 服务流程 */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    border-top: 1px dashed #cbd5e1;
    z-index: 0;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    background: #fff;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 0 0 5px #f8f9ff;
    transition: var(--transition);
}

.step-icon {
    border-radius: 12px; /* 流程图标为方圆角 */
    border: 2px solid var(--accent-color);
}

.process-step:hover .step-number {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.2);
}

/* 11. 按钮通用 */
.btn-primary {
    background: var(--accent-color);
    border-radius: 4px;
    padding: 12px 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 112, 255, 0.2);
    color: white;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(52, 112, 255, 0.3);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
}

/* 12. Footer 升级 */
.main-footer {
    background: #0f172a;
    padding-top: 100px;
    color: #94a3b8;
}

.main-footer h3, .main-footer h4 {
    color: #fff;
    margin-bottom: 25px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

/* 13. Grid Layouts */
.categories-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-nav-card {
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 首页文章卡片图片样式 */
.articles-grid .article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.articles-grid .article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 8px 8px 0 0;
}

.articles-grid .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.articles-grid .article-card:hover .article-image img {
    transform: scale(1.08);
}

.articles-grid .article-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
}

/* 首页客户案例卡片图片样式 */
.cases-grid .case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cases-grid .case-logo {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px 8px 0 0;
}

.cases-grid .case-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cases-grid .case-card:hover .case-logo img {
    transform: scale(1.08);
}

.cases-grid .case-logo .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
}

/* 14. Badges & New Elements */
.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge-hot { background: #ef4444; }
.badge-new { background: #10b981; }
.badge-recommend { background: var(--accent-color); }

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-link-arrow:hover {
    transform: translateX(5px);
}

.section-footer-center {
    text-align: center;
    margin-top: 50px;
}

.article-info {
    padding: 25px;
}

.article-meta-top {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-category {
    background: #f1f5f9;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-summary {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}

.btn-read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* 15. Product List Layout */
.product-list-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 60px 0;
}

.filter-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}
.sort-select:hover {
    border-color: var(--accent-color);
}

.page-header {
    margin: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: var(--primary-color);
}

/* 16. 响应式适配 */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .banner-title { font-size: 42px; }
    .section-title { font-size: 32px; }
    .section-title-left { text-align: center; font-size: 36px; }
    .about-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { box-shadow: none; margin-bottom: 20px; }
    .about-content-wrapper { padding-left: 0; text-align: center; }
    
    .process-steps::before { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .statistics-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: 1fr; }
    .section-header-flex { flex-direction: column; gap: 20px; text-align: center; }
    
    .section-padding { padding: 60px 0; }
    .product-list-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}
