/* CSS Variables - Purple color scheme from logo */
:root {
  --primary-purple: #9B7EBD;
  --light-purple: #B69FD0;
  --dark-purple: #7B5FA0;
  --bg: #ddd7e3;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --text-dark: #2C2C2C;
  --text-gray: #666666;
  --text-light: #e2d8e7;
  --border-light: #E0E0E0;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1rem;
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-purple);
}

p {
  margin-bottom: 1rem;
}

/* Content Area Lists */
article ul,
article ol,
.content-section ul,
.content-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

article li,
.content-section li {
  margin-bottom: 0.5rem;
}

article ul {
  list-style-type: disc;
}

article ol {
  list-style-type: decimal;
}

/* Header and Navigation */
header {
  background-color: var(--primary-purple);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
  background-color: var(--primary-purple);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--white);
}

.logo-text p {
  font-size: 0.9rem;
  color: var(--white);
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-purple);
  cursor: pointer;
}

/* Hero Slideshow Section */
.hero-slideshow {
  position: relative;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(155, 126, 189, 0.1), rgba(155, 126, 189, 0.1)), 
                    url("/images/slide01.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding: 2rem;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.slide h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out;
}

.slide p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
}

.slide .cta-button {
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Navigation Arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: rgba(223, 223, 223, 0.5);
  border: none;
  font-size: 5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.slide-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.slide-arrow.prev {
  left: 1rem;
}

.slide-arrow.next {
  right: 1rem;
}

/* Slide Indicators */
.slide-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background-color: var(--white);
  width: 30px;
  border-radius: 6px;
}

.cta-button {
  display: inline-block;
  background-color: var(--off-white);
  color: var(--primary-purple);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  color: var(--dark-purple);
}

/* Main Content Container */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  color: var(--primary-purple);
  border-bottom: 3px solid var(--primary-purple);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(155, 126, 189, 0.15);
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--primary-purple);
}

/* News Grid Container - 卡片式布局 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;  /* 確保沒有列表樣式 */
}

/* Individual News Card */
.news-card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: block;  /* 確保是 block */
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(155, 126, 189, 0.15);
  border-color: var(--light-purple);
}

.news-card-content {
  padding: 1.5rem;
}

/* News Card Meta (Date) */
.news-card-meta {
  margin-bottom: 0.75rem;
}

.news-card-date {
  font-size: 0.875rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* News Card Title */
.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: var(--primary-purple);
}

/* News Card Summary */
.news-card-summary {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* News Card Link */
.news-card-link {
  color: var(--primary-purple);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.news-card-link:hover {
  color: var(--dark-purple);
}

/* Old News List Styles - 保留給其他頁面使用 */
.news-list {
  list-style: none;
}

.news-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.news-item h3 a {
  color: var(--text-dark);
}

.news-item h3 a:hover {
  color: var(--primary-purple);
}

.news-item p {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.read-more {
  color: var(--primary-purple);
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--primary-purple);
  color: var(--off-white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

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

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
}

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

.submit-button {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: var(--dark-purple);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav li {
    border-top: 1px solid var(--border-light);
  }
  
  nav a {
    display: block;
    padding: 1rem 0;
  }
  
  /* Slideshow mobile styles */
  .slideshow-container {
    height: 400px;
  }
  
  .slide h1 {
    font-size: 2rem;
  }
  
  .slide p {
    font-size: 1rem;
  }
  
  .slide-arrow {
    font-size: 2rem;
    padding: 0.3rem 0.7rem;
  }
  
  .slide-arrow.prev {
    left: 0.5rem;
  }
  
  .slide-arrow.next {
    right: 0.5rem;
  }
  
  .slide-indicators {
    bottom: 1rem;
  }
  
  /* News Cards Mobile */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-card-content {
    padding: 1.25rem;
  }
  
  .news-card-title {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Member Profile Container */
.member-profile {
  max-width: 900px;
  margin: 0 auto;
}

/* Member Header Section */
.member-header {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Member Photo */
.member-photo-container {
  width: 250px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(155, 126, 189, 0.15);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-purple) 0%, var(--primary-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--white);
}


/* Member Info */
.member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-name {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 1.3rem;
  color: var(--primary-purple);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-voice-part {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.member-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.meta-item {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* Member Content */
.member-content {
  margin-bottom: 3rem;
}

.member-bio {
  line-height: 1.8;
  font-size: 1.05rem;
}

.member-bio p {
  margin-bottom: 1.2rem;
}

/* Experience List */
.experience-list {
  list-style: none;
  padding: 0;
}

.experience-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-purple);
  margin-bottom: 1rem;
  position: relative;
}

.experience-list li::before {
  content: "▪";
  color: var(--primary-purple);
  position: absolute;
  left: 0.5rem;
  font-size: 1.2rem;
}

/* Specialties Grid */
.specialties-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.specialty-tag {
  display: inline-block;
  background: var(--light-purple);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Favorite Artists */
.favorite-artists {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-gray);
}

/* Social Links in Member Page */
.social-links-member {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--primary-purple);
  border-radius: 8px;
  color: var(--primary-purple);
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(155, 126, 189, 0.2);
}

/* Back to Members Button */
.back-to-members {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* Responsive Design for Member Profile */
@media (max-width: 768px) {
  .member-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .member-photo-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  
  .member-photo-placeholder {
    font-size: 4rem;
  }
  
  .member-name {
    font-size: 2rem;
  }
  
  .member-role {
    font-size: 1.1rem;
  }
  
  .member-meta {
    align-items: center;
  }
  
  .social-links-member {
    flex-direction: column;
  }
  
  .social-link {
    width: 100%;
    justify-content: center;
  }
}