/* 背景色系统统一 */
:root {
    /* 主色调 */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.1);
    
    /* 中性色 */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-gradient: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 布局变量 */
    --container-width: 1400px;
    --section-padding: 6rem;
    --content-padding: 5%;
    --grid-gap: 2rem;
    --border-radius: 16px;
    --nav-height: 80px;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* 背景效果 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
}

.tech-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    opacity: 0.5;
}

/* 基础布局 */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 var(--content-padding);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* 导航栏样式优化 */
.nav {
    height: var(--nav-height);
    padding: 0 var(--content-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    height: calc(var(--nav-height) - 10px);
    box-shadow: var(--shadow-sm);
}

.nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.nav .logo h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.nav .logo:hover h2 {
    color: var(--primary);
}

.nav .menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav a:hover::after {
    width: 100%;
}

/* 按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    animation: fadeInUp 1s ease 0.8s backwards;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    background: var(--primary-dark);
}

/* 英雄区布局优化 */
.hero {
    min-height: 90vh;
    padding-top: calc(var(--nav-height) + 3rem);//var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    /* 大约等同于50%的透明度 */
    /* filter: brightness(25%); */
}

.hero:after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url('https://res.qijing.tech:9443/static/bg/11.jpg');
    /* background-color: rgba(0, 0, 0, 0.95); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22; /* 设置背景图片的透明度 */
    z-index: -1; /* 确保它在内容之下 */
}

/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--primary-light) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--primary-light) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
} */

.hero .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    //padding-top: 50px;
    //padding: 0 var(--content-padding);
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    /* background: linear-gradient(45deg, rgb(245, 221, 7), rgb(7, 95, 228));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    /* color: var(--text-secondary); */
    color: #f59e0b;
        text-shadow: 2px 2px 2px rgba(101 70 2 0.8);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}
/* .hero p::before, .hero p::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    border: 2px solid black;
    pointer-events: none;
.hero p::before { z-index: -1; } */

.hero a {
    animation: fadeInUp 1s ease 0.95s backwards;
}

/* 卡片容器布局优化 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    padding: 0 var(--content-padding);
    max-width: var(--container-width);
    margin: 0 auto;
}

.card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.1);
}

.card:hover::before {
    transform: translateX(100%);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

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

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* 联系我们布局优化 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.contact-info,
.contact-form {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚布局优化 */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.footer-section {
    padding: 0;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 60px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    padding: 1.5rem var(--content-padding);
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--primary-dark);
}

/* 移动端菜单样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

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

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

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

/* 响应式布局优化 */
@media (max-width: 1200px) {
    :root {
        --container-width: 1140px;
        --section-padding: 5rem;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 960px;
        --section-padding: 4rem;
    }

    .hero .content {
        max-width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --section-padding: 3rem;
        --content-padding: 1rem;
        --nav-height: 64px;
        --grid-gap: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    /* 导航栏移动端样式 */
    .nav {
        padding: 1rem 5%;
        height: 50px;
    }

    .nav a::after {
        bottom: -10px;
    }
    
    .nav .logo h2 {
        font-size: 1.520rem;
    }

    .menu-toggle {
        display: flex;
        width: 22px;
        height: 16px;
        margin-left: 1rem;
    }

    .menu-toggle span {
        height: 2px;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 95%;
        max-width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 9997;
        display: flex;
    }

    .menu.active {
        transform: translateX(-100%);
    }

    .menu a {
        font-size: 1rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--text-primary);
        font-weight: 500;
        line-height: 1.4;
    }

    .menu a:last-child {
        border-bottom: none;
    }

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

    .menu a::after {
        display: none;
    }

    /* 遮罩层样式优化 */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 9997;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* 英雄区移动端样式 */
    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        min-height: calc(100vh - var(--nav-height));
    }

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

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* 卡片容器移动端样式 */
    .card {
        padding: 1.5rem;
    }

    /* 联系我们移动端样式 */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }

    /* 页脚移动端样式 */
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        padding: 1rem;
        font-size: 0.8rem;
    }
}


/* 触摸设备优化 */
@media (hover: none) {
    .nav a:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .cta-button:hover {
        transform: none;
    }

    .footer-links a:hover {
        transform: none;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 1rem 3rem;
    }

    .nav {
        height: 48px;
    }

    .nav .logo h2 {
        font-size: 1.1rem;
    }

    .menu {
        padding-top: calc(var(--nav-height) + 0.5rem);
    }

    .menu a {
        padding: 0.5rem 0;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
    :root {
        --container-width: 1800px;
        --section-padding: 8rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
    }

    .nav {
        background: var(--bg-primary);
    }

    .menu {
        background: var(--bg-primary);
    }

    .card {
        background: var(--bg-secondary);
    }
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 2.5rem; }
.gap-6 { gap: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mb-6 { margin-bottom: 3rem; }




