/* ========================================
   成都高端品茶网 - 黑金风格全局样式
   网站: cdpc99.cn
   ======================================== */

/* === 基础重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Microsoft YaHei','PingFang SC','Helvetica Neue',Arial,sans-serif;
  background: #0a0a0a;
  color: #e8d5a3;
  line-height: 1.8;
  overflow-x: hidden;
}
a { text-decoration: none; color: #d4a843; transition: all 0.3s ease; }
a:hover { color: #f5d77a; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c9a84c, #f5d77a, #c9a84c); border-radius: 4px; }

/* === 金色渐变文字 === */
.gold-text {
  background: linear-gradient(135deg, #c9a84c 0%, #f5d77a 25%, #fce184 50%, #f5d77a 75%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === 顶部导航 === */
.top-bar {
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding: 8px 0;
  font-size: 13px;
  color: #999;
}
.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #d4a843; margin-left: 15px; }
.top-bar a:hover { color: #f5d77a; }

/* === Header === */
header {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(201,168,76,0.4);
  box-shadow: 0 2px 20px rgba(201,168,76,0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img { height: 55px; }
nav ul { display: flex; gap: 5px; }
nav ul li a {
  display: block;
  padding: 10px 20px;
  color: #e8d5a3;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
}
nav ul li a:hover,
nav ul li a.active {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(245,215,122,0.15));
  color: #f5d77a;
}
nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5d77a, transparent);
}

/* === 移动端菜单按钮 === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  width: 28px;
  height: 2px;
  background: #d4a843;
  transition: 0.3s;
}

/* === Banner/Hero === */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
  overflow: hidden;
  padding: 60px 20px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(201,168,76,0.3);
}
.hero p {
  font-size: 18px;
  color: #b8a070;
  margin-bottom: 30px;
  line-height: 1.8;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #c9a84c, #f5d77a);
  color: #0a0a0a;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201,168,76,0.5);
  color: #0a0a0a;
}

/* === 装饰分割线 === */
.section-divider {
  text-align: center;
  padding: 10px 0;
}
.section-divider::before {
  content: '◆ ───── ◆ ───── ◆';
  color: rgba(201,168,76,0.3);
  font-size: 12px;
  letter-spacing: 5px;
}

/* === 通用区块 === */
.section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.section-title p {
  color: #888;
  font-size: 14px;
}
.section-title .title-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a843, transparent);
  margin: 15px auto 0;
}

