
:root {
    --primary-color: #2962ff;
    --secondary-color: #0039cb;
    --accent-color: #ff6d00;
    --ai-purple: #9c27b0;
    --ai-blue: #2196f3;
    --ai-teal: #009688;
    --light-color: #f5f7ff;
    --dark-color: #0d47a1;
    --text-color: #263238;
    --text-light: #546e7a;
    --java-orange: #e76f00;
    --python-blue: #3776ab;
    --spring-green: #6db33f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* 英雄区域 */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    background: linear-gradient(90deg, var(--dark-color), var(--java-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #2c3e50;
    margin: 10px;
}

.btn:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    color: var(--accent-color);
}

.btn-ai {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-color: #8e44ad;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

/* 技术栈区域 */
.tech-stack {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    font-size: 2.2rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: #f5f7ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.tech-category:hover {
    transform: translateY(-5px);
}

.tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.tech-category h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    background: var(--light-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.tech-item i {
    margin-right: 5px;
}

.java { background-color: rgba(231, 111, 0, 0.1); color: var(--java-orange); }
.python { background-color: rgba(55, 118, 171, 0.1); color: var(--python-blue); }
.spring { background-color: rgba(109, 179, 63, 0.1); color: var(--spring-green); }
.database { background-color: rgba(3, 155, 229, 0.1); color: #039be5; }
.frontend { background-color: rgba(171, 71, 188, 0.1); color: #ab47bc; }
.architecture { background-color: rgba(255, 152, 0, 0.1); color: #ff9800; }
.devops { background-color: rgba(0, 77, 64, 0.1); color: #004d40; }

/* AI服务区域 */
.ai-services {
    padding: 80px 0;
    background: white;
    color: #333;
    position: relative;
    overflow: hidden;
}

.ai-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.ai-services .section-title {
    color: #333;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ai-card {
    background: #f8f9fa;
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: white;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--ai-purple), var(--ai-blue), var(--ai-teal));
}

.ai-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.ai-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.ai-card p {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.05rem;
}

.ai-tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ai-tech-item {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.ai-tech-item:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 关于区域 */
.about {
    padding: 80px 0;
    background: linear-gradient(to right, var(--light-color), white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 2.2rem;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--text-light);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 简单的联系区域 */
.simple-contact {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e, #4a6741);
    color: white;
    text-align: center;
}

.simple-contact h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.simple-contact p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.email-contact {
    font-size: 1.4rem;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-contact a {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.email-contact a i {
    margin-right: 10px;
    color: var(--accent-color);
}

.email-contact a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbdefb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .email-contact a {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    .ai-grid {
        grid-template-columns: 1fr;
    }
}