/* 多诺信息科技官网 - 统一响应式样式 */
@charset "utf-8";

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* 自定义颜色变量 */
:root {
    /* 品牌色系 - 蓝绿色调 */
    --primary: #1e4c64;
    --primary-light: #25a3c9;
    --primary-light2: #1eb9ee;
    --primary-dark: #0f3040;
    
    /* 背景色 */
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #113543;
    
    /* 文字色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    /* 功能色 */
    --accent: #0088cc;
    --success: #72b507;
    --danger: #ef4444;
    
    /* 边框 */
    --border-light: #e0e0e0;
    --border-dark: #54545c;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* 容器宽度 */
    --container-max: 1200px;
}

/* 全局重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
}

/* 导航菜单 - PC */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-desktop a {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-desktop a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-desktop a:hover::after {
    width: 60%;
}

.nav-desktop a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.nav-desktop a.active::after {
    width: 60%;
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端导航 */
.nav-mobile {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.nav-mobile.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile a {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* 主内容区域 */
.main-content {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 页面主Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #fff;
    padding: var(--space-xl);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.8;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

/* 首页 Banner 轮播 */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* 响应式图片：picture 与 img 铺满容器，cover 保证不变形 */
.hero-slide picture,
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    object-fit: cover;
    object-position: center;
}

/* 新图无文字，遮罩减淡；左侧略深保证白字标题对比，右侧透出主体细节 */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,48,64,0.45) 0%, rgba(10,35,48,0.38) 50%, rgba(10,35,48,0.3) 100%);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary-light2);
    border-color: #fff;
    transform: scale(1.2);
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* 服务卡片区域 */
.section {
    padding: var(--space-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: var(--space-lg) auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light2) 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    text-align: center;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.card-link {
    display: inline-block;
    margin-top: auto;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
}

.card-link:hover {
    color: var(--primary-light2);
}

/* 服务特点卡片 */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.feature-card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-light2) 100%);
    border-radius: 2px;
}

.feature-card ul {
    padding-left: var(--space-md);
}

.feature-card li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* 案例卡片 */
.project-card {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
}

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

.project-card-image {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-content {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.project-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.project-card-link {
    color: var(--primary-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.project-card-link:hover {
    color: var(--primary-light2);
}

/* 解决方案区块 */
.solution-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.solution-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.solution-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.solution-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.solution-logo {
    width: 120px;
    height: 50px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* Tab 切换 */
.tabs {
    margin-bottom: var(--space-xl);
}

.tab-nav {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--space-lg);
}

.tab-btn {
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 关于页面布局 */
.about-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

/* 等高布局：右侧媒体区与左侧卡片高度对齐 */
.about-layout.align-equal {
    align-items: stretch;
}

.about-layout.align-equal .about-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.about-layout.align-equal .about-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light2) 100%);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.sidebar nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin-bottom: var(--space-xs);
}

.sidebar nav a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.sidebar nav a.active {
    color: var(--primary-light);
    background: rgba(37, 163, 201, 0.1);
    font-weight: 500;
}

.main-content-area {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.main-content-area h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

.main-content-area p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.main-content-area h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: var(--space-xl) 0 var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.main-content-area h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-light2) 100%);
    border-radius: 2px;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: left;
}

.contact-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.contact-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.contact-card strong {
    color: var(--primary);
}

/* 项目详情内容 */
.project-detail img.project-hero {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.project-detail img.project-figure {
    max-width: 45%;
    float: right;
    margin: 0 0 var(--space-lg) var(--space-lg);
    border-radius: var(--radius-md);
}

.project-detail img.project-figure-left {
    max-width: 45%;
    float: left;
    margin: 0 var(--space-lg) var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.project-detail img.project-wide {
    width: 100%;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
}

.project-points {
    padding-left: var(--space-lg);
    margin: var(--space-md) 0;
}

.project-points li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
}

/* 底部 */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    padding: var(--space-xs) var(--space-sm);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav span {
    color: rgba(255,255,255,0.3);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-copyright a {
    color: rgba(255,255,255,0.5);
}

.footer-copyright a:hover {
    color: var(--primary-light2);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light2) 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: #fff;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.py-5 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.px-4 { padding-left: var(--space-lg); padding-right: var(--space-lg); }

/* 响应式断点 */

/* 平板 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        grid-template-columns: 200px 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-card-image {
        width: 100%;
        height: 200px;
    }
}

/* 手机 / 移动模式（页宽 ≤960px 即进入） */
@media (max-width: 960px) {
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* 移动端图主体更靠近文字区，均匀加深遮罩保证标题与副标题可读性 */
    .hero-slide::after {
        background: rgba(10,35,48,0.58);
    }
    
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        font-weight: 400;
    }
    
    .hero-banner {
        height: 320px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    .about-layout {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }

    .about-layout.align-equal .about-media {
        min-height: 260px;
    }
    
    .sidebar {
        position: static;
    }
    
    .contact-info {
        grid-template-columns: 1fr !important;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 14px;
    }
    
    .footer-nav {
        gap: var(--space-sm);
    }
    
    .footer-nav a {
        font-size: 13px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .header-inner {
        height: 60px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .hero-banner {
        height: 280px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .main-content-area {
        padding: var(--space-lg);
    }
    
    .main-content-area h3 {
        font-size: 22px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 选中文字样式 */
::selection {
    background: var(--primary-light);
    color: #fff;
}