/* css/style.css */
:root {
    --primary: #0a081f;
    --secondary: #1e1a4a;
    --accent: #ff4d7d;
    --accent-light: #ff85a9;
    --light: #f0f2f5;
    --dark: #0c0b16;
    --transition: all 0.5s ease;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 背景轮播系统 */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: zoomEffect 20s linear infinite;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 8, 31, 0.85) 0%, rgba(12, 11, 22, 0.95) 100%);
}

/* Header & Navigation */
header {
    background-color: rgba(10, 8, 31, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 77, 125, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    transition: var(--transition);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-left: 12px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo:hover .logo-img {
    transform: rotate(-5deg) scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 77, 125, 0.7));
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 8px 5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(255, 77, 125, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: rgba(240, 242, 245, 0.9);
    text-transform: none;
    font-family: 'Exo 2', sans-serif;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(240, 242, 245, 0.85);
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    color: var(--light);
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 5px 20px rgba(255, 77, 125, 0.4);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 77, 125, 0.6);
}

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

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

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    display: inline-block;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.15rem;
    color: rgba(240, 242, 245, 0.8);
}

/* 瀑布流式作品展示 */
.portfolio-masonry {
    column-count: 3;
    column-gap: 25px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.masonry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.masonry-item:hover .item-info {
    opacity: 1;
    transform: translateY(0);
}

.item-info h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.item-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(12px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1800px;
    max-height: 90vh;
    background: rgba(30, 27, 63, 0.65);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-image-container {
    position: relative;
    height: 65vh;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.85), transparent);
    color: white;
    transition: all 0.5s ease;
}

.image-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.image-overlay p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.image-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-item p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.modal-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 12, 41, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.image-counter {
    font-size: 1rem;
    opacity: 0.9;
    font-family: 'Orbitron', sans-serif;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
    transition: var(--transition);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.6);
}

/* 缩略图导航 */
.thumbnail-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(15, 12, 41, 0.6);
}

.thumbnail-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
    max-width: 90%;
}

.thumbnail-container::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    min-width: 80px;
    height: 60px;
    margin: 0 8px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumbnail-item:hover, .thumbnail-item.active {
    opacity: 1;
    transform: scale(1.08);
    border-color: var(--accent);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.nav-arrow:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* 服务区域 */
.services {
    background: rgba(10, 8, 31, 0.7);
    border-top: 1px solid rgba(255, 77, 125, 0.1);
    border-bottom: 1px solid rgba(255, 77, 125, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(30, 27, 63, 0.4);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 77, 125, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 77, 125, 0.3);
    background: rgba(30, 27, 63, 0.6);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card p {
    color: rgba(240, 242, 245, 0.85);
}

/* 关于区域 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--accent);
}

.about-text p {
    margin-bottom: 25px;
    color: rgba(240, 242, 245, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    display: flex;
    align-items: center;
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--light);
}

.skill-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--accent-light);
}

.skill-info p {
    font-size: 0.95rem;
    color: rgba(240, 242, 245, 0.8);
    margin-bottom: 0;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    height: 450px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* 页脚 */
footer {
    background: rgba(10, 8, 31, 0.9);
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 77, 125, 0.1);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(255, 77, 125, 0.5));
}

.footer-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-left: 15px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(240, 242, 245, 0.8);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    opacity: 0.7;
    font-size: 0.95rem;
    color: rgba(240, 242, 245, 0.7);
    margin-top: 20px;
}

/* Animations */
@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 5px 15px rgba(255, 77, 125, 0.3);
    }
    100% {
        text-shadow: 0 5px 25px rgba(255, 77, 125, 0.7);
    }
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .portfolio-masonry {
        column-count: 2;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 400px;
        grid-row: 1;
    }
    
    .modal-image-container {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-masonry {
        column-count: 1;
    }
    
    .image-overlay {
        padding: 20px;
    }
    
    .image-overlay h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .modal-image-container {
        height: 40vh;
    }
    
    .thumbnail-item {
        min-width: 60px;
        height: 45px;
        margin: 0 5px;
    }
    
    .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .image-overlay h3 {
        font-size: 1.5rem;
    }
    
    .image-overlay p {
        font-size: 0.95rem;
    }
}