@charset "UTF-8";

/* * Petroleum & Chemicals Corporate Theme 
 * Style: Modern Industrial / Professional / Trustworthy 
 * Fixed by Gemini
 */

:root {
    /* --- 企业配色 (石油化工行业风格) --- */
    --c-primary: #0a2a5a;      /* 企业主色：深蓝 */
    --c-primary-dark: #071e3d; /* 悬停深色 */
    --c-secondary: #1a5d3b;    /* 辅助色：深绿 */
    --c-accent: #d4af37;       /* 强调色：金色 */

    /* --- 基础背景与文字 --- */
    --bg-body: #f5f7fa;
    --bg-white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #4a5d70;
    --text-lighter: #7f94a9;
    --border-color: #e0e6ed;

    /* --- 布局参数 --- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --header-height: 80px;
    --max-width: 1200px;
    --shadow-card: 0 6px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
}

/* === 全局重置 === */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { 
    background-color: var(--bg-body); 
    color: var(--text-light); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    font-size: 16px; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: color 0.25s; }
ul, li { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* === 容器 === */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 30px; }

/* === 头部导航 === */
.site-header { 
    background: var(--bg-white); 
    height: var(--header-height); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.header-inner { 
    height: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}
.logo a { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--c-primary); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    white-space: nowrap; /* 防止Logo换行 */
}
.logo-text { color: var(--c-primary); }

.desktop-nav { display: flex; align-items: center; gap: 25px; }
.desktop-nav a { 
    font-size: 1.05rem; 
    font-weight: 500; 
    color: var(--text-main); 
    padding: 10px 15px; 
    border-radius: 8px; 
    transition: all 0.3s; 
    position: relative; 
    white-space: nowrap; /* 防止导航项换行 */
}
.desktop-nav a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--c-accent); 
    transition: width 0.3s; 
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--c-primary); }
.desktop-nav a.active::after, .desktop-nav a:hover::after { width: 100%; }

/* 移动端菜单开关 */
.mobile-menu-trigger { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--text-main); 
}
.mobile-menu-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255,255,255,0.98); 
    z-index: 9999; 
    flex-direction: column; 
    padding: 40px; 
}
.mobile-menu-header { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    margin-bottom: 40px; 
}
.logo-mobile { font-weight: bold; font-size: 1.6rem; color: var(--c-primary); }
.close-btn { font-size: 2.2rem; cursor: pointer; color: var(--text-main); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-nav-links a { font-size: 1.3rem; color: var(--text-main); font-weight: 500; padding: 12px 0; }

/* === Hero Section (Banner) === */
.hero-section { 
    background: linear-gradient(135deg, #0a2a5a 0%, #071e3d 100%); 
    color: #fff; 
    padding: 140px 0 100px; 
    text-align: center; 
    margin-bottom: 80px; 
    position: relative; 
    overflow: hidden; 
}
/* SVG 背景修复: 使用 URL 编码 */
.hero-section::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,0 L100,0 L100,100 L0,100 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%; 
    opacity: 0.3; 
    z-index: 0; 
}
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 30px; 
    font-weight: 700; 
    position: relative; 
    z-index: 1; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}
.hero-subtitle { 
    font-size: 1.3rem; 
    margin-bottom: 50px; 
    opacity: 0.9; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    position: relative; 
    z-index: 1; 
}
.hero-buttons { display: flex; justify-content: center; gap: 30px; position: relative; z-index: 1; }
.btn { 
    display: inline-block; 
    padding: 14px 40px; 
    font-size: 1.1rem; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.35s; 
}
.primary-btn { 
    background: var(--c-accent); 
    color: var(--bg-white); 
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); 
}
.primary-btn:hover { 
    background: #c09e2c; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); 
}
.secondary-btn { 
    background: transparent; 
    border: 2px solid var(--bg-white); 
    color: var(--bg-white); 
}
.secondary-btn:hover { 
    border-color: var(--c-accent); 
    background: rgba(255, 255, 255, 0.1); 
}

