/**
 * Template2 - 现代化样式
 * 基于Bootstrap 5的自定义样式
 * 与Template1保持一致，但采用不同的配色方案
 */

/* 全局样式 - Template2配色方案（体育主题优化） */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题优化 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Hero区域样式 - 优化视觉效果 */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    padding: 5rem 0 6rem;
    z-index: 1;
    transform: none !important;
}

/* 如存在内联 transform（例如第三方脚本动态添加），强制清除 */
.hero-section[style*="transform"] { transform: none !important; }

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-50 {
    min-height: 50vh;
}

/* 特色卡片样式 */
.feature-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* 服务卡片样式 */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card .card-body {
    position: relative;
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    color: white;
    font-size: 2rem;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.service-card .service-title {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card .service-description {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card .service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-card .service-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.service-card .service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(3px);
}

/* 统计数字样式 */
.stat-item {
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 按钮样式 - 增强交互效果 */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer .social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .service-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .service-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 15px;
        margin-bottom: 1rem;
    }
    
    .service-card .service-title {
        font-size: 1.2rem;
    }
    
    .service-card .service-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card .service-link {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 6px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* 表单样式 */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.rounded-3 {
    border-radius: 15px !important;
}

/* 文本样式 */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 间距工具类 */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* 背景工具类 */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* 阴影工具类 */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Layout fixes ===== */
.main-header { position: relative; z-index: 2; }

.page-header { min-height: 30vh; padding: 3rem 0; }

@media (max-width: 576px) { .container { padding-left: 1rem; padding-right: 1rem; } }

.nav-link { line-height: 1.2; padding-top: .75rem; padding-bottom: .75rem; }

/* ===== Header structure ===== */
.header-top { background:#f8f9fa; font-size:14px; padding:6px 0; position: relative; z-index: 2; }
.header-top .contact-info span { margin-right:16px; color:#6c757d; }
.header-top .social-links a { color:#6c757d; margin-left:10px; }

.header-main { background:#fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); position: relative; z-index: 2; }
.header-content { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; }
.logo img { display:block; height:auto; }

.main-nav .nav-list { list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:24px; }
.main-nav .nav-link { color:#212529 !important; text-decoration:none; }
.main-nav .nav-link:hover { color: var(--primary-color) !important; }
.main-nav .nav-link.active { color: var(--primary-color) !important; }

.header-actions { display:flex; align-items:center; gap:12px; }
.mobile-menu-toggle { display:none; background:none; border:0; width:32px; height:32px; flex-direction:column; justify-content:center; align-items:center; gap:4px; cursor:pointer; transition:all 0.3s ease; }
.mobile-menu-toggle span { display:block; width:22px; height:2px; background:#212529; transition:all 0.3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity:0; }
.mobile-menu-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(7px, -6px); }

/* Mobile Menu Styles */
.mobile-menu { position:fixed; top:0; left:0; width:100%; height:100%; z-index:9999; display:none; }
.mobile-menu-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); }
.mobile-menu-content { position:absolute; top:0; right:0; width:300px; height:100%; background:#fff; box-shadow:-2px 0 10px rgba(0,0,0,0.1); transform:translateX(100%); transition:transform 0.3s ease; }
.mobile-menu.active .mobile-menu-content { transform:translateX(0); }
.mobile-menu-header { display:flex; justify-content:space-between; align-items:center; padding:20px; border-bottom:1px solid #eee; }
.mobile-menu-header h5 { margin:0; color:#333; }
.mobile-menu-close { background:none; border:0; font-size:20px; color:#666; cursor:pointer; }
.mobile-nav { padding:20px 0; }
.mobile-nav-list { list-style:none; margin:0; padding:0; }
.mobile-nav-list li { border-bottom:1px solid #f0f0f0; }
.mobile-nav-link { display:block; padding:15px 20px; color:#333; text-decoration:none; transition:all 0.3s ease; }
.mobile-nav-link:hover { background:#f8f9fa; color:var(--primary-color); }
.mobile-menu-footer { padding:20px; border-top:1px solid #eee; }

@media (max-width: 992px) {
  .main-nav { display:none; }
  .mobile-menu-toggle { display:inline-flex; }
}

/* ===== Hero Slider ===== */
.hero-slider { position: relative; height: clamp(520px, 80vh, 820px); min-height: 520px; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.hero-bg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); z-index: 1; }
.hero-content { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; }
.hero-title { font-size: 3.5rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Slider Controls */
.hero-controls { position: absolute; top: 50%; transform: translateY(-50%); z-index: 15; width: 100%; display: flex; justify-content: space-between; padding: 0 2rem; pointer-events: none; }
.hero-prev, .hero-next { background: rgba(0,0,0,0.25); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; pointer-events: all; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.2); }

/* Hero Indicators */
.hero-indicators { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; gap: 0.5rem; }

.services-section, .about-section, .testimonials-section, .cta-section { position: relative; z-index: 20; }
.faq-section { position: relative; z-index: 20; }

.hero-section .min-vh-100 { min-height: 100% !important; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; border: none; }
.hero-dot.active { background: #fff; }
.hero-dot:hover { background: rgba(255,255,255,0.8); }

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-prev, .hero-next { width: 40px; height: 40px; }
  .hero-controls { padding: 0 1rem; }
}

/* ===== Footer structure ===== */
.main-footer { color:#fff; }
.footer-top { padding: 40px 0; }
.footer-content { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:24px; }
.footer-title { color:#fff; font-size:18px; margin-bottom:16px; }
.footer-description { color:#dbe1ea; margin-top:12px; }
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color:#dbe1ea; text-decoration:none; }
.footer-links a:hover { color:#fff; }
.contact-info .contact-item { display:flex; align-items:center; gap:8px; margin:6px 0; color:#dbe1ea; }

.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom-content { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* ===== Works/Cases Section ===== */
.works-section {
    background: #f8f9fa;
}

.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.work-image {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: #e9ecef;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.15);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.work-link:hover {
    transform: scale(1.1);
}

.work-link i {
    font-size: 2rem;
}

.work-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
    line-height: 1.4;
}

.work-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.6;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #adb5bd;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.work-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.work-meta i {
    font-size: 0.85rem;
}

.work-category {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== News/Articles Section ===== */
.news-section {
    background: #f8f9fa;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e9ecef;
    max-width: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.news-badge .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
}

.news-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #adb5bd;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-meta i {
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.news-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.6;
}

.news-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: #1d4ed8;
    gap: 0.7rem;
}

.news-read-more i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .work-image,
    .news-image {
        height: 200px;
    }
    
    .work-title,
    .news-title {
        font-size: 1.2rem;
    }
    
    .work-description,
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .work-content,
    .news-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .work-image,
    .news-image {
        height: 180px;
    }
}

/* ===== Partners/Sponsors Section ===== */
.partners-section {
    background: #f8f9fa;
}

.partner-logo-wrapper {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo-wrapper:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badge {
    text-align: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-width: 180px;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.trust-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.trust-label {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive Partners */
@media (max-width: 992px) {
    .trust-badges {
        gap: 1.5rem;
    }
    
    .trust-badge {
        min-width: 150px;
        padding: 1.25rem 1.5rem;
    }
    
    .trust-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .partner-logo-wrapper {
        height: 120px;
        padding: 1.5rem 1rem;
    }
    
    .partner-logo {
        max-height: 60px;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .trust-badge {
        min-width: 140px;
        padding: 1rem;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
    
    .trust-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .partner-logo-wrapper {
        height: 100px;
        padding: 1rem 0.75rem;
    }
    
    .partner-logo {
        max-height: 50px;
    }
    
    .trust-badges {
        gap: 0.75rem;
    }
    
    .trust-badge {
        min-width: 120px;
        padding: 0.75rem;
    }
}

/* ===== 侧边栏样式 ===== */
.sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.4);
}

.sidebar-widget {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-widget:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.sidebar-widget h4 {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
    color: #0f172a;
    padding: 1.5rem 1.75rem 1rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
}

.sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 1px;
}

.sidebar-widget .widget-content {
    padding: 1.5rem 1.75rem;
}

/* 最新文章样式 */
.latest-item, .related-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.latest-item:last-child, .related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-item:hover, .related-item:hover {
    background: #f8fafc;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.5rem;
}

.latest-image, .related-image {
    flex-shrink: 0;
    margin-right: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latest-image img, .related-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-image img {
    width: 80px;
    height: 60px;
}

.latest-item:hover .latest-image img,
.related-item:hover .related-image img {
    transform: scale(1.1);
}

.latest-content, .related-content {
    flex: 1;
    min-width: 0;
}

.latest-content h6, .related-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.latest-content a, .related-content a {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.3s ease;
    display: block;
}

.latest-content a:hover, .related-content a:hover {
    color: #2563eb;
}

.latest-content small, .related-content small {
    color: #64748b;
    font-size: 0.8rem;
}

/* 侧边栏搜索框 */
.sidebar-search {
    position: relative;
    margin-bottom: 1rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.sidebar-search input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sidebar-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

/* 侧边栏CTA卡片 */
.sidebar-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.sidebar-cta .widget-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
}

.sidebar-cta h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.sidebar-cta .btn {
    background: white;
    color: #2563eb;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-cta .btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.tag-item:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* 侧边栏响应式 */
@media (max-width: 992px) {
    .sidebar {
        position: static;
        max-height: none;
        margin-top: 3rem;
    }
    
    .sidebar-widget h4 {
        padding: 1.25rem 1.5rem 0.75rem;
    }
    
    .sidebar-widget h4::after {
        left: 1.5rem;
        right: 1.5rem;
    }
    
    .sidebar-widget .widget-content {
        padding: 1.25rem 1.5rem;
    }
    
    .sidebar-cta .widget-content {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget h4 {
        padding: 1rem 1.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .sidebar-widget h4::after {
        left: 1.25rem;
        right: 1.25rem;
    }
    
    .sidebar-widget .widget-content {
        padding: 1rem 1.25rem;
    }
    
    .latest-image img, .related-image img {
        width: 50px;
        height: 50px;
    }
    
    .related-image img {
        width: 65px;
        height: 50px;
    }
    
    .latest-content h6, .related-content h6 {
        font-size: 0.85rem;
    }
}

/* ===== 新闻图片溢出修复 ===== */
.news-card .row {
    margin: 0;
}

.news-card .col-md-4 {
    padding: 0;
    overflow: hidden;
    max-width: 100%;
}

.news-card .col-md-8 {
    padding: 0;
    overflow: hidden;
}

.news-card .news-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.news-card .news-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ===== Template2 特有样式：横向大卡片布局 ===== */
.work-card-horizontal {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.work-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.work-image-horizontal {
    position: relative;
    overflow: hidden;
}

.work-image-horizontal img {
    transition: transform 0.6s ease;
}

.work-card-horizontal:hover .work-image-horizontal img {
    transform: scale(1.1);
}

.work-content-horizontal {
    background: white;
}

.work-title-horizontal {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.work-description-horizontal {
    color: #64748b;
    line-height: 1.7;
}

.work-meta-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 响应式：移动端横向卡片改为纵向 */
@media (max-width: 768px) {
    .work-card-horizontal {
        flex-direction: column !important;
    }
    
    .work-image-horizontal {
        min-height: 250px;
    }
    
    .work-title-horizontal {
        font-size: 1.5rem;
    }
    
    .work-description-horizontal {
        font-size: 1rem;
    }
}

/* ===== Template2 特有样式：小标题标签 ===== */
.letter-spacing {
    letter-spacing: 2px;
}

/* ===== Template2 特有样式：About部分圆形图标 ===== */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== Template2 CTA样式调整（覆盖style-enhancements.css） ===== */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%) !important;
    border-top: 3px solid var(--primary-color);
    color: #0f172a !important;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
}

