/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
header {
    position: static;
    margin-bottom: 0;
}

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

.logo a {
    font-family:  'Special Elite', monospace; /* 原来的字体风格 */
    font-size: 2.2rem;
    text-decoration: none;
    color: #000;
    font-weight: normal;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: 'Special Elite', monospace;
    text-decoration: none;
    color: #000;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

/* 下拉菜单样式 - 匹配你的HTML结构 */
.dropdown {
    position: relative;
    padding-bottom: 3px;
}



.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0.2rem 0;
    min-width: 150px;
    z-index: 1000;
    list-style: none;
}


.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: #000;
    padding: 0.3rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: normal;
    border-bottom: none;
    transition: none;
}


.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: transparent;
    color: #000;
}


/* 显示下拉菜单 */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* 主页样式 */
#hero {
    height: 90vh;
    width: 100vw;
    background-image: url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 4rem;
}

.hero-text h1 {
    font-family: 'Special Elite', monospace;
    font-style: italic;
    font-size: 3.5rem;
    color: #fff;
    font-weight: normal;
}

/* 纯CSS瀑布流 */
.photo-gallery {
    padding: 5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    column-count: 3;
    column-gap: 4rem;
    column-fill: balance;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 4rem;
    break-inside: avoid;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 2rem;
    }
    
    .gallery-grid img {
        margin-bottom: 2rem;
    }
    
    /* 移动端下拉菜单调整 */
    .dropdown-menu {
        min-width: 150px;
        left: 0;
        transform: none;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}
