/* ==========================================
   深言图灵官网 - 主样式文件
   ========================================== */

/* ==========================================
   1. 全局重置和基础样式
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.8;
}

/* ==========================================
   2. Tailwind-like 工具类
   ========================================== */
.w-full { width: 100%; }
.h-full { height: 100%; }
.block { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.mx-auto { margin-left: auto; margin-right: auto; }
.cursor-pointer { cursor: pointer; }
.gap-2 { gap: 0.5rem; }

/* 背景色 */
.bg-\[\#fff\] { background-color: #fff; }
.bg-\[\#29292C\] { background-color: #29292C; }
.bg-\[\#31333E\] { background-color: #31333E; }

/* 文字颜色 */
.text-\[\#ffffff\] { color: #ffffff; }
.text-\[\#333333\], .text-\[\#333\] { color: #333333; }
.text-\[\#999999\], .text-\[\#999\] { color: #999999; }
.text-\[\#2C2A2F\] { color: #2C2A2F; }
.text-\[\#3D3738\] { color: #3D3738; }

/* 字体大小 */
.text-\[12px\] { font-size: 12px; }
.text-\[16px\] { font-size: 16px; }
.text-\[22px\] { font-size: 22px; }
.text-\[24px\] { font-size: 24px; }
.text-\[28px\] { font-size: 28px; }
.text-\[30px\] { font-size: 30px; }
.text-\[32px\] { font-size: 32px; }
.text-\[36px\] { font-size: 36px; }
.text-\[40px\] { font-size: 40px; }
.text-\[48px\] { font-size: 48px; }
.text-\[60px\] { font-size: 60px; }
.text-\[72px\] { font-size: 72px; }

/* 字体粗细 */
.font-semibold { font-weight: 600; }

/* 宽度 */
.w-\[42px\] { width: 42px; }
.w-\[80px\] { width: 80px; }
.w-\[100px\] { width: 100px; }
.w-\[308px\] { width: 308px; }
.w-\[470px\] { width: 470px; }
.w-\[680px\] { width: 680px; }
.w-\[1110px\] { width: 1110px; }
.w-\[1200px\] { width: 1200px; }
.w-\[33\.33\%\] { width: 33.33%; }
.w-\[50\%\] { width: 50%; }

/* 高度 */
.h-\[42px\] { height: 42px; }
.h-\[80px\] { height: 80px; }
.h-\[90px\] { height: 90px; }
.h-\[100px\] { height: 100px; }
.h-\[282px\] { height: 282px; }
.h-\[385px\] { height: 385px; }
.h-\[470px\] { height: 470px; }
.h-\[900px\] { height: 900px; }

/* 最大宽度 */
.max-w-\[1200px\] { max-width: 1200px; }

/* 边距 */
.mt-\[8px\] { margin-top: 8px; }
.mt-\[16px\] { margin-top: 16px; }
.mt-\[19px\] { margin-top: 19px; }
.mt-\[29px\] { margin-top: 29px; }
.mt-\[32px\] { margin-top: 32px; }
.mt-\[38px\] { margin-top: 38px; }
.mt-\[40px\] { margin-top: 40px; }
.mt-\[55px\] { margin-top: 55px; }
.mt-\[66px\] { margin-top: 66px; }
.mt-\[69px\] { margin-top: 69px; }
.mt-\[88px\] { margin-top: 88px; }
.mt-\[114px\] { margin-top: 114px; }

/* 内边距 */
.py-\[136px\] { padding-top: 136px; padding-bottom: 136px; }
.pb-2 { padding-bottom: 0.5rem; }

/* 行高 */
.leading-8 { line-height: 2rem; }

/* 圆角 */
.rounded-\[8px\] { border-radius: 8px; }

/* 定位 */
.top-\[60px\] { top: 60px; }
.bottom-0 { bottom: 0; }

/* ==========================================
   3. 首页特定样式
   ========================================== */

/* 顶部轮播区域 */
.swiper {
    background-image:
        linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%),
        url('/static/img/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.swiper > div {
    position: relative;
    z-index: 1;
}

/* Logo样式 */
.logo {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    transform: scale(1.05);
}

/* 标题区域 */
.title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title p {
    animation: fadeInUp 0.8s ease-out;
}

/* 按钮样式 */
.title > div {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.title > div:hover {
    background-color: #1a1a1c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 关于我们区域 */
.about {
    background-color: #fff;
}

.about .text-box p {
    transition: color 0.3s ease;
}

.about img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about img:hover {
    transform: scale(1.02);
}

/* 成果卡片 */
.about > div:last-child > div > div {
    padding: 20px;
    transition: all 0.3s ease;
}

.about > div:last-child > div > div:hover {
    transform: translateY(-5px);
}

.about > div:last-child > div > div img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.about > div:last-child > div > div:hover img {
    transform: rotate(5deg) scale(1.1);
}

/* 更多了解区域 */
.more {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/img/more_bg.png') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.more > div {
    position: relative;
    z-index: 1;
}

/* 页脚样式 */
.footer {
    position: relative;
}

.footer .icons img {
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.footer .icons img:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #667eea !important;
    text-decoration: underline;
}

/* ==========================================
   4. 动画效果
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   5. 响应式设计
   ========================================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .max-w-\[1200px\], .w-\[1200px\], .w-\[1110px\] {
        max-width: 90%;
        width: 90%;
    }

    .text-\[72px\] { font-size: 48px; }
    .text-\[60px\] { font-size: 42px; }
    .text-\[48px\] { font-size: 36px; }
    .text-\[40px\] { font-size: 32px; }
    .text-\[36px\] { font-size: 28px; }

    .h-\[900px\] { height: 700px; }

    .about .flex {
        flex-direction: column;
        align-items: center;
    }

    .w-\[680px\], .w-\[470px\] {
        width: 100%;
        max-width: 600px;
    }

    .about img {
        margin-top: 40px;
    }
}

/* 手机设备 (最大 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .max-w-\[1200px\], .w-\[1200px\], .w-\[1110px\] {
        max-width: 95%;
        width: 95%;
    }

    /* 字体大小调整 */
    .text-\[72px\] { font-size: 32px; }
    .text-\[60px\] { font-size: 28px; }
    .text-\[48px\] { font-size: 24px; }
    .text-\[40px\] { font-size: 22px; }
    .text-\[36px\] { font-size: 20px; }
    .text-\[32px\] { font-size: 18px; }
    .text-\[30px\] { font-size: 18px; }
    .text-\[28px\] { font-size: 16px; }
    .text-\[24px\] { font-size: 14px; }
    .text-\[22px\] { font-size: 14px; }

    /* 高度调整 */
    .h-\[900px\] { height: 600px; }
    .h-\[385px\] { height: auto; min-height: 300px; }
    .h-\[282px\] { height: auto; }

    /* Logo调整 */
    .w-\[80px\], .h-\[80px\] {
        width: 60px;
        height: 60px;
    }

    .top-\[60px\] { top: 20px; }

    /* 按钮调整 */
    .w-\[308px\] {
        width: 90%;
        max-width: 280px;
    }

    .h-\[90px\] { height: 70px; }

    /* 间距调整 */
    .mt-\[114px\] { margin-top: 60px; }
    .mt-\[88px\] { margin-top: 40px; }
    .mt-\[69px\] { margin-top: 30px; }
    .mt-\[66px\] { margin-top: 30px; }
    .mt-\[55px\] { margin-top: 30px; }
    .py-\[136px\] { padding-top: 60px; padding-bottom: 60px; }

    /* 布局调整 */
    .about .flex,
    .footer .flex {
        flex-direction: column;
    }

    .w-\[680px\], .w-\[470px\], .w-\[50\%\] {
        width: 100%;
    }

    .about img {
        margin-top: 30px;
        max-width: 100%;
    }

    /* 成果卡片 */
    .about > div:last-child > div {
        flex-direction: column;
    }

    .w-\[33\.33\%\] {
        width: 100%;
        margin-bottom: 30px;
    }

    /* 页脚调整 */
    .footer > div > div {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer .icons {
        justify-content: center;
        margin-top: 20px;
    }

    .footer {
        height: auto;
        padding: 40px 0 60px;
    }
}

