/*
Theme Name: HENRYSINTAI 生物科技
Version: 3.3
Description: 专业的生物医药企业官网 - 简洁科技版
*/

:root {
    --primary: #003366; /* 深海军蓝 */
    --accent: #0056b3;  /* 亮蓝 */
    --bg-gray: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
}

* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'PingFang SC', sans-serif;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
    background-color: #fff;
}

/* --- Header & Navigation (修复乱码的关键) --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.site-logo { font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
.main-navigation a:hover { color: var(--accent); }

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('https://images.unsplash.com/photo-1579152276508-24610c18146c?auto=format&fit=crop&q=80&w=1200') center/cover;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
}
.hero-section h1 { font-size: 42px; margin-bottom: 15px; letter-spacing: 1px; }
.hero-section p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- Category Cards --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 0;
}
.cat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 35px 20px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 20px rgba(0, 180, 216, 0.1);
}
.cat-card h3 { color: var(--primary); margin: 0; font-size: 18px; }

/* --- News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.news-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}
.news-item h4 a { color: var(--primary); text-decoration: none; font-size: 18px; }

/* --- Footer (保持简洁布局) --- */
.site-footer { background: #1a202c; color: #cbd5e0; padding: 60px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; gap: 80px; padding: 0 20px; }
.footer-left { flex: 1.2; }
.footer-right { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.site-footer a { color: #a0aec0; text-decoration: none; font-size: 14px; }
.footer-bottom { border-top: 1px solid #2d3748; margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12px; }

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .category-grid, .news-grid, .footer-container { grid-template-columns: 1fr; display: block; }
}

/* ===== Hero Carousel Styles ===== */
.hero-carousel {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
}
.carousel-slide {
    display: none;
    animation: fadeIn 0.8s ease;
}
.carousel-slide.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    gap: 60px;
}
.slide-text {
    flex: 1;
}
.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #22d3ee;
    margin-bottom: 15px;
}
.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.slide-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-btn {
    background: #22d3ee;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}
.hero-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}
.slide-image {
    flex: 0 0 45%;
    max-width: 500px;
}
.slide-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}
.indicator.active {
    background: #22d3ee;
    width: 35px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-content { flex-direction: column; padding: 40px 20px; }
    .hero-title { font-size: 28px; }
    .slide-image { flex: none; width: 100%; }
}

/* Simple Carousel Styles */
.hero-banner { position: relative; height: 500px; overflow: hidden; }
.carousel-slide { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background-size: cover; 
    background-position: center;
    opacity: 0; 
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide.active { opacity: 1; }
.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,51,102,0.75);
}
.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}
.hero-content h1 { font-size: 42px; margin-bottom: 20px; }
.hero-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.hero-btn { 
    background: #22d3ee; 
    color: #003366; 
    padding: 14px 32px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold;
    display: inline-block;
}
.carousel-dots { 
    position: absolute; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 12px; 
    z-index: 3;
}
.dot { 
    width: 12px; height: 12px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.4); 
    cursor: pointer; 
    transition: all 0.3s;
}
.dot.active { background: #22d3ee; width: 30px; border-radius: 6px; }

/* Logo Integration Styles */
.site-logo .logo-icon {
    position: relative;
    background-image: url('images/company-logo.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.site-logo .logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/company-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