/* About页面样式 */
.about-page {
    min-height: 100vh;
    padding: 70px 0;
    background-color: #fff;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.about-image {
    position: relative;
    width: 100%;
    padding: 3rem;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.about-image img:hover {
    filter: grayscale(0);
}

/* Contact页面样式 */
.contact-page {
    min-height: 100vh;
    padding: 100px 0;
    background-color: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info h1 {
    font-family: 'Bodoni Moda', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 2rem;
}

.contact-info .email,
.contact-info .location {
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: #000;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #666;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.contact-form form {
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-family: 'Times New Roman', serif;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.form-group label span {
    color: #666;
    font-size: 0.9rem;
}

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.sub-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

input, textarea {
    font-family: 'Times New Roman', serif;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        padding-right: 0;
    }

    .about-image {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

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

    .about-container,
    .contact-container {
        padding: 0 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        padding: 1rem;
    }

    .name-fields {
        grid-template-columns: 1fr;
    }

    .contact-info h1 {
        font-size: 2.5rem;
    }
}

.service-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: Arial, sans-serif;
}

.quote-text {
    font-family: 'Your-Script-Font', cursive;
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card {
    background-color: #f9f5f0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pricing-card h2 {
    color: #8B4513;
    margin-top: 2rem;
}

.pricing-card ul {
    list-style-type: none;
    padding-left: 0;
}

.pricing-card li {
    margin: 0.5rem 0;
}

.booking-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.copyright-notice {
    font-style: italic;
    margin-top: 2rem;
    font-size: 0.9em;
}

.signature {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
}

/* Services页面样式 */
.services-page {
    padding: 100px 0;
    padding-top: 10rem;
    background-color: #fff;
}

.services-hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 4rem;
}

.services-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.services-second-image {
    width: 100%;
    height: 600px;
    margin: 4rem 0;
    overflow: hidden;
}

.services-second-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item {
    margin-bottom: 4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.service-item h2 {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.duration, .price {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.service-details {
    list-style: none;
    margin: 2rem 0;
}

.service-details li {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.booking-info {
    margin-top: 4rem;
}

.booking-info h3 {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: normal;
    margin: 2rem 0 1rem;
}

.booking-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.booking-info li {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services-hero {
        height: 60vh;
    }

    .services-second-image {
        height: 400px;
    }

    .services-container {
        padding: 0 2rem;
    }

    .service-item h2 {
        font-size: 1.75rem;
    }

    .service-details li,
    .booking-info li {
        font-size: 1rem;
    }
}

/* Booking Process Styles */
.booking-page {
    padding: 120px 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 0;
}

.booking-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: normal;
    font-style: italic;
    color: #000;
    line-height: 1.2;
}

.booking-progress {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 4rem;
    position: relative;
    padding: 0 2rem;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 120px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-step.active .step-number {
    background: #000;
    color: #fff;
    border-color: #000;
}

.progress-step p {
    font-size: 0.9rem;
    color: #666;
}

.booking-notice {
    text-align: right;
    margin-bottom: 3rem;
    font-style: italic;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.service-card h2 {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    line-height: 1.4;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.service-features em {
    font-style: normal;
    font-weight: bold;
}

.service-features .contact-info {
    font-style: italic;
    color: #666;
}

.service-note {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.continue-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}
.back-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}
.continue-btn:hover {
    background: #333;
}

.back-btn:hover {
    background: #333;
}

.product-card {
    margin: 0 auto;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .booking-page {
        padding: 100px 2rem 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .booking-progress {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .booking-progress::before {
        display: none;
    }

    .booking-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
}

/* Rules Page Styles */
.rules-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 0;
}

.rules-image {
    height: calc(100vh - 60px);
    padding: 1rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-image img {
    width: 85%;
    height: 95%;
    object-fit: cover;
    object-position: center;
    border: 1px solid #ddd;
    margin: 0 auto;
}

.rules-content {
    padding: 2rem 4rem;
    background: #fff;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* 调整文字大小和间距以适应一屏 */
.rules-section {
    margin-bottom: 2rem;
}

.rules-section h2 {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #000;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    color: #333;
}

.rules-actions {
    margin-top: auto; /* 将按钮推到底部 */
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-image {
        height: 70vh;
        padding: 0.5rem;
    }

    .rules-content {
        height: auto;
        padding: 2rem;
    }
}

/* Journal Page Styles */
.journal-page {
    padding: 100px 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 3rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 4rem;
}

.journal-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}

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

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

.journal-item h2 {
    font-family: 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.2;
    margin: 1rem 0;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    color: #000;
    font-family: 'Times New Roman', serif;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .journal-page {
        padding: 120px 4rem;
    }
    
    .journal-grid {
        gap: 4rem;
    }

    .journal-item h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .journal-page {
        padding: 100px 2rem;
        padding-top: 4rem;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Article Page Styles */
.article-page {
    padding: 120px 0;
    background: #fff;
    padding-top: 0;
}

.article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-meta {
    margin-bottom: 2rem;
    color: #666;
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 300;
    margin-top: 3rem;
}

.article-meta time {
    margin-right: 1rem;
}

.article-author {
    font-style: italic;
}

.article-content h1 {
    font-family: 'Bodoni Moda', serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    margin-top: 2rem;
}

.article-text {
    font-family: 
        'Times New Roman',       /* 英文首选 */
        'Noto Serif SC',         /* 中文备用 */
        'Songti SC',             /* macOS 中文字体 */
        'SimSun',                /* Windows 中文宋体 */
        serif;
    font-size: 1.15rem; /* 中文偏大一点会更舒适 */
    line-height: 1.75;
    color: #000;
    letter-spacing: 0.02em;
    font-weight: 300;
}

.article-text p {
    margin-bottom: 1.5rem;
}


.article-gallery {
    margin: 3rem auto;
    max-width: 500px;
    padding: 0 2rem;
}

.slideshow-container {
    position: relative;
    background: #fff;
}

.slides {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    cursor: pointer;
}

.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slides img.active {
    opacity: 1;
    z-index: 1;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-content {
        padding: 0 1.5rem;
    }

    .article-content h1 {
        font-size: 3rem;
    }

    .article-text {
        font-size: 1.1rem;
    }

    .article-page {
        padding-top: 0;       /* ✅ 移除顶部空白 */
        padding-bottom: 4rem;
    }

    .article-gallery {
        margin: 4rem -1.5rem;
    }

    .article-meta {
        margin-top: 4rem;
    }
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding: 0 2rem 2rem;
}

.prev-article {
    text-align: left;
}

.next-article {
    text-align: right;
}

.prev-article,
.next-article {
    flex: 1;
}

.prev-article-label,
.next-article-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-family: 'Times New Roman', serif;
}

.prev-article-title,
.next-article-title {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.prev-article-title {
    justify-content: flex-start;
}

.next-article-title {
    justify-content: flex-end;
}

.prev-article-title:hover,
.next-article-title:hover {
    opacity: 0.7;
}

.prev-article-arrow {
    order: -1;
}

.next-article-arrow {
    order: 2;
}

@media (max-width: 768px) {
    .article-navigation {
        margin: 4rem 2rem 2rem;
    }
}

/* 为 Lisbon 页面的图片容器单独设置横向比例 */
.slides.lisbon-slides {
    aspect-ratio: 3/2;  /* 横向比例 */
}

/* 保持其他页面的原有竖向比例 */
.slides {
    position: relative;
    aspect-ratio: 2/3;  /* 竖向比例 */
    overflow: hidden;
    cursor: pointer;
}

.article-gallery.lisbon-gallery {
    max-width: 600px;
}

/* Project Page Styles */
.project-page {
    padding: 120px 3rem;  /* 减小左右内边距，从 4rem 改为 2rem */
    max-width: 1800px;    /* 增加最大宽度，从 1500px 改为 1800px */
    margin: 0 auto;
    padding-top: 4rem;
}

/* 前三张固定布局 */
.project-grid-fixed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 3rem;  /* 增加内边距，与瀑布流保持一致 */
    margin-bottom: 0;  /* 移除底部边距，因为瀑布流的第一个项目会有 margin-bottom */
}

.project-grid-fixed .project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 前15张的grid布局 */
.project-grid-ordered {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 1.5rem;
    margin-bottom: 0;
}

.project-grid-ordered .project-item.portrait {
    grid-row: span 2;  /* 竖向图片占据两行 */
}

.project-grid-ordered .project-item.landscape {
    grid-column: span 2;  /* 横向图片占据两列 */
}

.project-grid-ordered .project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 瀑布流布局 */
.project-grid-masonry {
    columns: 3;
    column-gap: 3rem;
    padding: 3rem;
    width: 100%;
    grid-column: 1 / -1;
}

.project-grid-masonry .project-item {
    break-inside: avoid;
    margin-bottom: 3rem;
}

/* 共用的样式 */
.project-item {
    position: relative;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* 响应式布局 */
@media (max-width: 1200px) {
    .project-grid-fixed {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-grid-masonry {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .project-page {
        padding: 100px 2rem;
        padding-top: 4rem;
    }

    .project-grid-fixed {
        grid-template-columns: 1fr;
        padding: 1.5rem;  /* 移动端减小内边距 */
    }
    .project-grid-masonry {
        padding: 1.5rem;  /* 移动端保持一致的内边距 */
    }
    .project-grid-ordered .project-item.landscape {
        grid-column: auto;
    }
    .project-grid-ordered .project-item.portrait {
        grid-row: auto;
    }
    .project-item {
        margin-bottom: 2rem;
    }
    .project-grid-masonry .project-item {
        margin-bottom: 2rem;
    }
}

/* Couple页面引言样式 */
.project-intro {
    max-width: none;
    width: 100%;
    margin: 0 0 6rem; /* 添加顶部内边距 */
}

/* 标题区域的背景图片样式 */
.project-intro h1 {
    font-family: 'Times New Roman', serif;
    font-size: 3.5rem;
    font-style: italic;
    font-weight: normal;
    line-height: 1.2;
    text-align: left;
    color: white;
    padding: 15rem 0;  /* 移除左右内边距，只保留上下内边距 */
    margin: 0;
    margin-bottom: 4rem;
    background-image: url('./project/couple-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 标题文字容器 */
.project-intro h1 span {
    display: block;
    padding: 0 3rem;  /* 将文字的左右内边距移到内部span元素 */
    max-width: 1800px;
    margin: 0 auto;
}

/* 段落样式调整 */
.project-intro p {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    max-width: 800px;
    padding: 0 3rem;
    margin-left: auto;
    margin-right: auto;
}

/* 第一段特殊样式 */
.project-intro p:first-of-type {
    margin-top: 4rem;  /* 为第一段添加顶部间距 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .project-intro h1 {
        font-size: 2.5rem;
        padding: 15rem 1.5rem;  /* 移动端也相应增加内边距，从 10rem 改为 15rem */
    }
    
    .project-intro p {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
}

/* Projects Overview Page Styles */
.projects-overview {
    padding: 120px 4rem;
    max-width: 1800px;
    margin: 0 auto;
    padding-top: 6rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.project-card {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/4;  /* 设置固定的图片比例 */
}

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

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

/* 响应式调整 */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-overview {
        padding: 100px 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 产品详情页面样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 三列布局 */
    gap: 2rem;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.product-item {
    aspect-ratio: 1/1;  /* 保持正方形比例 */
    overflow: hidden;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 响应式调整 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);  /* 平板端改为两列 */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;  /* 手机端改为单列 */
        gap: 1rem;
        padding: 1rem;
    }
}

/* 图片查看器样式 */
.viewer-body {
    margin: 0;
    padding: 0;
    background: #fff;  /* 改为白色背景 */
    overflow: hidden;
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;  /* 改为白色背景 */
}

.viewer-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* 按钮样式 */
.fullscreen-btn,
.close-btn,
.nav-btn {
    position: fixed;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.fullscreen-btn svg,
.close-btn svg,
.nav-btn svg {
    fill: #000;  /* 改为黑色图标 */
    opacity: 0.7;
    transition: opacity 0.3s;
}

.fullscreen-btn:hover svg,
.close-btn:hover svg,
.nav-btn:hover svg {
    opacity: 1;
}

.fullscreen-btn {
    top: 20px;
    left: 20px;
}

.close-btn {
    top: 20px;
    right: 20px;
}

.prev-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .fullscreen-btn,
    .close-btn,
    .nav-btn {
        padding: 0.8rem;
    }

    .fullscreen-btn svg,
    .close-btn svg,
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* 合作伙伴区域样式 */
.partners-section {
    background-color: #fff; /* 白色背景 */
    padding: 80px 0;
    text-align: center;
  }
  
  .partners-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: #111;
  }
  
  .partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px; /* 两个 logo 之间的距离 */
    flex-wrap: wrap;
  }
  
  .partner-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .partner-logo:hover {
    transform: scale(1.05);
  }
  
  .fan-logo {
    height: 300px; /* Fan logo 放大一点 */
  }
  
  

/* 响应式布局 */
@media (max-width: 768px) {
    .partners-grid {
        justify-content: center;
        gap: 15px; /* 减少移动端的间距 */
    }
    
    .partner-logo {
        padding: 5px 8px; /* 减少移动端的内边距 */
    }
    
    .partner-logo img {
        height: 30px;
    }
}
  

/* Rule 页面样式 */
.rule-page {
    padding: 100px 0;
    padding-top: 10rem; /* 增加顶部内边距，与 services 页面保持一致 */
    background-color: #fff;
}

@media (max-width: 768px) {
    .nav-links {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }
  
    .nav-links a {
      font-size: 1.1rem;
    }
  }

  @media (max-width: 768px) {
    #hero {
      align-items: flex-start;
      justify-content: center;
      padding: 3rem 1.5rem;
      text-align: center;
    }
  
    .hero-text h1 {
      font-size: 2rem;
      padding-top: 12rem;
    }
  }

  
  @media (max-width: 768px) {
    .service-card h2 {
      font-size: 1.3rem;
    }
  
    .service-note {
      font-size: 0.95rem;
    }
  
    .price {
      font-size: 1.5rem;
    }
  }

  @media (max-width: 768px) {
    button {
      padding: 0.8rem 2rem;
      font-size: 0.9rem;
    }
  
    footer p {
      font-size: 0.9rem;
      padding: 1.5rem 0;
    }
  }
  
  @media (max-width: 768px) {
    .partners-logos {
      flex-direction: column;
      gap: 40px;
    }
  
    .partner-logo {
      height: 100px;
    }
  
    .fan-logo {
      height: 160px;
    }
  }
  
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
  
    .logo a {
      font-size: 1.8rem; /* 缩小 logo 字体 */
      text-align: center;
    }
  
    .nav-links {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      padding-top: 0.5rem;
    }
  
    .nav-links a {
      font-size: 1rem;
    }
  }

  /* 汉堡按钮样式 */
/* 汉堡按钮样式 */
.menu-toggle {
    display: none;
  }
  
  
@media (max-width: 768px) {
    .menu-toggle {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 36px;
      height: 36px;
      cursor: pointer;
      background: transparent;
      border: none;
    }
  
    .triangle {
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-top: 10px solid black;
    }
  }

  
  /* 移动端导航样式 */
  @media (max-width: 768px) {
    
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 3.2rem 2rem;
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        height: 60px; /* ✅ 添加这一行 */
      }

    .logo {
        padding-top: -0.2rem;
        margin-left: 0.1rem;
      }
    .logo a {
        font-size: 1.8rem;           /* 适度调整字体大小 */
        line-height: 0.8;              /* 避免字体本身上下撑开 */
        display: flex;
        align-items: center;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;  /* 垂直居中 */
        align-items: center;      /* 水平居中 */
        gap: 6px;
        cursor: pointer;
        height: 100%;
        margin-left: auto;        /* 推到右侧 */
      }
      
  
    .nav-links {
      position: absolute;
      top: 80px;
      right: 0;
      background: white;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      padding: 2rem;
      width: 100%;
      display: none; /* 默认隐藏 */
      z-index: 999;
    }
  
    .nav-links.active {
      display: flex; /* 切换显示 */
    }
  
    nav {
      position: relative;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    
    }
    

    /*两列瀑布流*/
    @media (max-width: 768px) {
        .homepage-grid {
          column-count: 2;
          column-gap: 0.8rem;  /* ✅ 缩小列间距 */
          padding: 0rem 0.8rem;   /* ✅ 缩小左右内边距，照片更宽 */
        }
      }

     /*移除手机端的白边*/
    @media (max-width: 768px) {
    .photo-gallery {
        padding: 3rem 0.5rem; /* ✅ 减少左右边距（从 4rem → 0.5rem） */
    }

    .homepage-grid {
        column-count: 2;
        column-gap: 0.6rem;
        padding: 0; /* ✅ 不需要额外 padding */
    }

    .homepage-grid img {
        margin-bottom: 1rem;
        border-radius: 3px;
    }
    }

    @media (max-width: 768px) {
        .project-grid-masonry {
          columns: 2;
          column-gap: 0.6rem;      /* ✅ 减小列间距 */
          padding: 0 0.5rem;       /* ✅ 减小左右边距 */
        }
      
        .project-grid-masonry .project-item {
          margin-bottom: 1.2rem;   /* ✅ 保持上下清爽 */
        }
      }
      
 /*三组系列*/
      @media (max-width: 768px) {
        .project-grid-ordered {
          grid-template-columns: repeat(2, 1fr); /* ✅ 两列 */
          gap: 0.8rem;                           /* ✅ 减少间距 */
          padding: 1rem;                         /* ✅ 减少内边距 */
        }
      
        .project-grid-ordered .project-item img {
          width: 100%;
          height: auto;
        }
      }
      
      
      @media (max-width: 768px) {
        .article-navigation {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          gap: 1rem;
          padding: 2rem 1.5rem;
        }
      
        .prev-article,
        .next-article {
          width: 48%;
          text-align: center;
        }
      
        .prev-article-title,
        .next-article-title {
          display: flex;
          flex-direction: column;
          align-items: center;
          font-family: 'Bodoni Moda', serif;
          font-size: 1.3rem;
          line-height: 1.4;
          text-decoration: none;
          color: black;
          gap: 0.5rem;
        }
      
        .prev-article-arrow,
        .next-article-arrow {
          font-size: 2rem;
        }
      
        /* 隐藏 label 文本 */
        .prev-article-label,
        .next-article-label {
          display: none;
        }
      }
      
      
    
      
 
  
 
  
  

 
  