/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif; /* 确保所有元素都使用Noto Sans SC字体 */
}

html, body {
    background: #0d1117 !important; /* 强制统一所有背景色 */
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0d1117 !important; /* 强制统一所有背景色 */
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* 完全隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
}

/* 自定义滚动条 */
.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 8px;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* GPU加速优化 */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.custom-scrollbar.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-scrollbar-track {
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.8);
    border-radius: 4px;
}

.custom-scrollbar-thumb {
    width: 100%;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    /* GPU加速优化 */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 拖拽时禁用过渡动画，确保连续性 */
.custom-scrollbar-thumb.dragging {
    transition: none;
}

.custom-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8);
}

/* 确保所有主要容器都有统一背景 */
.hero,
.about,
.services,
.portfolio,
.contact,
.footer,
main,
section {
    background: #0d1117 !important; /* 强制统一所有背景色 */
    position: relative;
}

/* 确保所有内容区域都透明，让星空背景显示 */
.container,
.nav-container,
.hero-container,
.about-content,
.services-grid,
.portfolio-grid,
.contact-content,
.footer-content {
    background: transparent !important;
    position: relative;
    z-index: 10;
}

/* 星空背景 */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* 降低到背景层，不遮挡内容 */
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) infinite ease-in-out, 
               float var(--float-duration) infinite ease-in-out;
    animation-delay: var(--delay), var(--float-delay);
    z-index: 3;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: var(--opacity);
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(var(--float-y)) translateX(var(--float-x));
    }
    50% {
        transform: translateY(0) translateX(0);
    }
    75% {
        transform: translateY(calc(var(--float-y) * -1)) translateX(calc(var(--float-x) * -1));
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* 流星效果 */
.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.8) 100%);
    opacity: 0;
    transform: rotate(var(--angle));
    animation: shooting var(--duration) linear infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    overflow: hidden;
    z-index: 3;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9);
}

@keyframes shooting {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(0);
    }
    5% {
        opacity: 1;
    }
    20% {
        transform: rotate(var(--angle)) translateX(var(--distance));
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(var(--distance));
    }
}

/* 星云效果 - 已被移除以确保颜色统一 */
.nebula {
    display: none;
}

/* body::before 伪元素已被移除，以确保背景颜色统一 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    background: transparent !important;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 10px;
    position: relative;
}

.section-header p {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 300;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0d1117 !important; /* 统一使用实色背景，避免透明度差异 */
    backdrop-filter: blur(20px);
    z-index: 100; /* 导航栏在最顶层 */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.navbar.scrolled {
    background: #0d1117 !important; /* 统一使用实色背景，避免透明度差异 */
    backdrop-filter: blur(25px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-self: start;
}

.nav-center {
    display: flex;
    justify-content: center;
    justify-self: center;
}

/* 品牌名称样式 */
.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif; /* 明确设置Noto Sans SC字体 */
}

.brand-name:hover {
    color: #3b82f6;
}

/* 中间导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: 'Noto Sans SC', sans-serif; /* 明确设置Noto Sans SC字体 */
}

.nav-link:hover {
    color: #f8fafc;
}

/* 右侧导航 */
.nav-right {
    display: flex;
    align-items: center;
    justify-self: end;
}

.contact-btn {
    padding: 8px 20px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif; /* 明确设置Noto Sans SC字体 */
}

.contact-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}



.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #f8fafc;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117 !important;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(30, 58, 138, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(30, 58, 138, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(30, 58, 138, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.card {
    position: absolute;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 20px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #0d1117 !important;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f8fafc;
}

.about-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.8;
}

.features {
    display: grid;
    gap: 30px;
    background: transparent !important;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: transparent !important;
}

.feature i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 5px;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f8fafc;
}

.feature p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.about-image {
    position: relative;
    background: transparent !important;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #0d1117 !important;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    background: transparent !important;
}

.service-card {
    background: rgba(15, 23, 42, 0.35) !important;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 24px 0 rgba(30,58,138,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.2));
    z-index: -1;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.3);
    border-color: rgba(30, 58, 138, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f8fafc;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.service-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    gap: 12px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #0d1117 !important;
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: transparent !important;
}

.portfolio-item {
    background: rgba(15, 23, 42, 0.32) !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(30,58,138,0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2);
    border-color: rgba(30, 58, 138, 0.4);
}

.portfolio-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.9;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f8fafc;
}

.portfolio-info p {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(30, 58, 138, 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #0d1117 !important;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f8fafc;
}

.contact-info p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #f8fafc;
}

.contact-item p {
    color: #cbd5e1;
    margin: 0;
}