/* === Info Section (修正标题下划线) === */
.info-section { margin-bottom: 80px; }
.center-header { text-align: center; margin-bottom: 60px; }
.center-header h2 { 
    font-size: 2.2rem; 
    color: var(--text-main); 
    margin-bottom: 15px; 
    position: relative; 
    display: inline-block; /* 修复定位基准 */
    padding-bottom: 15px;  /* 增加底部空间防止重叠 */
}
.center-header h2::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; /* 修改为0，紧贴padding底部 */
    left: 50%; 
    transform: translateX(-50%); 
    width: 80px; 
    height: 4px; 
    background: var(--c-accent); 
    border-radius: 2px; 
}
.center-header p { 
    color: var(--text-lighter); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 1rem; 
    font-weight: 600; 
    margin-bottom: 20px; 
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.info-card { 
    background: var(--bg-white); 
    padding: 50px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-card); 
    transition: transform 0.4s, box-shadow 0.4s; 
    border: 1px solid var(--border-color); 
    position: relative; 
    overflow: hidden; 
}
.info-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 4px; height: 100%; 
    background: var(--c-accent); 
}
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.info-card .icon { font-size: 3.5rem; margin-bottom: 25px; color: var(--c-accent); }
.info-card h3 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 20px; }
.info-card p { color: var(--text-light); margin-bottom: 25px; font-size: 1.05rem; line-height: 1.6; }
.read-more { 
    color: var(--c-accent); 
    font-weight: 600; 
    font-size: 1.05rem; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.2s; 
}
.read-more:hover { color: var(--c-primary); transform: translateX(5px); }

/* === Main Content Area === */
.main-content-area { min-height: 450px; margin-bottom: 90px; }
.section-header { margin-bottom: 40px; border-left: 6px solid var(--c-accent); padding-left: 20px; }
.section-header h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 10px; }
.cat-desc { margin-top: 5px; color: var(--text-light); font-size: 0.95rem; font-style: italic; }

/* === Post Grid === */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.grid-card { 
    background: var(--bg-white); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    box-shadow: var(--shadow-card); 
    transition: all 0.4s; 
    border: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}
.grid-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.card-cover-wrapper { 
    display: block; width: 100%; height: 220px; 
    background: #f0f4f8; overflow: hidden; position: relative; 
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.grid-card:hover .card-img { transform: scale(1.07); }
.card-img-placeholder { 
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; 
    background: linear-gradient(135deg, #e6eef5 0%, #d9e3eb 100%); 
    color: var(--c-secondary); font-weight: 700; font-size: 1.4rem; 
}

.card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-lighter); margin-bottom: 15px; }
.cat-tag { color: var(--c-secondary); font-weight: 500; }
.grid-card h3 { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.4; color: var(--text-main); }
.grid-card h3 a:hover { color: var(--c-accent); }
.excerpt { font-size: 0.95rem; color: var(--text-light); flex-grow: 1; margin-bottom: 20px; line-height: 1.6; }
.card-tags { margin-top: auto; padding-top: 15px; border-top: 1px solid #e6eef5; }
.tag-badge { 
    font-size: 0.8rem; color: var(--c-secondary); margin-right: 8px; 
    background: rgba(26, 93, 59, 0.1); padding: 4px 12px; border-radius: 20px; 
    transition: all 0.2s; 
}
.tag-badge:hover { background: var(--c-secondary); color: var(--bg-white); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 15px; margin-top: 60px; }
.page-btn { 
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; 
    border: 2px solid var(--border-color); border-radius: 10px; 
    color: var(--text-main); background: var(--bg-white); 
    font-weight: 600; font-size: 1.1rem; transition: all 0.3s; 
}
.page-btn:hover { background: var(--c-accent); color: var(--bg-white); border-color: var(--c-accent); }
.page-current { 
    display: flex; align-items: center; padding: 0 15px; 
    font-weight: bold; color: var(--bg-white); 
    background: var(--c-accent); border-radius: 10px; 
}

/* === 文章详情页 === */
.single-post { background: var(--bg-white); padding: 50px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.single-header { border-bottom: 1px solid var(--border-color); padding-bottom: 30px; margin-bottom: 40px; }
.breadcrumb { font-size: 0.95rem; color: var(--text-lighter); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--c-accent); }
.single-header h1 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; line-height: 1.3; }

