/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #9a8169;
  --secondary-color: #24292e;
  --accent-color: #b88c5d;
  --light-color: #f8f8f8;
  --dark-color: #333;
  --text-color: #4a4a4a;
  --border-color: #e1e1e1;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  will-change: transform;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.underline {
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.language-switcher a {
  color: var(--secondary-color);
  font-weight: 600;
  padding: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.language-switcher a.active {
  color: var(--primary-color);
  font-weight: 700;
}

.language-switcher .divider {
  color: var(--border-color);
  margin: 0 2px;
}

.desktop-nav ul {
  display: flex;
}

.desktop-nav li {
  margin-left: 2rem;
}

/* Updated nav link styles */
.desktop-nav a {
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: color var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
  margin: 3px 0;
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--secondary-color);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav ul {
  text-align: center;
}

.mobile-nav li {
  margin: 1.5rem 0;
}

.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.mobile-nav a.active {
  color: var(--primary-color);
}

.mobile-nav a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 70px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text,
.about-image {
  flex: 1;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  height: 400px;
  overflow: hidden;
}

.about-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wine Section */
.wine-section {
  background-color: #f5f5f5;
}

.wine-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.wine-text,
.wine-image {
  flex: 1;
}

.wine-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.wine-image {
  height: 400px;
  overflow: hidden;
}

.wine-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wine-gallery,
.furniture-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.gallery-item img {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.overlay h3 {
  color: white;
  margin-bottom: 0;
  font-size: 1.3rem;
}

/* Furniture Section */
.furniture-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.furniture-text,
.furniture-image {
  flex: 1;
}

.furniture-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.furniture-image {
  height: 400px;
  overflow: hidden;
}

.furniture-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Advantages Section */
.advantages-section {
  background-color: #f5f5f5;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage-item {
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.advantage-item h3 {
  margin-bottom: 1rem;
}

.advantage-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-form {
  display: none;
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background-color: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-color);
  outline: none;
  transition: var(--transition);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 1rem;
  color: #999;
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-bottom-color: var(--primary-color);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -20px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.form-group input:not(:focus):not(:placeholder-shown):invalid ~ label {
  color: red;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: center; /* 改为居中对齐 */
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  gap: 2rem; /* 添加间距 */
}

/* Footer logo styles removed */

.footer-info {
  text-align: center;
  margin: 0 auto; /* 添加水平居中 */
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Tab transition animations */
.tabs {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .about-content,
  .wine-content,
  .furniture-content {
    flex-direction: column;
    gap: 2rem;
  }

  .wine-content {
    flex-direction: column-reverse;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .wine-gallery,
  .furniture-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .wine-gallery,
  .furniture-gallery {
    grid-template-columns: 1fr;
  }
}
