/* China Uptown Group Limited - Main Website CSS */
/* 響應式設計，支援所有設備 */

:root {
  --primary: #2e5984;
  --secondary: #d4b872;
  --light: #f5f1e8;
  --dark: #1a2f42;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #666666;
  --gray-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--secondary);
}

.lang-toggle {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.lang-toggle:hover {
  background: var(--secondary);
  color: var(--white);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(10, 22, 36, 0.0), rgba(10, 22, 36, 0.0)), url("/assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--dark);
  color: var(--secondary);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--light);
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* About Section */
.about-img {
  width: 100%;
  border-radius: 8px;
}

.company-overview {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.mission-text {
  line-height: 1.8;
  color: #555;
}

/* Project Section */
.project-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  user-select: none;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.dots-container {
  text-align: center;
  margin-top: 20px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

.project-description {
  margin-top: 2rem;
  line-height: 1.8;
  color: #555;
}

/* Collapsible */
.collapsible {
  cursor: pointer;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  padding: 1rem;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: 0.3s;
}

.collapsible::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.collapsible:hover {
  background: #ddd;
}

.collapsible.active {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a6b 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(46, 89, 132, 0.3);
}

.collapsible:after {
  content: "\002B";
  color: var(--secondary);
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.collapsible.active:after {
  content: "\2212";
}

.collapsible-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--light);
  border-radius: 0 0 6px 6px;
}

.collapsible-content.active {
  padding: 2rem 1.5rem;
  max-height: 1500px;
}

/* Board Members */
.board-member {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--secondary);
}

.board-member h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.board-member p {
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.board-member .description {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.5rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.director-item {
  background: var(--white);
  padding: 1.8rem 2rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  border: 1px solid #e9ecef;
  border-left: 6px solid #d4b872; /* Thicker golden left border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.director-item::before {
  display: none;
}

.director-item:not(:last-child)::after {
  display: none;
}

.director-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-left-color: #c9a961; /* Darker golden on hover */
}

.director-name {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.director-position {
  color: #666666;
  font-weight: 400;
  margin-bottom: 0;
  font-size: 0.95rem;
}

#executive-directors-list {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

#executive-directors-list::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

#independent-directors-list {
  border-top: none;
  padding-top: 1rem;
  position: relative;
}

#independent-directors-list::before {
  display: none;
}

/* Committee */
.committee-section {
  margin-bottom: 2rem;
}

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

.committee-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Reports */
.report-list {
  margin-top: 1rem;
}

.report-item {
  margin-bottom: 0.8rem;
  padding: 0.3rem 0;
}

.report-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
}

.report-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.report-date {
  color: var(--gray);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* Contact */
.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h4 {
  margin-bottom: 0.5rem;
}

.icon {
  color: var(--secondary);
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-desc {
  color: #ccc;
  margin-bottom: 1rem;
}

.stock-code {
  color: #ccc;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

.disclaimer {
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .slide img {
    height: 250px;
  }

  .prev,
  .next {
    padding: 12px;
    font-size: 16px;
  }

  .logo img {
    height: 40px;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .slide img {
    height: 200px;
  }
}
