/*
Theme Name: EastVinyl
Theme URI: https://eastvinyl.top
Description: EastVinyl 東方黑膠 — 明亮纸感双语主题。宣纸米白 + 墨色 + 印章红，面向美国/西方市场的中国台湾、中国大陆与日本黑胶唱片店。配合 Polylang 实现 EN/中文切换。
Author: EastVinyl
Version: 1.0.0
Text Domain: eastvinyl
Tags: e-commerce, custom-colors, translation-ready
WC requires at least: 7.0
WC tested up to: 11.2
Requires at least: 7.0
Requires PHP: 8.0
*/

:root {
  --paper: #faf7f0;
  --paper2: #f3eee2;
  --card: #ffffff;
  --ink: #2b2622;
  --ink-soft: #6f675c;
  --line: #e4dcc9;
  --seal: #c0392b;
  --seal-deep: #96271c;
  --tw: #dce8f5;
  --cn: #d9e8d5;
  --jp: #f5dcdc;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --kai: "STKaiti", "KaiTi", "SimSun", serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ top bar ============ */
.ev-topbar {
  background: var(--ink);
  color: #f3eee2;
  text-align: center;
  padding: 7px 5%;
  font-size: 12px;
  letter-spacing: .08em;
  font-family: var(--sans);
}

/* ============ header ============ */
.ev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(250, 247, 240, .94);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.ev-brand { display: flex; align-items: center; gap: 12px; }
.ev-seal {
  width: 40px; height: 40px;
  background: var(--seal);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  font-family: var(--kai);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28);
  flex: none;
}
.ev-logo { font-size: 20px; letter-spacing: .2em; font-weight: bold; line-height: 1.2; }
.ev-logo .ev-logo-accent { color: var(--seal); }
.ev-logo small {
  display: block;
  font-size: 10px;
  letter-spacing: .52em;
  color: var(--ink-soft);
  font-family: var(--kai);
  font-weight: normal;
}
.ev-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ev-nav .menu { display: flex; align-items: center; gap: 24px; list-style: none; flex-wrap: wrap; }
.ev-nav a {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.ev-nav a:hover { color: var(--seal); }

/* 语言切换 */
.ev-lang { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-family: var(--sans); }
.ev-lang a, .ev-lang span {
  font-size: 12px;
  padding: 5px 11px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.ev-lang .current-lang { background: var(--ink); color: #fff; font-weight: bold; }
.ev-lang a:hover { color: var(--seal); }

/* ============ hero ============ */
.ev-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 5% 64px;
  position: relative;
  overflow: hidden;
}
.ev-hero::after, .ev-hero::before {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
}
.ev-hero::before { right: -90px; top: -90px; width: 380px; height: 380px; }
.ev-hero h1 { font-size: 46px; line-height: 1.18; font-weight: normal; max-width: 560px; }
.ev-hero h1 em { color: var(--seal); font-style: italic; }
.ev-hero p {
  margin: 24px 0 32px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  max-width: 480px;
  font-family: var(--sans);
}
.ev-zh-title {
  font-family: var(--kai);
  writing-mode: vertical-rl;
  letter-spacing: .35em;
  font-size: 26px;
  color: var(--ink-soft);
  border-right: 2px solid var(--seal);
  padding-right: 12px;
  position: absolute;
  right: 7%;
  top: 84px;
  height: 280px;
}
.ev-btn {
  display: inline-block;
  background: var(--seal);
  color: #fff;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: bold;
  font-family: var(--sans);
  border: 1px solid var(--seal);
  cursor: pointer;
}
.ev-btn:hover { background: var(--seal-deep); border-color: var(--seal-deep); }
.ev-btn.ev-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  margin-left: 12px;
}
.ev-btn.ev-btn-ghost:hover { background: var(--ink); color: #fff; }
.ev-turntable { display: flex; justify-content: center; position: relative; }
.ev-obi {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  background: var(--seal);
  color: #fff;
  font-family: var(--kai);
  writing-mode: vertical-rl;
  letter-spacing: .3em;
  padding: 9px 4px;
  font-size: 11px;
  border-radius: 2px;
  z-index: 2;
}

/* ============ trust strip ============ */
.ev-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 16px 5%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .05em;
  font-family: var(--sans);
}
.ev-trust b { color: var(--seal); margin-right: 6px; }

/* ============ sections ============ */
.ev-section { padding: 60px 5%; }
.ev-section-alt { background: var(--paper2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-section h2 {
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 6px;
  padding-left: 14px;
  border-left: 3px solid var(--seal);
  line-height: 1.2;
}
.ev-sub {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
  margin: 10px 0 34px;
  padding-left: 17px;
}

/* ============ product grid ============ */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.ev-record {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.ev-record:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(43, 38, 34, .08); }
.ev-cover {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.ev-cover img { width: 100%; height: 100%; object-fit: cover; }
.ev-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .1em;
  font-family: var(--sans);
  color: var(--ink);
  z-index: 2;
}
.ev-badge-tw { background: var(--tw); }
.ev-badge-cn { background: var(--cn); }
.ev-badge-jp { background: var(--jp); }
.ev-info { padding: 15px 16px 17px; font-family: var(--sans); flex: 1; display: flex; flex-direction: column; }
.ev-info h3 { font-size: 15px; font-family: var(--serif); font-weight: normal; line-height: 1.45; }
.ev-info h3 a:hover { color: var(--seal); }
.ev-meta { color: var(--ink-soft); font-size: 12px; margin: 6px 0 10px; }
.ev-grade {
  display: inline-block;
  font-size: 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 5px;
  letter-spacing: .05em;
}
.ev-price { color: var(--seal); font-size: 16px; font-weight: bold; font-family: var(--serif); margin-top: auto; padding-top: 8px; }
.ev-price del { color: var(--ink-soft); font-size: 12px; font-weight: normal; margin-right: 6px; }
.ev-empty { color: var(--ink-soft); font-family: var(--sans); font-size: 14px; padding: 30px 0; }

/* 唱片封面占位（无图商品） */
.ev-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ============ culture / grading cards ============ */
.ev-culture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.ev-culture-card {
  background: var(--card);
  border-radius: 8px;
  padding: 26px 24px;
  border-top: 3px solid var(--seal);
  box-shadow: 0 1px 4px rgba(43, 38, 34, .05);
}
.ev-culture-card .ev-glyph {
  font-family: var(--kai);
  font-size: 30px;
  color: var(--seal);
  margin-bottom: 8px;
}
.ev-culture-card h4 { font-family: var(--sans); font-size: 14px; margin-bottom: 8px; letter-spacing: .03em; }
.ev-culture-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; font-family: var(--sans); }
.ev-grade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.ev-gcard {
  background: var(--card);
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
}
.ev-gcard h4 { color: var(--seal); font-family: var(--sans); letter-spacing: .1em; margin-bottom: 8px; font-size: 13px; }
.ev-gcard p { color: var(--ink-soft); font-size: 13px; line-height: 1.65; font-family: var(--sans); }

/* ============ footer ============ */
.ev-footer {
  border-top: 1px solid var(--line);
  padding: 42px 5% 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  font-family: var(--sans);
}
.ev-footer a { display: block; margin: 6px 0; }
.ev-footer a:hover { color: var(--seal); }
.ev-footer-col h5 { color: var(--ink); font-size: 13px; margin-bottom: 10px; letter-spacing: .08em; }
.ev-note { text-align: center; color: #a89e8c; font-size: 12px; padding: 0 0 20px; font-family: var(--sans); }

/* ============ WooCommerce 通用适配 ============ */
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--seal);
  font-family: var(--sans);
  background: var(--card);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--seal); }
