/* 中建国际智能建造信息网站 - 模块化样式表 v4.0 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #059669;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.navbar-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-title { font-size: 18px; font-weight: 600; }
.navbar-subtitle { font-size: 11px; opacity: 0.8; }

.navbar-menu {
    display: flex;
    gap: 4px;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ========== Hero区域 ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    color: white;
    padding: 140px 2rem 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ========== 主内容区 ========== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ========== 模块区块 ========== */
.module-section {
    margin-bottom: 5rem;
}

.module-header {
    text-align: center;
    margin-bottom: 3rem;
}

.module-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.module-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.module-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 1rem;
}

/* ========== 统计卡片 ========== */
.stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* ========== 卡片 ========== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-body { padding: 1.5rem; }

/* ========== 特色卡片 ========== */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 网格布局 ========== */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== 标签 ========== */
.tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.tag-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.tag-orange { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #9a3412; }

/* ========== 面包屑 ========== */
.breadcrumb {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-top: 70px;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-container a {
    color: var(--primary-color);
}

/* ========== 内容页 ========== */
.content-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========== 可折叠内容 ========== */
.collapsible {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.collapsible-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.collapsible-icon { transition: var(--transition); }
.collapsible-header.active .collapsible-icon { transform: rotate(180deg); }

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.collapsible-content.active {
    max-height: 2000px;
    padding: 1.5rem;
}

/* ========== 高亮框 ========== */
.highlight-box {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.highlight-box.blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid var(--primary-color);
}

.highlight-box.green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid var(--secondary-color);
}

.highlight-box.orange {
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
    border-left: 4px solid var(--accent-color);
}

/* ========== 时间线 ========== */
.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    color: var(--text-light);
}

/* ========== 资源卡片 ========== */
.resource-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.resource-info { flex: 1; min-width: 0; }
.resource-title { font-weight: 600; margin-bottom: 0.25rem; }
.resource-meta { font-size: 12px; color: var(--text-light); }
.resource-actions { display: flex; gap: 8px; }

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-logo {
    width: 50px; height: 50px;
    background: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--primary-color);
    overflow: hidden;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-title { font-size: 18px; font-weight: 600; }
.footer-desc { color: #9ca3af; font-size: 14px; line-height: 1.8; }
.footer-section h4 { font-size: 16px; margin-bottom: 1rem; color: white; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #9ca3af; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 2rem; text-align: center; color: #6b7280; font-size: 14px; }

/* ========== 加载动画 ========== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
    }
    .navbar-menu.active { display: flex; }
    .menu-toggle { display: block; }
    .hero { padding: 120px 1.5rem 80px; }
    .hero h1 { font-size: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}

/* ========== 全局组件 ========== */

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    text-align: center;
    color: white;
}

.page-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.page-loader-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* 全局提示框 */
.global-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 1rem 2rem;
    background: #1f2937;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.global-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.global-toast.success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.global-toast.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* 页脚优化 */
.footer-enhanced {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-section a {
    display: block;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #4b5563;
}

.footer-bottom p {
    font-size: 13px;
    color: #6b7280;
}

/* 响应式 */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 企业简介页面优化 ========== */
.profile-hero {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 120px 2rem 60px;
    margin-top: 70px;
    text-align: center;
}

.profile-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.profile-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* 核心数据横向布局 */
.profile-stats-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.profile-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.profile-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 14px;
    color: #6b7280;
}

/* 发展历程横向时间线 */
.timeline-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-item {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 900px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-horizontal {
        flex-direction: column;
    }
    
    .timeline-item {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}