.contact-form {
    background: rgba(15, 23, 42, 0.32) !important;
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0d1117 !important;
    color: #94a3b8;
    padding: 80px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: transparent !important;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #f8fafc;
}

.footer-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f8fafc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 18px;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    background: #0d1117 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes starfield {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-800px) translateY(-600px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 移动端导航栏样式 */
    .nav-container {
        padding: 0 20px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .nav-center {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-center::-webkit-scrollbar {
        display: none;
    }
    
    .nav-menu {
        gap: 1rem;
        padding: 0 10px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .contact-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .hamburger {
        display: none;
    }



    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    /* 小屏幕导航栏样式 */
    .nav-container {
        padding: 0 15px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .contact-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* 主内容区域 - 极简风格 */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5; /* 降低z-index，让星空可以显示 */
    padding-top: 100px; /* 为导航栏留出空间 */
    background: transparent !important; /* 设置为透明，让星空背景显示 */
}

.center-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10; /* 确保文字内容显示在星空之上 */
}

.main-title {
    font-size: 4.2rem; /* 调大字号到4.2rem */
    font-weight: 700; /* 调细字重到700 */
    color: #3b82f6;
    margin-bottom: 2rem; /* 稍微减少底部间距 */
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Noto Sans SC', sans-serif; /* 使用Noto Sans SC字体 */
    letter-spacing: 0.15em; /* 进一步增大字间距 */
    line-height: 1.3; /* 稍微减少行高 */
}

.main-subtitle {
    font-size: 2.8rem;
    font-weight: 700; /* 稍微调细字重 */
    color: #94a3b8;
    margin-bottom: 2rem; /* 稍微减少底部间距 */
    letter-spacing: -0.01em; /* 稍微紧缩字间距 */
    font-family: 'Noto Sans SC', sans-serif; /* 使用Noto Sans SC字体 */
    line-height: 1.4; /* 稍微减少行高 */
}

.main-description {
    font-size: 1.6rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    line-height: 1.8; /* 稍微减少行高 */
    letter-spacing: 0.08em; /* 增大字间距 */
}

.main-buttons {
    display: flex;
    gap: 1.5rem; /* 从1rem增加到1.5rem */
    justify-content: center;
    flex-wrap: wrap;
}

.main-btn {
    display: inline-block;
    padding: 16px 32px; /* 增加内边距 */
    background: rgba(255, 255, 255, 0.1); /* 半透明白色背景 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 半透明白色边框 */
    color: #e5e7eb; /* 浅灰色文字 */
    font-size: 1.2rem; /* 从1rem增加到1.2rem */
    font-weight: 500;
    border-radius: 12px; /* 稍微增加圆角 */
    cursor: pointer;
    transition: all 0.3s ease; /* 添加过渡动效 */
    min-width: 100px; /* 从80px增加到100px */
    text-decoration: none; /* 移除链接下划线 */
    text-align: center; /* 文字居中 */
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif; /* 明确设置Noto Sans SC字体 */
    backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari兼容 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
}

.main-btn:hover {
    background: rgba(255, 255, 255, 0.2); /* 悬停时背景更明亮 */
    border-color: rgba(255, 255, 255, 0.3); /* 悬停时边框更明亮 */
    color: #ffffff; /* 悬停时文字变白 */
    transform: translateY(-2px); /* 轻微上浮效果 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 增强阴影 */
    text-decoration: none; /* 确保悬停时也没有下划线 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.6rem; /* 调大字号 */
        margin-bottom: 1.8rem; /* 稍微减少间距 */
        line-height: 1.3;
    }
    
    .main-subtitle {
        font-size: 2rem;
        margin-bottom: 1.8rem; /* 稍微减少间距 */
        line-height: 1.4;
    }
    
    .main-description {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        line-height: 1.7; /* 稍微减少行高 */
    }
    
    .main-buttons {
        gap: 1.2rem; /* 平板端也相应增加间距 */
    }
    
    .main-btn {
        padding: 14px 28px; /* 移动端也相应增大 */
        font-size: 1.1rem; /* 移动端字号也增大 */
        min-width: 90px; /* 移动端最小宽度增大 */
    }

}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.1rem; /* 调大字号 */
        margin-bottom: 1.3rem; /* 稍微减少间距 */
        line-height: 1.2;
    }
    
    .main-subtitle {
        font-size: 1.6rem;
        margin-bottom: 1.3rem; /* 稍微减少间距 */
        line-height: 1.3;
    }
    
    .main-description {
        line-height: 1.6; /* 稍微减少行高 */
    }
    
    .main-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* 手机端适当增加间距 */
    }
    
    .main-btn {
        width: 200px;
        max-width: 100%;
    }

} 