/* 上海尚智数科 - 品牌视觉规范 CSS */

/* 导入Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500&display=swap');

/* 品牌色彩系统 */
:root {
    --primary-color: #0F1E3D;    /* 深空蓝 - 权威 */
    --accent-color: #00D4FF;     /* 科技青 - 创新 */
    --secondary-color: #FF6B35;  /* 活力橙 - 活力 */
    --background-color: #F8F9FA; /* 浅灰 - 背景 */
    --text-primary: #1A1A1A;     /* 主文字 */
    --text-secondary: #666666;   /* 次要文字 */
    --border-color: #E0E0E0;     /* 边框色 */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
}

/* 字体系统 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p, li, span {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
}

code, pre {
    font-family: 'Roboto Mono', monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* 卡片组件样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0099CC);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, #0099CC, var(--accent-color));
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    background: #FF5722;
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A2B4D 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300D4FF" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 图标样式 */
.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.icon-medium {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* 时间线样式 */
.timeline-item {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 3rem;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--accent-color);
    opacity: 0.3;
}

/* 手风琴组件样式 */
.accordion-button {
    background: white;
    border: none;
    border-radius: 8px !important;
    font-weight: 600;
    color: var(--primary-color);
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-color);
    color: white;
    box-shadow: none;
}

.accordion-body {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 0 0 8px 8px;
}

/* 标签页样式 */
.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
    background: var(--accent-color);
    color: white;
    border: none;
}

/* 列表组样式 */
.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.list-group-item.active {
    background: var(--accent-color);
    border: none;
    color: white;
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer p, .footer li {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
}

/* 自定义工具类 */
.text-accent { color: var(--accent-color); }
.text-secondary-color { color: var(--secondary-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-accent { background-color: var(--accent-color); }

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}