/* AGV专题网站 - 全局样式 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #00d4aa;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    padding: 0.8rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color) !important;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* 英雄区域样式 */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 按钮样式 */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    background: transparent;
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* 区块标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* 卡片样式 */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.8;
}

/* 知识卡片样式 */
.knowledge-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
}

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

.knowledge-card .card-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.knowledge-card .card-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.knowledge-card .card-body {
    padding: 1.8rem;
}

.knowledge-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.knowledge-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.knowledge-card .card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.knowledge-card .card-link:hover {
    gap: 1rem;
}

/* 统计数字样式 */
.stats-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dotMove 10s linear infinite;
}

@keyframes dotMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.stat-item {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px var(--primary-color);
}

/* 标签页样式 */
.nav-tabs-custom {
    border: none;
    justify-content: center;
    margin-bottom: 3rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    padding: 1rem 2rem !important;
    font-weight: 600;
    color: var(--secondary-color) !important;
    background: transparent;
    border-radius: 50px;
    margin: 0 0.5rem;
}

.nav-tabs-custom .nav-link.active {
    background: var(--gradient-primary);
    color: #fff !important;
}

/* 手风琴样式 */
.accordion-custom .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.accordion-custom .accordion-button {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    background: #fff;
    border: none;
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: #fff;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-custom .accordion-body {
    padding: 1.5rem;
    background: #fff;
    color: var(--secondary-color);
    line-height: 1.8;
}

/* 表格样式 */
.table-custom {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table-custom thead {
    background: var(--gradient-primary);
    color: #fff;
}

.table-custom th {
    font-weight: 600;
    padding: 1.2rem 1rem;
    border: none;
}

.table-custom td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: rgba(13, 110, 253, 0.03);
}

/* 页脚样式 */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a{
    color: inherit;
    text-decoration: none;
}
/* 面包屑样式 */
.breadcrumb-section {
    background: var(--gradient-dark);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.breadcrumb-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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.breadcrumb-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.breadcrumb-nav {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--accent-color);
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* 详情页样式 */
.detail-section {
    padding: 4rem 0;
}

.detail-content {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.detail-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
}

.detail-content p {
    color: var(--secondary-color);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.detail-content ul,
.detail-content ol {
    color: var(--secondary-color);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.detail-content li {
    margin-bottom: 0.5rem;
}

.detail-image {
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
}

.detail-image img {
    width: 100%;
    height: auto;
}

/* 侧边栏样式 */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
}

/* 响应式样式 */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .detail-content {
        padding: 1.5rem;
    }
}

/* 动画效果 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
}

/* 对比表格样式 */
.comparison-table {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.comparison-table th {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    padding: 1.2rem;
    text-align: center;
}

.comparison-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .feature-name {
    font-weight: 600;
    color: var(--dark-color);
    text-align: left;
}

.comparison-table .check-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.comparison-table .cross-icon {
    color: #dc3545;
    font-size: 1.2rem;
}

/* 流程图样式 */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
}
/* 右箭头 */
.process-step::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
}
/* 下箭头 */
.process-step.process-down::after {
    content: '\F282';
    right: 0;
    transform: none;
    left: 0;
    width: 100%;
    top: 100%;
}
.process-step:last-child::after {
    display: none;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-icon i {
    font-size: 2rem;
    color: #fff;
}

.process-step h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* 提示框样式 */
.tip-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tip-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.tip-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.tip-box p {
    color: var(--secondary-color);
    margin: 0;
}

/* 警告框样式 */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffc107;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box i {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.warning-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: var(--secondary-color);
    margin: 0;
}
