码桶

发现社区成员的开源项目

CMR /

爱情苦海

公开
main
爱情苦海/css/themes/chinese.css
chinese.css4.3 KB
/* ========================================
   Theme: Elegant Chinese — 水墨丹青
   Ink wash painting, calligraphy, warm parchment
   ======================================== */

:root {
  --bg-primary: #f5efe0;
  --bg-hero-start: #f5efe0;
  --bg-hero-end: #ede4d3;
  --bg-interlude-start: #ede4d3;
  --bg-interlude-mid: #e0d5c0;
  --bg-interlude-end: #d5c8af;
  --text-primary: #2c2416;
  --text-body: #4a3c28;
  --accent: #c23a2b;
  --accent-light: #8b7355;
  --border: #d4c5a9;
  --font-cn: 'Ma Shan Zheng', 'Noto Serif SC', serif;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #f5efe0 0%, #ede4d3 100%);
}

/* Ink wash decorative corners */
.hero::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  border: 1px solid #c2b59b;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.hero::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 48px;
  right: 48px;
  bottom: 48px;
  border: 0.5px solid #c2b59b;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
}

.hero-title {
  letter-spacing: 0.25em;
  font-weight: 700;
}

.hero-subtitle-en {
  letter-spacing: 0.2em;
  font-style: italic;
}

/* --- Waves with ink wash feel --- */
.wave-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 180'%3E%3Cpath fill='%232c241615' d='M0,80 C250,140 350,0 500,80 C650,160 750,20 1000,80 L1000,180 L0,180Z'/%3E%3C/svg%3E");
}

.wave-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 180'%3E%3Cpath fill='%238b735518' d='M0,100 C200,40 400,140 600,80 C800,20 900,120 1000,100 L1000,180 L0,180Z'/%3E%3C/svg%3E");
}

.wave-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 180'%3E%3Cpath fill='%232c241610' d='M0,120 C150,60 350,150 500,100 C650,50 850,130 1000,120 L1000,180 L0,180Z'/%3E%3C/svg%3E");
}

/* --- Interlude --- */
.interlude {
  background: linear-gradient(180deg, #ede4d3 0%, #e0d5c0 50%, #d5c8af 100%);
}

.ocean-wave-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath fill='%232c241618' d='M0,100 C300,20 400,160 600,100 C800,40 900,150 1200,100 L1200,200 L0,200Z'/%3E%3C/svg%3E");
}

.ocean-wave-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath fill='%232c241620' d='M0,120 C200,60 500,160 700,100 C900,40 1100,140 1200,120 L1200,200 L0,200Z'/%3E%3C/svg%3E");
}

.ocean-wave-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath fill='%238b735520' d='M0,80 C150,140 350,40 600,100 C850,160 950,60 1200,80 L1200,200 L0,200Z'/%3E%3C/svg%3E");
}

.ocean-wave-4 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath fill='%232c241625' d='M0,130 C250,70 450,160 650,110 C850,60 1050,150 1200,130 L1200,200 L0,200Z'/%3E%3C/svg%3E");
}

/* --- Poetry section: ink-brush decorations --- */
.poem-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c23a2b, transparent);
  opacity: 0.6;
}

.poem-line:nth-child(odd) {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
}

/* --- Quote calligraphy style --- */
.quote-text {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
}

/* --- About title --- */
.about-title {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.about-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #c23a2b;
  margin: 16px auto 0;
  opacity: 0.6;
}

/* --- Footer with seal style --- */
.footer-name {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  color: #c23a2b;
  font-size: 1.3rem;
}

/* --- Theme Switcher --- */
.theme-toggle {
  background: #f5efe0;
  border-color: #d4c5a9;
}

.theme-panel {
  background: #f5efe0;
  border-color: #d4c5a9;
}

.theme-option:hover,
.theme-option.active {
  background: #ede4d3;
}

@media (max-width: 768px) {
  .hero::before {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .hero::after {
    top: 26px;
    left: 26px;
    right: 26px;
    bottom: 26px;
  }
}