/* ===========================================
   KKR Capstone Website Styles
   =========================================== */

/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 流体字体系统 */
html {
    font-size: clamp(14px, 2.5vw, 18px);
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ===========================================
   头部导航样式
   =========================================== */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #777;
}

/* ===========================================
   主内容区域
   =========================================== */
.content {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin-bottom: 20px;
    font-weight: 300;
}

.intro p {
    font-size: clamp(16px, 3vw, 18px);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================
   项目卡片网格
   =========================================== */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 300px;
}

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

.project-img {
    height: 200px;
    background-color: #ddd;
    background-image: url("project1.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
}

.project-img-background-2 {
    background-image: url("card2.png");
}

.project-img-background-3 {
    background-image: url("card3.png");
}

.project-img-background-4 {
    background-image: url("card4.png");
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
}

.project-info p {
    color: #666;
    font-size: 14px;
}

/* ===========================================
   个人简介区域
   =========================================== */
.profile-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    background-image: url("person3.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 350px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.image-container-school {
    background-image: url("school.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 460px;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-container:hover {
    transform: scale(2.03);
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.2), rgba(74, 123, 200, 0.1));
    z-index: 1;
}

.profile-content {
    flex: 1.2;
    padding: 20px 0;
}

.school-content h1,
.profile-content h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.school-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
}

.profile-content h2 {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.profile-content p {
    font-size: clamp(16px, 3vw, 18px);
    color: #444;
    margin-bottom: 25px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.highlight {
    color: #2c5aa0;
    font-weight: 600;
}

/* ===========================================
   页脚样式
   =========================================== */
.footer {
    background: linear-gradient(135deg, #7c23e6 0%, #57123d 100%);
    color: #fff;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000" fill-opacity="0.1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin: 0 10px;
}

.footer-logo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #a8c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(168, 198, 255, 0.3);
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin: 10px 0px;
    text-align: center;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    justify-content: space-evenly;
    align-items: center;
}

.footer-column {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #4dabf7, #339af0);
    transition: width 0.3s ease;
}

.footer-column:hover h3::after {
    width: 100%;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-column ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #4dabf7;
    transition: width 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-column ul li a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-evenly;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::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: left 0.5s ease;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4dabf7;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 10px;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.05;
    border-radius: 50%;
    background: #fff;
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 70%;
    animation-delay: -10s;
}

.subscribe-form {
    margin-top: 15px;
}

.subscribe-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    color: #fff;
    width: 200px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.2);
}

.subscribe-form button {
    background: #4dabf7;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #339af0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   动画定义
   =========================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

@keyframes expandLine {
    0%, 100% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
}

/* ===========================================
   响应式设计 - 完整断点系统
   =========================================== */

/* 锚点滚动偏移 */
#section-address, #section-project, #section-school, #section-home {
    scroll-margin-top: 80px;
}

/* 超大屏幕 (1400px+) */
@media (min-width: 1400px) {
    .content {
        max-width: 1400px;
    }
    
    .profile-section {
        max-width: 1400px;
    }
    
    .school-content {
        max-width: 1400px;
    }
}

/* 大屏幕 (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-section {
        gap: 40px;
    }
}

/* 平板 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .profile-content {
        order: 2;
    }
    
    .profile-image {
        order: 1;
    }
}

/* 手机 (768px以下) */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 20px;
        text-align: center;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul li {
        margin-left: 0;
        margin: 0 8px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .intro h1 {
        font-size: 28px;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        max-width: 100%;
    }

    /* 个人简介区域手机版优化 */
    .profile-section {
        flex-direction: column;
        gap: 30px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .profile-content {
        order: 2;
        text-align: center;
    }

    .profile-image {
        order: 1;
    }

    .image-container {
        width: 250px;
        height: 350px;
    }

    .image-container-school {
        width: 100%;
        height: 200px;
    }

    .profile-content h1 {
        font-size: 32px;
    }

    .profile-content h2 {
        font-size: 18px;
    }

    .profile-content p {
        font-size: 16px;
        text-align: left;
    }

    .school-content {
        margin: 40px auto;
        padding: 0 20px;
    }

    .school-content h1 {
        font-size: 28px;
        text-align: center;
    }

    .school-content p {
        font-size: 16px;
        text-align: left;
    }

    /* 主内容区域手机版优化 */
    .content {
        margin: 40px auto;
        padding: 0 20px;
    }

    .intro {
        margin-bottom: 40px;
    }

    .intro p {
        font-size: 16px;
    }

    .project-info h3 {
        font-size: 16px;
    }

    .project-info p {
        font-size: 13px;
        line-height: 1.5;
    }

    .project-img {
        height: 150px;
    }

    /* 页脚手机版优化 */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo {
        text-align: center;
        margin: 0;
    }

    .footer-logo p {
        font-size: 14px;
        text-align: center;
    }

    .footer-columns {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .footer-column {
        text-align: center;
        min-width: auto;
    }

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-column ul li a {
        font-size: 14px;
    }

    .social-icons {
        justify-content: center;
        gap: 15px;
    }

    .social-icons a {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }

    .footer-links {
        justify-content: center;
        margin-bottom: 15px;
    }

    .copyright {
        font-size: 12px;
        text-align: center;
    }

    .subscribe-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-form input {
        width: 100%;
        margin-right: 0;
    }
}

/* 更小屏幕的优化 (480px以下) */
@media (max-width: 480px) {
    header {
        padding: 8px 10px;
    }

    .logo {
        font-size: 18px;
    }

    nav ul li a {
        font-size: 11px;
        padding: 4px 6px;
    }

    .profile-content h1 {
        font-size: 28px;
    }

    .profile-content h2 {
        font-size: 16px;
    }

    .profile-content p {
        font-size: 15px;
    }

    .school-content h1 {
        font-size: 24px;
    }

    .school-content p {
        font-size: 15px;
    }

    .intro h1 {
        font-size: 24px;
    }

    .intro p {
        font-size: 15px;
    }

    .project-info h3 {
        font-size: 15px;
    }

    .project-info p {
        font-size: 12px;
    }

    .image-container {
        width: 200px;
        height: 280px;
    }

    .image-container-school {
        height: 150px;
    }

    .footer-logo p {
        font-size: 13px;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column ul li a {
        font-size: 13px;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .copyright {
        font-size: 11px;
    }
}
