/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');

body {
    font-family: 'Noto Serif SC', serif;
    margin: 0;
    padding: 0;
    background-color: #f9f3e8;
    color: #332211;
    line-height: 1.8;
    scroll-behavior: smooth;
}

/* 头部样式 */
header {
    background-color: #553311;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1001;
    transition: background-color 0.3s ease;
    text-align: center;
}

header:hover {
    background-color: #664422;
    text-align: center;
}

.header-top {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.8s ease both;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    text-align: center;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-align: center;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    transition: color 0.3s ease;
    text-align: center;
}

h1:hover {
    color: #ffd700;
    text-align: center;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.change .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.change .bar:nth-child(2) {
    opacity: 0;
}

.change .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 导航栏样式 */
nav {
    background-color: #664422;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

nav:hover {
    background-color: #775533;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    font-weight: 400;
    display: inline-block;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

/* 英雄区域样式 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 53px; /* 根据导航栏高度调整 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/tea_temple_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: fadeIn 1s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-image {
    display: none;
}

.hero-text {
    color: white;
    text-align: center;
    width: 80%;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h2 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.hero-text h2:hover {
    color: #ffd700;
}

.hero-text p {
    font-size: 1.6em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    transition: color 0.3s ease;
}

.hero-text p:hover {
    color: #ffd700;
}

.hero-button {
    background-color: #ffd700;
    color: #553311;
    padding: 18px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.4em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background-color: #e6c200;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* 内容区域样式 */
.content-section {
    padding: 80px 50px;
    text-align: center;
    animation: fadeIn 1s ease both;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: #553311;
    margin: 15px auto 0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

h2:hover {
    color: #664422;
}

h2:hover::after {
    background-color: #ffd700;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.team-image {
    width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.card {
    width: 350px;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flip .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-front {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.card:hover .card-image {
    filter: brightness(80%);
}

.card-front h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.card-front h3:hover {
    color: #664422;
}

.card-back {
    background-color: #553311;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: 1.1em;
    font-weight: 400;
}

.partnership-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.partnership-card {
    width: 350px;
    background-color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.partner-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.partnership-card:hover .partner-image {
    filter: brightness(80%);
}

.partner-content {
    padding: 20px;
}

.partner-content h3 {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.partner-content h3:hover {
    color: #664422;
}

.partner-content p {
    font-size: 1.1em;
    font-weight: 400;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    width: 350px;
    background-color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 400;
}

/* 页脚样式 */
footer {
    background-color: #553311;
    color: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
  }
  
  .footer-about,
  .footer-links,
  .footer-contact {
    flex: 1;
    min-width: 280px;
    margin: 0 30px;
  }
  
  .footer-about h4,
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.6em;
    margin-bottom: 25px;
    letter-spacing: 2px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
  }
  
  .footer-links ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-links ul li {
    margin-bottom: 15px;
  }
  
  .footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1em;
  }
  
  .footer-links ul li a:hover {
    color: #ffd700;
  }
  
  .footer-contact ul.social-icons {
    list-style-type: none;
    padding: 0;
    display: flex;
  }
  
  .footer-contact ul.social-icons li {
    margin-right: 15px;
  }
  
  .footer-contact ul.social-icons li a img {
    width: 35px;
    height: 35px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  
  .footer-contact ul.social-icons li a img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
  }
  
  .footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #7a5f07;
    font-size: 0.9em;
  }

  button.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffd700;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: background-color 0.3s;
  }