/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: url('images/_6.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: #fff;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

section {
    padding: 5rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

h2 {
    font-size: 2.5rem;
    color: #c0d8f0;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

button {
    background: #c0d8f0;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #d8d8e0;
    transform: translateY(-2px);
}

/* 导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.2rem 0;
}

.top-nav li {
    margin: 0 2rem;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: #c0d8f0;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c0d8f0;
    transition: width 0.3s ease;
}

.top-nav a:hover::after {
    width: 100%;
}

/* 首页模块 */
.home-section {
    padding-top: 8rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.home-left {
    width: 60%;
    padding-right: 3rem;
}

.home-right {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-right img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.home-right img:hover {
    transform: scale(1.05);
}

.intro-text {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(192, 216, 240, 0.1);
    border-left: 4px solid #c0d8f0;
    border-radius: 0 10px 10px 0;
    animation: fadeInLeft 1s ease-out 0.5s both;
}

/* 作品集模块 */
.portfolio-section {
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.slideshow-container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.mySlides {
    display: none;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease;
    border-radius: 0;
    box-shadow: none;
}

.mySlides:hover img {
    transform: scale(1.1);
}

.portfolio-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(216, 216, 224, 0.1);
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.portfolio-text p {
    position: relative;
    padding-left: 1.5rem;
}

.portfolio-text p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c0d8f0;
    font-size: 1.5rem;
}

/* 刻板印象模块 */
.stereotype-section {
    background: rgba(0, 0, 0, 0.4);
}

.stereotype-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stereotype-content img {
    width: 70%;
    max-width: 600px;
    transition: transform 0.5s ease;
    animation: fadeIn 1.5s ease-out;
}

.stereotype-content img:hover {
    transform: scale(1.05);
}

.stereotype-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.stereotype-card {
    background: rgba(216, 216, 224, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.stereotype-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.stereotype-card h3 {
    color: #c0d8f0;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.stereotype-card ul {
    list-style: none;
}

.stereotype-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.stereotype-card li::before {
    content: '❀';
    position: absolute;
    left: 0;
    color: #d8d8e0;
    font-size: 0.9rem;
}

/* 联系方式模块 */
.contact-section {
    background: rgba(0, 0, 0, 0.5);
}

.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: linear-gradient(135deg, rgba(192, 216, 240, 0.15), rgba(216, 216, 224, 0.15));
    padding: 2rem;
    border-radius: 15px;
    width: calc(50% - 1rem);
    min-width: 300px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-card h3 {
    font-size: 1.8rem;
    color: #c0d8f0;
    margin-bottom: 1.5rem;
}

.contact-info {
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-note {
    font-style: italic;
    color: #d8d8e0;
    border-left: 3px solid #d8d8e0;
    padding-left: 1rem;
}

.contact-text {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.2rem;
    animation: fadeInUp 1s ease-out;
}

/* 全局动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 淡入淡出动画 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .home-section {
        flex-direction: column;
    }
    
    .home-left, .home-right {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .contact-card {
        width: 100%;
    }
    
    .portfolio-text {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 5rem 5%;
    }
    
    .top-nav ul {
        padding: 1rem 0;
    }
    
    .top-nav li {
        margin: 0 1rem;
    }
    
    .mySlides {
        height: 350px;
    }
    
    h1 {
        font-size: 2.3rem;
    }
}