/* === 特色服务卡片 === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.05), transparent);
  transition: left 0.6s;
}
.service-card:hover::before { left: 100%; }
.service-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(201,168,76,0.1);
}
.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #f5d77a;
}
.service-card p {
  color: #999;
  font-size: 14px;
  line-height: 1.8;
}

/* === 文章列表 === */
.article-list { display: flex; flex-direction: column; gap: 25px; }
.article-card {
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s;
  display: flex;
  gap: 25px;
}
.article-card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 5px 25px rgba(201,168,76,0.08);
}
.article-thumb {
  width: 220px;
  min-height: 160px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(145deg, #1a1a1a, #222);
  border: 1px solid rgba(201,168,76,0.1);
}
.article-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.article-info h3 a { color: #f5d77a; }
.article-info h3 a:hover { color: #fce184; }
.article-info .meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}
.article-info .meta span { margin-right: 15px; }
.article-info p {
  color: #999;
  font-size: 14px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === 文章详情 === */
.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-detail .detail-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 40px;
}
.article-detail .detail-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
  line-height: 1.4;
}
.article-detail .detail-meta {
  font-size: 13px;
  color: #666;
}
.article-detail .detail-meta span { margin: 0 10px; }
.article-detail .detail-content {
  font-size: 16px;
  line-height: 2;
  color: #ccc;
}
.article-detail .detail-content p {
  margin-bottom: 20px;
  text-indent: 2em;
}
.article-detail .detail-content h2 {
  font-size: 22px;
  color: #f5d77a;
  margin: 35px 0 20px;
  padding-left: 15px;
  border-left: 3px solid #d4a843;
}
.article-detail .detail-content h3 {
  font-size: 18px;
  color: #e8d5a3;
  margin: 25px 0 15px;
}
.article-detail .detail-content img {
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid rgba(201,168,76,0.1);
}
.article-detail .detail-content blockquote {
  border-left: 3px solid #d4a843;
  padding: 15px 20px;
  margin: 25px 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 8px 8px 0;
  color: #b8a070;
  font-style: italic;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.article-nav a {
  padding: 10px 20px;
  background: rgba(201,168,76,0.1);
  border-radius: 6px;
  font-size: 14px;
  color: #d4a843;
}
.article-nav a:hover { background: rgba(201,168,76,0.2); }

/* === 关于我们页面 === */
.about-section {
  padding: 60px 0;
}
.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.about-content h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}
.about-content p {
  font-size: 16px;
  line-height: 2;
  color: #ccc;
  margin-bottom: 20px;
  text-indent: 2em;
}
.about-content h2 {
  font-size: 24px;
  color: #f5d77a;
  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 3px solid #d4a843;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.about-feature {
  text-align: center;
  padding: 30px 15px;
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 10px;
}
.about-feature .num {
  font-size: 36px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}
.about-feature span:last-child {
  font-size: 14px;
  color: #999;
}

/* === 联系我们页面 === */
.contact-section {
  padding: 60px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-3px);
}
.contact-card .icon { font-size: 40px; margin-bottom: 15px; display: block; }
.contact-card h3 { font-size: 18px; color: #f5d77a; margin-bottom: 10px; }
.contact-card p { color: #999; font-size: 14px; margin-bottom: 15px; }
.contact-card .btn {
  display: inline-block;
  padding: 8px 25px;
  background: linear-gradient(135deg, #c9a84c, #f5d77a);
  color: #0a0a0a;
  font-weight: bold;
  font-size: 14px;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.contact-card .btn:hover {
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
  color: #0a0a0a;
}

/* === 悬浮按钮 === */
.float-buttons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  position: relative;
  border: 2px solid;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}
.float-btn .tooltip {
  position: absolute;
  right: 68px;
  background: rgba(0,0,0,0.9);
  color: #f5d77a;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid rgba(201,168,76,0.3);
}
.float-btn:hover .tooltip { opacity: 1; }

.float-btn.phone {
  background: linear-gradient(135deg, #1a6b1a, #2ecc71);
  border-color: #2ecc71;
  animation: pulse-green 2s infinite;
}
.float-btn.qq {
  background: linear-gradient(135deg, #1a4a8a, #4a9eff);
  border-color: #4a9eff;
}
.float-btn.wechat {
  background: linear-gradient(135deg, #0a6b0a, #07c160);
  border-color: #07c160;
}

@keyframes pulse-green {
  0% { box-shadow: 0 4px 15px rgba(46,204,113,0.3); }
  50% { box-shadow: 0 4px 25px rgba(46,204,113,0.6); }
  100% { box-shadow: 0 4px 15px rgba(46,204,113,0.3); }
}

/* === 底部悬浮栏（移动端） === */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  border-top: 1px solid rgba(201,168,76,0.3);
  display: none;
  z-index: 9999;
  padding: 8px 0;
}
.bottom-bar-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}
.bottom-bar a {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: #e8d5a3;
  font-size: 13px;
  transition: all 0.3s;
}
.bottom-bar a:hover { color: #f5d77a; }
.bottom-bar a .b-icon { font-size: 22px; display: block; margin-bottom: 3px; }

/* === 复制成功提示 === */
.copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9);
  color: #f5d77a;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  z-index: 99999;
  border: 1px solid rgba(201,168,76,0.4);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.copy-toast.show { opacity: 1; }

/* === Footer === */
footer {
  background: linear-gradient(180deg, #0d0d0d, #050505);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 50px 0 30px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 16px;
  color: #f5d77a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-col p { color: #888; font-size: 14px; line-height: 1.8; }
.footer-col a { color: #999; font-size: 14px; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #f5d77a; }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(201,168,76,0.1);
  color: #555;
  font-size: 13px;
}

/* === 面包屑导航 === */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  font-size: 14px;
  color: #666;
}
.breadcrumb a { color: #d4a843; }
.breadcrumb span { margin: 0 5px; color: #444; }

/* === 栏目列表页头部 === */
.category-header {
  background: linear-gradient(180deg, rgba(201,168,76,0.05), transparent);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.category-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.category-header p {
  color: #888;
  font-size: 14px;
}

/* === 分页 === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a {
  padding: 8px 16px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  color: #d4a843;
  font-size: 14px;
}
.pagination a:hover,
.pagination a.active {
  background: rgba(201,168,76,0.2);
  border-color: #d4a843;
}

/* === 响应式 === */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; min-height: 120px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    flex-direction: column;
    padding: 15px;
    border-bottom: 2px solid rgba(201,168,76,0.3);
  }
  nav ul.show { display: flex; }
  nav ul li a { padding: 12px 15px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .bottom-bar { display: block; }
  body { padding-bottom: 70px; }
  .float-buttons { bottom: 80px; right: 10px; }
  .float-btn { width: 48px; height: 48px; font-size: 20px; }
  .section-title h2 { font-size: 24px; }
}

/* === 动画 === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* === 茶叶装饰元素 === */
.tea-decoration {
  text-align: center;
  padding: 20px 0;
  font-size: 30px;
  opacity: 0.3;
}

/* === 侧边栏 === */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.sidebar {
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 10px;
  padding: 25px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.sidebar h3 {
  font-size: 18px;
  color: #f5d77a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.sidebar ul li {
  margin-bottom: 10px;
}
.sidebar ul li a {
  color: #999;
  font-size: 14px;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}
.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: rgba(201,168,76,0.1);
  color: #f5d77a;
}
.sidebar-contact {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.sidebar-contact .sc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #999;
  font-size: 14px;
}
.sidebar-contact .sc-item span:first-child { font-size: 20px; }

@media (max-width: 992px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* === 热门排行 === */
.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hot-list li .rank {
  width: 24px;
  height: 24px;
  background: rgba(201,168,76,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #d4a843;
  flex-shrink: 0;
}
.hot-list li:nth-child(1) .rank,
.hot-list li:nth-child(2) .rank,
.hot-list li:nth-child(3) .rank {
  background: linear-gradient(135deg, #c9a84c, #f5d77a);
  color: #0a0a0a;
  font-weight: bold;
}
.hot-list li a {
  color: #999;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-list li a:hover { color: #f5d77a; }