/* ============================================
   琉璃神社 - 全站样式表
   jiuqing-tech.com
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #f8f9fa; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #e74c8b; text-decoration: none; transition: color .3s; }
a:hover { color: #c2185b; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }
.logo-text {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #e74c8b, #ff6b9d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub { font-size: .75rem; color: rgba(255,255,255,.6); display: block; }

/* === Navigation === */
.main-nav ul {
  display: flex; gap: 0; flex-wrap: wrap;
}
.main-nav li a {
  display: block; padding: 12px 18px; color: rgba(255,255,255,.85);
  font-size: .95rem; font-weight: 500; transition: all .3s;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.main-nav li a:hover, .main-nav li a.active {
  color: #fff; border-bottom-color: #e74c8b;
  background: rgba(231,76,139,.1);
}

/* === Search Bar === */
.search-bar {
  background: rgba(255,255,255,.05); padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex; max-width: 600px; width: 100%;
  border-radius: 25px; overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.2);
}
.search-form input {
  flex: 1; padding: 10px 20px; border: none; outline: none;
  font-size: .95rem; background: #fff; color: #333;
}
.search-form button {
  padding: 10px 25px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  color: #fff; font-size: .95rem; font-weight: 600;
  transition: opacity .3s;
}
.search-form button:hover { opacity: .9; }

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 0; font-size: .85rem; color: #888;
}
.breadcrumb a { color: #e74c8b; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* === Hero Section === */
.hero {
  position: relative; overflow: hidden;
  height: 480px; background: #1a1a2e;
}
.hero-slider { position: relative; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.65);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #fff; z-index: 2;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 2.8rem; font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 1.15rem; max-width: 600px;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
  margin-bottom: 25px; opacity: .9;
}
.hero-btn {
  display: inline-block; padding: 12px 35px;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  color: #fff; border-radius: 30px; font-weight: 600;
  font-size: 1rem; transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 15px rgba(231,76,139,.4);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(231,76,139,.6);
  color: #fff;
}
.hero-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 10px; z-index: 3;
}
.hero-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: background .3s;
}
.hero-dots span.active { background: #e74c8b; }

/* === Section Common === */
.section {
  padding: 60px 0;
}
.section-alt { background: #fff; }
.section-title {
  text-align: center; margin-bottom: 45px;
}
.section-title h2 {
  font-size: 2rem; font-weight: 700; color: #1a1a2e;
  margin-bottom: 10px; position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%); width: 60px; height: 3px;
  background: linear-gradient(90deg, #e74c8b, #ff6b9d);
  border-radius: 2px;
}
.section-title p {
  color: #777; font-size: 1rem; margin-top: 15px;
}

/* === Video Card === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.video-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); opacity: 0;
  transition: opacity .3s;
}
.video-card:hover .video-play { opacity: 1; }
.video-play-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(231,76,139,.9); display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(231,76,139,.5);
  transition: transform .3s;
}
.video-card:hover .video-play-btn { transform: scale(1.1); }
.video-play-btn::after {
  content: ''; width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: .75rem;
}
.video-info { padding: 15px; }
.video-info h3 {
  font-size: 1rem; font-weight: 600; color: #1a1a2e;
  margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta {
  display: flex; gap: 15px; font-size: .8rem; color: #999;
  flex-wrap: wrap;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: .75rem; background: #fce4ec; color: #e74c8b;
  margin-top: 8px;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.feature-card {
  background: #fff; border-radius: 12px; padding: 30px;
  text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.feature-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.8rem;
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 600; color: #1a1a2e;
  margin-bottom: 10px;
}
.feature-card p { font-size: .9rem; color: #777; line-height: 1.6; }

/* === Expert Section === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.expert-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  text-align: center; transition: transform .3s;
}
.expert-card:hover { transform: translateY(-5px); }
.expert-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 25px auto 15px; overflow: hidden;
  border: 3px solid #fce4ec;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 1.1rem; font-weight: 600; color: #1a1a2e; }
.expert-card .role { font-size: .85rem; color: #e74c8b; margin: 5px 0; }
.expert-card .desc { font-size: .85rem; color: #777; padding: 0 20px; margin-bottom: 15px; }
.expert-links { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: center; }
.expert-links a {
  padding: 6px 16px; border-radius: 20px; font-size: .8rem;
  border: 1px solid #e74c8b; color: #e74c8b; transition: all .3s;
}
.expert-links a:hover { background: #e74c8b; color: #fff; }

/* === Partner Wall === */
.partner-wall {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 30px; align-items: center;
}
.partner-wall .partner-item {
  width: 150px; height: 80px; background: #fff;
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 15px; font-size: .9rem; color: #555; font-weight: 600;
  transition: transform .3s;
}
.partner-wall .partner-item:hover { transform: scale(1.05); }

/* === Reviews === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}
.review-card {
  background: #fff; border-radius: 12px; padding: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.review-stars { color: #ffc107; font-size: 1rem; margin-bottom: 10px; }
.review-card p { font-size: .9rem; color: #555; line-height: 1.7; margin-bottom: 15px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem;
}
.review-author-info .name { font-size: .9rem; font-weight: 600; color: #1a1a2e; }
.review-author-info .date { font-size: .75rem; color: #999; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 10px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); overflow: hidden;
}
.faq-question {
  padding: 18px 25px; font-weight: 600; color: #1a1a2e;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; transition: background .3s;
}
.faq-question:hover { background: #fce4ec; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: #e74c8b; transition: transform .3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 25px; color: #666; font-size: .9rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.contact-card {
  background: #fff; border-radius: 12px; padding: 25px;
  text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.contact-card h4 { font-size: 1.05rem; color: #1a1a2e; margin-bottom: 10px; }
.contact-card p { font-size: .9rem; color: #666; line-height: 1.6; }
.contact-card .qrcode { width: 140px; height: 140px; margin: 15px auto; }

/* === Footer === */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255,255,255,.7); padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 {
  color: #fff; font-size: 1.05rem; margin-bottom: 15px;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: #e74c8b;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .3s; }
.footer-col ul li a:hover { color: #e74c8b; }
.footer-qr { display: flex; gap: 20px; margin-top: 10px; }
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 5px; }
.footer-qr .qr-item span { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-bottom {
  text-align: center; padding: 20px 0;
  font-size: .85rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* === Social Share === */
.social-share {
  display: flex; gap: 12px; justify-content: center;
  padding: 20px 0; flex-wrap: wrap;
}
.social-share a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 25px;
  font-size: .85rem; color: #fff; transition: opacity .3s;
}
.social-share a:hover { opacity: .85; color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00a1d6; }

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  padding: 50px 0; text-align: center; color: #fff;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.page-header p { font-size: 1rem; opacity: .8; }

/* === Tabs === */
.tab-nav {
  display: flex; gap: 0; border-bottom: 2px solid #eee;
  margin-bottom: 30px; overflow-x: auto;
}
.tab-nav a {
  padding: 12px 25px; color: #777; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .3s; white-space: nowrap;
}
.tab-nav a:hover, .tab-nav a.active {
  color: #e74c8b; border-bottom-color: #e74c8b;
}

/* === Tool Card === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}
.tool-card {
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
  transition: transform .3s;
  border-left: 4px solid #e74c8b;
}
.tool-card:hover { transform: translateY(-3px); }
.tool-card h3 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 10px; }
.tool-card p { font-size: .9rem; color: #666; margin-bottom: 15px; }
.tool-card .btn-sm {
  display: inline-block; padding: 6px 20px;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  color: #fff; border-radius: 20px; font-size: .85rem;
  transition: opacity .3s;
}
.tool-card .btn-sm:hover { opacity: .85; color: #fff; }

/* === Community === */
.topic-list { max-width: 800px; margin: 0 auto; }
.topic-item {
  background: #fff; border-radius: 10px; padding: 20px;
  margin-bottom: 15px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex; gap: 15px; align-items: flex-start;
  transition: transform .3s;
}
.topic-item:hover { transform: translateX(5px); }
.topic-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; flex-shrink: 0;
}
.topic-content h4 { font-size: 1rem; color: #1a1a2e; margin-bottom: 5px; }
.topic-content p { font-size: .85rem; color: #777; margin-bottom: 8px; }
.topic-stats { display: flex; gap: 15px; font-size: .8rem; color: #999; }

/* === Live Preview === */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.live-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  position: relative;
}
.live-badge {
  position: absolute; top: 12px; left: 12px;
  background: #e74c8b; color: #fff; padding: 3px 12px;
  border-radius: 15px; font-size: .75rem; font-weight: 600;
  z-index: 2; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.live-card .video-thumb { padding-top: 56.25%; }

/* === Responsive === */
@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: 10px; }
  .main-nav ul { justify-content: center; }
  .main-nav li a { padding: 10px 12px; font-size: .85rem; }
  .hero { height: 350px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: .95rem; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.6rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .main-nav ul { flex-wrap: nowrap; overflow-x: auto; }
  .hero { height: 280px; }
  .hero-content h1 { font-size: 1.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-pink { color: #e74c8b; }
.bg-gradient {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

/* === Loading Animation === */
.lazy-load {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.lazy-load.loaded { opacity: 1; transform: translateY(0); }

/* === Mobile Menu Toggle === */
.menu-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav li a { text-align: center; border-bottom: 1px solid rgba(255,255,255,.05); }
}

/* === Video Quality Badge === */
.video-quality {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  color: #fff; padding: 2px 8px; border-radius: 4px;
  font-size: .7rem; font-weight: 700;
}

/* === Tool Stats === */
.tool-stats {
  font-size: .8rem; color: #e74c8b; margin-bottom: 12px;
  font-weight: 500;
}

/* === Footer Legal Links === */
.footer-legal {
  text-align: center; padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}
.footer-legal a {
  color: rgba(255,255,255,.5); margin: 0 5px;
  transition: color .3s;
}
.footer-legal a:hover { color: #e74c8b; }

/* === Btn-sm for non-tool-card === */
.btn-sm {
  display: inline-block; padding: 6px 20px;
  background: linear-gradient(135deg, #e74c8b, #ff6b9d);
  color: #fff; border-radius: 20px; font-size: .85rem;
  transition: opacity .3s;
}
.btn-sm:hover { opacity: .85; color: #fff; }
