/* 動態頁面樣式 - 現代化設計 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: #fdeff3;
  color: #432c4d;
  line-height: 1.6;
  min-height: 100vh;
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff5f8;
  border-radius: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Header */
header {
  background: #fff5f8;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

header h1 {
  font-size: 24px;
  font-weight: bold;
  color: #432c4d;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #5a3a60;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #693a6d;
}

.btn-primary {
  background: #693a6d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.btn-primary:hover {
  background: #5a2f5e;
}

.btn-secondary {
  background: transparent;
  color: #693a6d;
  padding: 12px 24px;
  border: 2px solid #693a6d;
  border-radius: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #693a6d;
  color: white;
}

/* 主要內容區域 */
.main-content {
  background: white;
  display: flex;
  gap: 30px;
  padding: 40px;
}

.trend-main {
  flex: 2;
}

.sidebar {
  flex: 1;
  max-width: 400px;
}

/* 頁面標題 */
.page-title {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background: #fff5f8;
  border-radius: 16px;
}

.page-title h2 {
  font-size: 28px;
  color: #432c4d;
  margin-bottom: 12px;
}

.page-title p {
  color: #8b6c86;
  font-size: 16px;
}

/* 動態卡片 */
.box.trendmain {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  transition: all 0.3s;
}

.box.trendmain:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.box.trendmain dl {
  margin: 0;
}

.box.trendmain dt {
  padding: 24px 24px 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.box.trendmain dt a {
  text-decoration: none;
  color: inherit;
}

.box.trendmain dt span {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7e2ef, #e8d5e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b6c86;
  font-size: 12px;
  overflow: hidden;
}

.box.trendmain dt span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.box.trendmain dd {
  padding: 16px 24px 24px 24px;
}

.box.trendmain h2 {
  font-size: 18px;
  font-weight: bold;
  color: #432c4d;
  margin-bottom: 8px;
}

.box.trendmain h3 {
  font-size: 14px;
  color: #8b6c86;
  margin-bottom: 16px;
}

.box.trendmain h1 {
  font-size: 16px;
  color: #5a3a60;
  line-height: 1.6;
  margin-bottom: 16px;
}

.box.trendmain p {
  margin-bottom: 16px;
}

.box.trendmain p span {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #f7e2ef;
  margin: 4px;
  overflow: hidden;
}

.box.trendmain p span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 點讚和評論 */
.agree {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0e6f0;
  color: #8b6c86;
  font-size: 14px;
}

.agree span {
  flex: 1;
}

.agree i {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s;
}

.agree i:hover {
  background: #f7e2ef;
  color: #693a6d;
}

.agree i.ed {
  color: #693a6d;
  background: #f7e2ef;
}

/* 評論列表 */
.agree + ul {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0e6f0;
}

.agree + ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff5f8;
  border-radius: 12px;
}

.agree + ul li h5 {
  font-size: 14px;
  color: #693a6d;
  margin-bottom: 4px;
}

.agree + ul li span {
  font-size: 14px;
  color: #5a3a60;
  line-height: 1.4;
}

/* 側邊欄 */
.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #432c4d;
  margin-bottom: 20px;
  text-align: center;
}

/* 搜尋表單 */
.search-section {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  color: #5a3a60;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-select,
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8d5e8;
  border-radius: 12px;
  font-size: 14px;
  color: #432c4d;
  background: white;
  transition: all 0.3s;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #693a6d;
  box-shadow: 0 0 0 3px rgba(105, 58, 109, 0.1);
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #5a3a60;
}

.range-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-group .form-select {
  flex: 1;
}

.range-group span {
  color: #8b6c86;
  font-weight: bold;
}

.search-btn {
  width: 100%;
  background: #693a6d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  margin-top: 16px;
}

.search-btn:hover {
  background: #5a2f5e;
  transform: translateY(-2px);
}

/* 空狀態 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #8b6c86;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #fff5f8;
  padding: 40px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  gap: 40px;
}

.footer-section h5 {
  color: #693a6d;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-section p {
  color: #8b6c86;
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-info {
  text-align: center;
}

.phone {
  color: #693a6d;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8d5e8;
  color: #a67aa6;
  font-size: 12px;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .container {
    margin: 20px;
    border-radius: 16px;
  }
  
  .main-content {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  
  .box.trendmain dt {
    flex-direction: column;
    text-align: center;
  }
  
  .agree {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

/* 覆蓋原有樣式 */
.navbox {
  display: none !important;
}

/* 分頁樣式 */
.zeaipagebox {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pagebox a,
.pagebox span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  text-decoration: none;
  color: #5a3a60;
  background: #f7e2ef;
  transition: all 0.3s;
}

.pagebox a:hover,
.pagebox span.ed {
  background: #693a6d;
  color: white;
} 