/* 修复 meta-line 圆点乱码 */
.meta-line { font-size: 0.95rem; color: var(--text-lighter); display: flex; gap: 25px; flex-wrap: wrap; }
.meta-line span { display: flex; align-items: center; gap: 5px; }
.meta-line span::before { content: '\2022'; color: var(--c-accent); margin-right: 5px; }
.meta-line span:first-child::before { content: none; }

.markdown-body { color: var(--text-main); font-size: 1.08rem; line-height: 1.8; }
.markdown-body h2 { 
    font-size: 1.8rem; color: var(--text-main); margin: 2.5em 0 1.5em; 
    border-bottom: 2px solid var(--c-accent); padding-bottom: 10px; 
}
.markdown-body img { max-width: 100%; border-radius: var(--radius-sm); box-shadow: 0 8px 25px rgba(0,0,0,0.1); margin: 25px 0; }
.markdown-body a { color: var(--c-accent); border-bottom: 1px solid rgba(212, 175, 55, 0.3); }
.markdown-body blockquote { 
    border-left: 4px solid var(--c-accent); background: #f8fafc; 
    padding: 20px 25px; color: var(--text-light); margin: 25px 0; 
}

.post-tags-container { margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--border-color); }
.tag-pill { 
    display: inline-block; background: rgba(26, 93, 59, 0.1); 
    padding: 6px 15px; font-size: 0.85rem; color: var(--c-secondary); 
    border-radius: 25px; margin-right: 8px; transition: all 0.2s; 
}
.tag-pill:hover { background: var(--c-secondary); color: var(--bg-white); }
.post-cta { 
    margin-top: 60px; background: rgba(10, 42, 90, 0.05); 
    padding: 40px; text-align: center; border-radius: var(--radius-md); 
    border: 1px solid rgba(10, 42, 90, 0.1); 
}
.small-btn { padding: 12px 35px; background: var(--c-accent); color: var(--bg-white); border-radius: 8px; }

.post-navigation { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--border-color); }
.nav-prev, .nav-next { display: flex; flex-direction: column; max-width: 45%; }
.nav-prev span, .nav-next span { color: var(--text-main); font-weight: 600; }
.nav-prev:hover span, .nav-next:hover span { color: var(--c-accent); }

/* === FAQ & Footer === */
.faq-section { background: var(--bg-white); padding: 80px 0; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 25px 0; }
.faq-question { padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; color: var(--text-main); font-size: 1.1rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s; }
.faq-answer p { padding-bottom: 20px; color: var(--text-light); }
.faq-question.active { color: var(--c-accent); }

.site-footer { background: #0a2a5a; color: #e0e6ed; padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: var(--c-accent); margin-bottom: 25px; font-size: 1.2rem; position: relative; padding-left: 10px; }
.footer-col h4::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--c-accent); }
.footer-col p, .footer-col a { margin-bottom: 15px; font-size: 0.95rem; color: #c5d2e0; display: block; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #1a4a7a; font-size: 0.9rem; color: #a0b5d0; }

/* === 响应式修正 (已修复语法错误) === */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .container { padding: 0 20px; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-trigger { display: block; }
    
    .header-inner { padding: 0 15px; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; padding: 0 20px; }
    
    .info-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    
    .section-header h2 { font-size: 1.8rem; }
    .single-post { padding: 30px; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-section { padding: 120px 0 80px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn { padding: 12px 30px; font-size: 1rem; width: 100%; }
    
    .info-card { padding: 30px 20px; }
    .section-header h2 { font-size: 1.6rem; }
    .card-cover-wrapper { height: 180px; }
    .footer-col h4::before { width: 3px; }
}