/* CSS 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Consolas', 'Cascadia Mono',  'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0D132D;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar__logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar__logo a:hover {
    color: #93c5fd;
}

.navbar__menu {
    display: flex;
}

.navbar__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar__link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar__link:hover,
.navbar__link--active {
    color: #0D132D;
    background: #ffffff;
    font-weight: 600;
}

/* 汉堡菜单样式 */
.navbar__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar__toggle-bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 轮播组件样式 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__slide--active {
    opacity: 1;
}

.carousel__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.carousel__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.carousel__content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    z-index: 1;
}

.carousel__title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.carousel__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.carousel__cta {
    background: #6366f1;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.carousel__cta:hover {
    background: #5855eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* 轮播控制按钮 */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel__btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
    left: 2rem;
}

.carousel__btn--next {
    right: 2rem;
}

.carousel__arrow {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

/* 轮播指示器 */
.carousel__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel__indicator {
    height: 4px;
    width: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.carousel__indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: white;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.carousel__indicator--active {
    width: 60px;
    background: rgba(255, 255, 255, 0.6);
}

.carousel__indicator--active::before {
    width: 100%;
}

/* 通用section样式 */
.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #6366f1;
    margin: 1rem auto;
    border-radius: 2px;
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 作品集样式 */
.portfolio {
    padding: 6rem 0;
    background: #f8fafc;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio__item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio__image-container {
    position: relative;
    overflow: hidden;
}

.portfolio__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio__item:hover .portfolio__image {
    transform: scale(1.1);
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__info {
    text-align: center;
    color: white;
    padding: 1rem;
}

.portfolio__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio__category {
    font-size: 1rem;
    opacity: 0.9;
}

/* 关于我样式 */
.about {
    padding: 6rem 0;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about__image-container {
    text-align: center;
}

.about__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

/* 技能样式 */
.about__skills {
    margin-top: 2rem;
}

.about__skills-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.skill__item {
    margin-bottom: 1.5rem;
}

.skill__name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.skill__bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill__progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
}

/* 联系我样式 */
.contact {
    padding: 6rem 0;
    background: #f8fafc;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.contact__item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact__icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 30px;
}

.contact__text {
    color: #666;
}

/* 社交媒体链接 */
.social__links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social__link:hover {
    background: #5855eb;
    transform: translateY(-3px);
}

/* 表单样式 */
.contact__form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    width: 100%;
    background: #6366f1;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.form__submit:hover {
    background: #5855eb;
}

/* 页脚样式 */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer__text {
    color: #9ca3af;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__image {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.modal__info {
    padding: 2rem;
}

.modal__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.modal__description {
    color: #666;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* 导航栏移动端适配 */
    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #0D132D;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 2rem;
    }

    .navbar__menu--active {
        left: 0;
    }

    .navbar__list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .navbar__link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        color: #e2e8f0;
    }

    .navbar__link:hover,
    .navbar__link--active {
        color: #0D132D;
        background: #ffffff;
        font-weight: 600;
    }

    .navbar__toggle {
        display: flex;
    }

    /* 汉堡菜单动画 */
    .navbar__toggle--active .navbar__toggle-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .navbar__toggle--active .navbar__toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle--active .navbar__toggle-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* 轮播组件移动端适配 */
    .carousel__title {
        font-size: 2rem;
    }

    .carousel__subtitle {
        font-size: 1rem;
    }

    .carousel__cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .carousel__btn {
        width: 50px;
        height: 50px;
    }

    .carousel__btn--prev {
        left: 1rem;
    }

    .carousel__btn--next {
        right: 1rem;
    }

    .carousel__arrow {
        font-size: 1.5rem;
    }

    .carousel__indicators {
        bottom: 1.5rem;
    }

    .carousel__indicator {
        width: 25px;
    }

    .carousel__indicator--active {
        width: 50px;
    }

    /* 作品集网格移动端适配 */
    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 关于我移动端适配 */
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* 联系我移动端适配 */
    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 模态窗口移动端适配 */
    .modal__content {
        max-width: 95%;
        max-height: 85%;
    }

    .modal__info {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .section__title {
        font-size: 2rem;
    }

    .carousel__title {
        font-size: 1.8rem;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about__image {
        max-width: 300px;
    }
}

/* 平板端适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__content {
        gap: 3rem;
    }

    .contact__content {
        gap: 3rem;
    }
}

/* 新页面样式 */

/* 页面头部通用样式 */
.page-header {
    /* 使用本地图片作为背景，若图片缺失则回退到紫色渐变 */
    background: url('../images/guanyu/shang.png') center/cover no-repeat, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 70px;
}

.page-header__title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #0D132D; /* 更深的蓝色，便于在浅色/白色背景上阅读 */
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.page-header__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 作品集页面样式 */
.portfolio-page {
    background: #f8fafc;
}

.portfolio-filter {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab--active {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
}

.portfolio-showcase {
    padding: 4rem 0;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-card__image-container {
    position: relative;
    overflow: hidden;
}

.portfolio-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.05);
}

.portfolio-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__btn {
    background: white;
    color: #6366f1;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-card__content {
    padding: 1.5rem;
}

.portfolio-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.portfolio-card__category {
    color: #6366f1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.portfolio-card__description {
    color: #666;
    line-height: 1.6;
}

.portfolio-stats {
    background: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* 关于我页面样式 */
.about-page {
    background: white;
}

.about-intro {
    padding: 4rem 0;
}

.about-intro__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-intro__image-container {
    position: relative;
}

.about-intro__image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-intro__image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    z-index: -1;
}

.about-intro__title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.about-intro__subtitle {
    color: #6366f1;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-intro__description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-intro__highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #6366f1;
}

.highlight-label {
    color: #666;
    font-size: 0.9rem;
}

/* 时间线样式 */
.education-section,
.experience-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #6366f1;
}

.timeline-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-institution {
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

/* 经验卡片 */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
}

.experience-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-company {
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-achievements {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    color: #666;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.experience-achievements li::before {
    content: '•';
    color: #6366f1;
    position: absolute;
    left: 0;
}

/* 技能部分 */
.skills-section {
    padding: 4rem 0;
    background: white;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.skills-category__title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6366f1;
}

/* 奖项部分 */
.awards-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.award-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: translateY(-3px);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.award-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.award-year {
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.award-description {
    color: #666;
    font-size: 0.9rem;
}

/* 设计理念部分 */
.philosophy-section {
    padding: 4rem 0;
    background: white;
}

.philosophy-quote {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
    font-style: italic;
    margin: 2rem 0 3rem;
    padding: 2rem;
    border-left: 4px solid #6366f1;
    background: #f8fafc;
}

.philosophy-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-item {
    text-align: center;
    padding: 2rem;
}

.principle-title {
    color: #6366f1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.principle-description {
    color: #666;
    line-height: 1.6;
}

/* 联系我页面样式 */
.contact-page {
    background: #f8fafc;
}

.contact-cards {
    padding: 4rem 0;
    background: white;
}

.contact-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
    background: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.contact-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card__title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-card__content {
    color: #6366f1;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card__description {
    color: #666;
    font-size: 0.9rem;
}

/* 服务项目 */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 固定为两列（2x2） */
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 强制 2x2 布局：在窄屏改为单列 */
@media screen and (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-price {
    color: #6366f1;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 联系表单 */
.contact-form-section {
    padding: 4rem 0;
    background: white;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-form-subtitle {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-process {
    margin-bottom: 2rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.process-number {
    width: 30px;
    height: 30px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.process-content h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.process-content p {
    color: #666;
    font-size: 0.9rem;
}

.contact-guarantee h4 {
    color: #333;
    margin-bottom: 1rem;
}

.contact-guarantee ul {
    list-style: none;
    padding: 0;
}

.contact-guarantee li {
    color: #666;
    padding: 0.25rem 0;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    background: #6366f1;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.form-submit:hover {
    background: #5855eb;
}

/* FAQ部分 */
.faq-section {
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    color: #333;
    margin: 0;
}

.faq-toggle {
    color: #6366f1;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item--active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item--active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 社交媒体部分 */
.social-media-section {
    padding: 4rem 0;
    background: white;
}

.social-links-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link-large:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
    background: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.social-link-large .social-icon {
    font-size: 2.5rem;
}

.social-info h3 {
    color: #333;
    margin-bottom: 0.25rem;
}

.social-info p {
    color: #666;
    margin: 0;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header__title {
        font-size: 2rem;
    }
    
    .about-intro__content,
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .about-intro__highlights {
        justify-content: center;
        gap: 1rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        left: 7px;
    }
}

/* 作品详情页面样式 */
.portfolio-detail-page {
    padding-top: 70px;
}

.portfolio-images {
    padding: 3rem 0;
    background: #f8f9fa;
}

.images-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
}

.gallery-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.portfolio-detail-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.portfolio-detail-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .portfolio-images {
        padding: 2rem 0;
    }
    
    .images-gallery {
        gap: 1.5rem;
    }
    
    .portfolio-detail-image {
        max-width: 100%;
        border-radius: 4px;
    }
}

@media screen and (max-width: 480px) {
    .images-gallery {
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}