/* 通用样式 */
:root {
    --primary-color: #6a11cb; /* 渐变起始色 */
    --secondary-color: #2575fc; /* 渐变结束色 */
    --text-color-light: #f0f0f0;
    --text-color-dark: #333;
    --bg-color-dark: #1a1a2e;
    --bg-color-light: #f8f8f8;
    --card-bg-dark: #2c2c4d;
    --card-bg-light: #ffffff;
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(0, 0, 0, 0.1);
    --hover-bg-dark: rgba(255, 255, 255, 0.05);
    --hover-bg-light: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--bg-color-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    color: white; /* 保持白色 */
}

/* 导航栏 */
.navbar {
    background-color: rgba(26, 26, 46, 0.8); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.navbar nav ul {
    list-style: none;
    display: flex;
}

.navbar nav ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color-dark) 0%, #0f0f1b 100%);
    position: relative;
    overflow: hidden; /* 防止伪元素溢出 */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at top left, var(--primary-color) 0%, transparent 40%),
                radial-gradient(circle at bottom right, var(--secondary-color) 0%, transparent 40%);
    opacity: 0.15;
    animation: rotateBackground 20s infinite linear;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section .container {
    z-index: 1; /* 确保内容在背景之上 */
    position: relative;
}

.hero-section h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

/* 内容区域 */
.content-section {
    padding: 100px 0;
    background-color: var(--bg-color-dark);
}

.grey-bg {
    background-color: #121223; /* 稍微浅一点的深色背景 */
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: var(--card-bg-dark);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.card h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
}

/* 服务网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--card-bg-dark);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color-dark);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
    background-color: var(--hover-bg-dark);
    transform: translateY(-5px);
}

.service-item .icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
}


/* 联系我们 */
.contact-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(45deg, #1a1a2e, #0f0f1b);
    border-top: 1px solid var(--border-color-dark);
}

.contact-section h2 {
    color: var(--text-color-light);
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg-dark);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color-dark);
}

.form-group {
    margin-bottom: 25px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color-dark);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color-light);
    font-size: 1.1em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #0f0f1b;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .social-links a {
    margin: 0 15px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--secondary-color);
}


/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }


/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar nav ul li {
        margin: 0 15px 10px;
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .card-grid, .service-grid {
        grid-template-columns: 1fr;
    }

    .card, .service-item {
        padding: 30px;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .navbar .logo {
        font-size: 1.5em;
    }
}