.woocommerce ul.products li.product .onsale {
  background: var(--seal);
  font-family: var(--sans);
}
.woocommerce ul.products li.product .price { color: var(--seal); font-family: var(--serif); }
.woocommerce ul.products li.product .button {
  background: var(--seal);
  color: #fff;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.woocommerce ul.products li.product .button:hover { background: var(--seal-deep); }
.woocommerce div.product .product_title { font-family: var(--serif); font-weight: normal; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--seal); font-family: var(--serif); }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--seal);
  border-radius: 4px;
  font-family: var(--sans);
  letter-spacing: .1em;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--seal-deep); }
.woocommerce-tabs .tabs a { font-family: var(--sans); }
.woocommerce-cart table.cart img, .woocommerce-checkout img { border: 1px solid var(--line); border-radius: 4px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order {
  font-family: var(--sans);
}
.woocommerce-checkout #order_review_heading, .woocommerce-checkout h3 {
  font-family: var(--serif);
  font-weight: normal;
}
#place_order {
  background: var(--seal) !important;
  font-family: var(--sans);
  letter-spacing: .1em;
}
#place_order:hover { background: var(--seal-deep) !important; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .ev-hero { grid-template-columns: 1fr; }
  .ev-zh-title { display: none; }
  .ev-nav { gap: 14px; }
  .ev-nav .menu { gap: 14px; }
  .ev-hero h1 { font-size: 34px; }
}
