/* ========================================
   微孔建站 - 全局样式表
   办公潮流风 | 纯白 + 浅蓝 + 浅紫
   ======================================== */

/* CSS Reset & 基础变量 */
:root {
    --color-white: #ffffff;
    --color-light-blue: #e8f4fc;
    --color-medium-blue: #b3d9f5;
    --color-deep-blue: #4a90c7;
    --color-light-purple: #f3e8fc;
    --color-medium-purple: #d9b3f5;
    --color-deep-purple: #9b59b6;
    --color-text-primary: #2c3e50;
    --color-text-secondary: #5a6c7d;
    --color-text-light: #8895a1;
    --color-border: #e1e8ed;
    --shadow-soft: 0 4px 20px rgba(74, 144, 199, 0.08);
    --shadow-medium: 0 8px 30px rgba(74, 144, 199, 0.12);
    --shadow-strong: 0 12px 40px rgba(155, 89, 182, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-blue) 50%, var(--color-light-purple) 100%);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   顶部导航栏 - 悬浮固定式
   ======================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    padding: 15px 0;
}

.header-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-deep-blue);
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-deep-blue), var(--color-deep-purple));
    transform: translateX(-50%);
    transition: var(--transition-smooth);
    border-radius: 3px 3px 0 0;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-deep-blue);
    background: var(--color-light-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-deep-blue);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ========================================
   竖向悬浮时序布局 - 核心骨架
   ======================================== */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

.timeline-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-deep-blue), var(--color-deep-purple));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 45%;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
    padding-left: 60px;
}

.timeline-item:nth-child(even) {
    margin-right: auto;
    padding-right: 60px;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--color-white);
    border: 4px solid var(--color-deep-blue);
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -12px;
}

.timeline-item:hover .timeline-dot {
    background: var(--color-deep-purple);
    border-color: var(--color-deep-purple);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-deep-blue), var(--color-deep-purple));
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.timeline-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.timeline-desc {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.timeline-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
}

/* ========================================
   首页 Banner - 全屏渐变动画
   ======================================== */
.hero-banner {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-light-purple) 100%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--color-deep-blue) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--color-deep-purple) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.btn {
    padding: 15px 40px;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-deep-purple));
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-deep-blue);
    border: 2px solid var(--color-deep-blue);
}

.btn-secondary:hover {
    background: var(--color-light-blue);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   核心优势板块 - 卡片悬浮式
   ======================================== */
.features-section {
    padding: 100px 40px;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, var(--color-light-blue), var(--color-light-purple));
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    top: -30%;
    left: -30%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.feature-icon img {
    width: 45px;
    height: 45px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ========================================
   快速入口 - 圆形悬浮按钮
   ======================================== */
.quick-access {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--color-light-purple), var(--color-light-blue));
}

.access-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.access-item:hover {
    transform: translateY(-8px);
}

.access-circle {
    width: 100px;
    height: 100px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.access-item:hover .access-circle {
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-deep-purple));
    box-shadow: var(--shadow-strong);
}

.access-circle img {
    width: 45px;
    height: 45px;
}

.access-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 16px;
}

/* ========================================
   资讯列表 - 横向卡片流
   ======================================== */
.news-section {
    padding: 100px 40px;
    background: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.news-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--color-deep-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-link::after {
    content: '→';
    transition: var(--transition-smooth);
}

.news-link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   页脚 - 统一规范式
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-deep-purple));
    color: var(--color-white);
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--color-white);
    padding-left: 8px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    padding: 120px 40px 60px;
    background: linear-gradient(135deg, var(--color-light-blue), var(--color-light-purple));
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.content-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-deep-blue);
}

.content-card p {
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ========================================
   资讯详情页样式
   ======================================== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.article-body {
    color: var(--color-text-secondary);
    line-height: 2;
    font-size: 17px;
}

.article-body img {
    max-width: 100%;
    border-radius: var(--border-radius-md);
    margin: 20px 0;
}

.related-news {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--color-border);
}

.related-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 25px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 18px;
        right: auto;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-section {
        padding: 40px 20px;
    }
    
    .features-section,
    .news-section,
    .quick-access {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .access-grid {
        gap: 25px;
    }
}

/* ========================================
   动画效果增强
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-smooth);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   加载状态优化
   ======================================== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
