/* 全局样式 */
:root {
    --primary-color: #FF8C00;  /* 深橙色 */
    --secondary-color: #FFA500; /* 橙色 */
    --text-color: #2C3E50;
    --light-text: #7F8C8D;
    --background: #ffffff;
    --section-bg: #FFF8E7;  /* 淡橙色背景 */
    --gradient-start: rgba(255, 140, 0, 0.1);
    --gradient-end: rgba(255, 165, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links i {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    vertical-align: middle;
}

/* 介绍区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 8px 32px rgba(255,140,0,0.10), 0 1.5px 8px rgba(0,0,0,0.08);
    border: 12px solid #fff8e7;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}
.hero-image:hover {
    transform: scale(1.05) rotate(-3deg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B6B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    animation: patternMove 20s linear infinite;
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleFloat 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero h1 div {
    line-height: 1.2;
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1.2;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 1s ease forwards;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
    color: white;
    background: var(--primary-color);
}

@keyframes gradientShift {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes patternMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes lineGrow {
    to { transform: scaleX(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--text-color);
    color: white;
}

.footer .icp {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer .icp a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-left, .hero-right {
        flex: none;
        width: 100%;
    }

    .hero-right {
        order: -1; /* 将头像移到文字上方 */
    }

    .hero-image {
        width: 180px;
        height: 180px;
        border-width: 8px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 6rem 1rem 2rem;
        height: auto;
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .hero-image {
        width: 140px;
        height: 140px;
        border-width: 6px;
    }
}

@media (max-width: 400px) {
    .hero-image {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }
}

.about-section {
    background: var(--section-bg);
    padding: 60px 0;
}

.about-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-avatar {
    flex: 0 0 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 4px 16px rgba(255,140,0,0.10), 0 1.5px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-nickname {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.2rem;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-tag {
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255,140,0,0.08);
}

@media (max-width: 700px) {
    .about-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .about-avatar {
        justify-content: center;
    }
}

/* 项目模块样式 */
.projects {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* 前往站点按钮特殊样式 */
.project-links .btn.small {
    background: var(--primary-color);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.project-links .btn.small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.project-links .btn.small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.project-links .btn.small:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.project-links .btn.small::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-links .btn.small:hover::after {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* 联系我们模块样式 */
.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    vertical-align: middle;
}

.contact-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.lang-toggle {
    background: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.2);
}

.lang-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.lang-toggle:active {
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top i {
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    .nav-links span {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    .nav-container {
        padding: 0.5rem 0.5rem;
    }
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links a {
        padding: 0.3rem 0.3rem;
    }
    .nav-links i {
        font-size: 1rem;
    }
} 