/*
Theme Name: NeoRex Demo
Theme URI: https://neorexpickleball.com
Author: NeoRex
Description: 演示用 WordPress + WooCommerce 自定义主题，品牌色参考电光蓝 #00B4D8 与炭黑 #2D2D2D。仅供效果预览，非正式建站方案。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: neorex-demo
*/

:root {
  --color-primary: #00B4D8;
  --color-dark: #2D2D2D;
  --color-bg: #FFFFFF;
  --color-muted: #6B6B6B;
  --color-border: #E5E5E5;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement bar */
.announcement-bar {
  background: #1A1A1A;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 0;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding a {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  text-decoration: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 14px;
}
.header-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
}

/* Hero */
.hero {
  background: var(--color-dark);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
}
.hero p {
  font-size: 18px;
  color: #cfcfcf;
  max-width: 560px;
  margin: 0 auto 32px;
}
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary:hover { text-decoration: none; opacity: 0.9; }

/* Sections */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 32px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.product-card .product-thumb { aspect-ratio: 1/1; background: #f5f5f5; }
.product-card .product-info { padding: 16px; }
.product-card .price {
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 4px;
}

/* Content */
.content-area { padding: 64px 0; }
.entry-title { font-size: 32px; }
.entry-meta { color: var(--color-muted); font-size: 14px; margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: #1A1A1A;
  color: #cfcfcf;
  padding: 56px 0 24px;
  margin-top: 64px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-columns h4 { color: #fff; font-size: 14px; }
.footer-columns ul { list-style: none; margin: 0; padding: 0; }
.footer-columns a { color: #cfcfcf; font-size: 14px; line-height: 2; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
  color: #888;
}

/* WooCommerce tweaks */
.woocommerce ul.products li.product .price { color: var(--color-primary); }
.woocommerce a.button, .woocommerce button.button {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 4px !important;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
}
