/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* 导航栏样式（与首页保持一致） */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 77, 64, 1), rgba(0, 121, 107, 0.3));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0;
  transition: top 0.4s ease-in-out;
}

.navbar-hidden {
  top: -150px;
}

.navbar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 100px;
}

.logo img {
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-cn {
  font-size: 20px;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

.logo-text-en {
  font-size: 12px;
  color: white;
  line-height: 1.2;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.search-container {
  position: relative;
}

.search-container input {
  padding: 8px 30px 8px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.8);
}

.search-container .fa-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  cursor: pointer;
}

.nav-menu li a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  transition: color 0.3s;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #D4A574;
}

/* 下拉菜单样式，保持与首页一致 */
.nav-item-with-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 77, 64, 0.95);
  list-style: none;
  padding: 12px 0;
  border-radius: 8px;
  min-width: 140px;
  width: max-content;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  margin-top: 8px;
}

.nav-item-with-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  padding: 0;
}

.nav-dropdown li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background-color: rgba(212, 165, 116, 0.2);
  color: #D4A574;
  padding-left: 28px;
}

.user-center {
  background-color: #8B4513;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  font-size: 16px;
  flex-shrink: 0;
}

.user-center:hover {
  background-color: #654321;
}

/* 固定悬浮窗样式 */
.fixed-floats {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.float-window {
    width: 80px;
    height: 80px;
    background-color: #8B4513;
    color: white;
    text-align: center;
    line-height: 80px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 14px;
}

.float-window:hover {
    background-color: #654321;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 内容区域样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color, #8B4513);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--beige, #E8D4C0);
    text-align: left;
}

.page-title::after {
    content: none !important;
}

/* 服务卡片 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    color: #8B4513;
    margin-bottom: 12px;
    font-size: 20px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 联系表单部分 */
.contact-section {
    background-color: white;
    padding: 40px 60px;
    border-radius: 0;
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
}

.contact-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color, #8B4513);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--beige, #E8D4C0);
    text-align: left;
}

.contact-form {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #654321;
}

/* 常见问题部分 */
.faq-section {
    background-color: white;
    padding: 40px 60px;
    border-radius: 0;
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color, #8B4513);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--beige, #E8D4C0);
    text-align: left;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: #8B4513;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* 联系信息部分 */
.contact-info-section {
    background-color: white;
    padding: 40px 60px;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
}

.contact-info-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color, #8B4513);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--beige, #E8D4C0);
    text-align: left;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.contact-info-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.contact-info-card h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h3 i {
    font-size: 20px;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info-card p strong {
    color: #333;
}

 .contact-brochure-section {
    background-color: white;
    padding: 40px 60px;
    border-radius: 0;
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
 }

 .contact-brochure-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
 }

 .contact-brochure-copy h3 {
    color: #8B4513;
    font-size: 20px;
    margin-bottom: 12px;
 }

 .contact-brochure-copy p {
    color: #666;
    line-height: 1.8;
 }

 .contact-brochure-tip {
    margin-top: 14px;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(139, 69, 19, 0.08);
    color: #8B4513;
    font-size: 13px;
 }

 .contact-brochure-book {
    display: flex;
    justify-content: center;
 }

 .contact-book-wrapper {
    position: relative;
    width: min(900px, 100%);
    padding: 34px 22px 22px;
    border-radius: 14px;
    background-image: url('../图片/联系我们/翻书/images/wood.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
 }

 .contact-book-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
    pointer-events: none;
 }

 .contact-book-wrapper > * {
    position: relative;
    z-index: 1;
 }

 #contact_next_page_button,
 #contact_prev_page_button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    cursor: pointer;
    display: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
 }

 #contact_prev_page_button { left: 10px; }
 #contact_next_page_button { right: 10px; }

 #contact_next_page_button::before,
 #contact_prev_page_button::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #8B4513;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
 }

 #contact_prev_page_button::before { content: "\f053"; }
 #contact_next_page_button::before { content: "\f054"; }

 #contact_next_page_button:hover,
 #contact_prev_page_button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.04);
 }

 #contact-book {
    margin: 0 auto;
 }

 #contact-book .b-load > div {
    padding: 18px 22px;
 }

 #contact-book h4 {
    margin: 10px 0 8px;
    font-size: 18px;
    color: #8B4513;
 }

 #contact-book p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
 }

 #contact-book img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    display: block;
    margin: 8px auto 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
 }

 .contact-flipbook-section .booklet .b-shadow-f {
    background-image: url('../图片/联系我们/翻书/booklet/images/shadow-top-forward.png');
 }

 .contact-flipbook-section .booklet .b-shadow-b {
    background-image: url('../图片/联系我们/翻书/booklet/images/shadow-top-back.png');
 }

 .contact-flipbook-section .booklet .b-p0,
 .contact-flipbook-section .booklet .b-p3 {
    background-image: url('../图片/联系我们/翻书/booklet/images/shadow.png');
 }

 .contact-flipbook-section .booklet .b-arrow-next div {
    background-image: url('../图片/联系我们/翻书/booklet/images/arrow-next.png');
 }

 .contact-flipbook-section .booklet .b-arrow-prev div {
    background-image: url('../图片/联系我们/翻书/booklet/images/arrow-prev.png');
 }

 .contact-flipbook-section {
    margin: 30px auto 60px;
 }

 .contact-book-wrapper--full {
    width: min(1100px, 100%);
    margin: 0 auto;
 }

 .flipbook-page {
    height: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.92);
 }

 .flipbook-page--cover,
 .flipbook-page--end {
    background: rgba(255, 255, 255, 0.08);
 }

 .flipbook-cover {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
 }

 .flipbook-brand {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.92;
 }

 .flipbook-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
 }

 .flipbook-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.95;
 }

 .flipbook-meta {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    margin: 0 auto;
 }

 .flipbook-page-head h2 {
    margin: 0 0 6px;
    color: #8B4513;
    font-size: 20px;
 }

 .flipbook-page-head p {
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
 }

 .contact-form--flipbook .form-group {
    margin-bottom: 14px;
 }

 .contact-form--flipbook textarea {
    min-height: 90px;
 }

 .flipbook-faq .faq-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
 }

 .flipbook-faq .faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
 }

 .flipbook-figure {
    margin-top: 14px;
    text-align: center;
 }

 .flipbook-figure img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
 }

 .contact-info-grid--flipbook {
    grid-template-columns: 1fr;
    gap: 14px;
 }

 .contact-info-grid--flipbook .contact-info-card {
    padding: 16px;
 }

/* 页脚样式 */
.footer {
    background: linear-gradient(to bottom, rgba(0, 77, 64, 1), rgba(0, 121, 107, 0.3));
    color: white;
    padding: 50px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    min-width: 120px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo img {
    width: 120px;
    height: auto;
    display: block;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #8B4513;
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #8B4513;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #8B4513;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    transition: transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #654321;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-brochure-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        display: none;
        z-index: 999;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-menu li {
        margin-right: 0;
    }
    
    .fixed-floats {
        right: 10px;
    }
    
    .float-window {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 12px;
    }
    
    .container {
        padding: 80px 15px 30px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-section,
    .faq-section,
    .contact-info-section,
    .contact-brochure-section {
        padding: 20px;
    }

    .contact-book-wrapper {
        padding: 20px 12px 14px;
    }

    #contact_next_page_button,
    #contact_prev_page_button {
        width: 40px;
        height: 40px;
    }

    .flipbook-title {
        font-size: 22px;
    }

    .flipbook-page {
        padding: 14px 14px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        justify-content: center;
    }

    .footer-logo {
        width: 100%;
        justify-content: center;
    }
}
