/* ============================================================
   think-cell 中文网站 · 公共样式 common.css
   主题色: #E9163C  |  浅色主题
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --tc-red: #E9163C;
  --tc-red-hover: #C71234;
  --tc-red-light: rgba(233, 22, 60, 0.08);
  --tc-dark: #1A1A2E;
  --tc-text: #2D2D3A;
  --tc-text-secondary: #6B7280;
  --tc-bg: #FFFFFF;
  --tc-bg-light: #F8F9FC;
  --tc-bg-gray: #F1F3F8;
  --tc-border: #E5E7EB;
  --tc-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --tc-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --tc-shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --tc-radius: 12px;
  --tc-radius-sm: 8px;
  --tc-radius-lg: 20px;
  --tc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tc-max-width: 1400px;
  --tc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--tc-font);
  color: var(--tc-text);
  background: var(--tc-bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tc-transition);
}

a:hover {
  color: var(--tc-red);
}

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

ul, ol {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.tc-container {
  width: 100%;
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--tc-transition);
  white-space: nowrap;
  line-height: 1.4;
}

.tc-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tc-btn-primary {
  background: var(--tc-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(233, 22, 60, 0.35);
}

.tc-btn-primary:hover {
  background: var(--tc-red-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(233, 22, 60, 0.45);
  transform: translateY(-2px);
}

.tc-btn-outline {
  background: transparent;
  color: var(--tc-text);
  border: 1.5px solid var(--tc-border);
}

.tc-btn-outline:hover {
  border-color: var(--tc-red);
  color: var(--tc-red);
  transform: translateY(-2px);
}

.tc-btn-ghost {
  background: var(--tc-red-light);
  color: var(--tc-red);
  border: none;
}

.tc-btn-ghost:hover {
  background: var(--tc-red);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 区块标题 ---------- */
.tc-section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tc-dark);
  letter-spacing: -0.5px;
}

.tc-section-subtitle {
  font-size: 18px;
  color: var(--tc-text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 通用区块 ---------- */
.tc-section {
  padding: 100px 0;
}

.tc-section-alt {
  background: var(--tc-bg-light);
}

/* ---------- 导航徽章 ---------- */
.tc-nav-has-badge { position: relative; }
.tc-nav-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--tc-red), #FF6B6B);
  border-radius: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(233, 22, 60, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ---------- 标签/徽章 ---------- */
.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: var(--tc-red-light);
  color: var(--tc-red);
}

/* ---------- 卡片 ---------- */
.tc-card {
  background: var(--tc-bg);
  border-radius: var(--tc-radius);
  overflow: hidden;
  box-shadow: var(--tc-shadow-sm);
  border: 1px solid var(--tc-border);
  transition: all var(--tc-transition);
}

.tc-card:hover {
  box-shadow: var(--tc-shadow-md);
  transform: translateY(-4px);
}

/* ---------- 渐变文字 ---------- */
.tc-gradient-text {
  background: linear-gradient(135deg, var(--tc-red), #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 动画关键帧 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tc-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tc-animate.tc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tc-bg-light);
}

::-webkit-scrollbar-thumb {
  background: #CCC;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #AAA;
}

/* ---------- 选中文字 ---------- */
::selection {
  background: rgba(233, 22, 60, 0.15);
  color: var(--tc-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .tc-section-title {
    font-size: 28px;
  }

  .tc-section-subtitle {
    font-size: 16px;
  }

  .tc-section {
    padding: 60px 0;
  }

  .tc-container {
    padding: 0 16px;
  }
}

/* ============================================================
   导航栏
   ============================================================ */
.tc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--tc-transition);
}

.tc-nav-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--tc-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.tc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.tc-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tc-nav-logo:hover {
  color: inherit;
}

.tc-nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tc-nav-logo-text {
  display: flex;
  flex-direction: column;
}

.tc-nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--tc-dark);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.tc-nav-sub {
  font-size: 11px;
  color: var(--tc-text-secondary);
  line-height: 1.3;
}

.tc-nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tc-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tc-nav-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-text);
  border-radius: 8px;
  transition: all var(--tc-transition);
  white-space: nowrap;
}

.tc-nav-link:hover {
  color: var(--tc-red);
  background: var(--tc-red-light);
}

.tc-nav-link-active {
  color: var(--tc-red);
  background: var(--tc-red-light);
  font-weight: 600;
}

.tc-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-btn-nav-download {
  padding: 8px 16px;
  font-size: 13px;
}

.tc-btn-nav-buy {
  padding: 8px 18px;
  font-size: 13px;
}

/* 下拉菜单 */
.tc-nav-dropdown {
  position: relative;
}

.tc-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-text);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--tc-transition);
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
}

.tc-nav-dropdown-toggle:hover {
  color: var(--tc-red);
  background: var(--tc-red-light);
}

.tc-nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.tc-nav-dropdown:hover .tc-nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.tc-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.tc-nav-dropdown:hover .tc-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.tc-nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-text);
  border-radius: 8px;
  transition: all var(--tc-transition);
  white-space: nowrap;
}

.tc-nav-dropdown-menu a:hover {
  color: var(--tc-red);
  background: var(--tc-red-light);
}

.tc-nav-dropdown-menu a.tc-nav-link-active {
  color: var(--tc-red);
  background: var(--tc-red-light);
  font-weight: 600;
}

/* 语言切换 */
.tc-nav-lang {
  margin-left: 8px;
  flex-shrink: 0;
}
.tc-nav-lang-btn {
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.tc-nav-lang-btn svg:first-child {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.tc-nav-lang-menu {
  right: 0;
  left: auto;
  transform: none;
  min-width: 140px;
}

/* 汉堡菜单 */
.tc-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--tc-transition);
}

.tc-nav-hamburger:hover {
  background: var(--tc-bg-light);
}

.tc-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tc-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.tc-hamburger-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.tc-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.tc-hamburger-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 遮罩 */
.tc-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tc-nav-overlay-show {
  display: block;
  opacity: 1;
}

/* 移动端响应 */
@media (max-width: 1100px) {
  .tc-nav-hamburger {
    display: flex;
  }

  .tc-nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--tc-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 32px;
    gap: 24px;
    z-index: 999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .tc-nav-menu-open {
    right: 0;
  }

  .tc-nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }

  .tc-nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .tc-nav-dropdown {
    width: 100%;
  }

  .tc-nav-dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .tc-nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    min-width: auto;
  }

  .tc-nav-dropdown-menu a {
    padding: 10px 16px;
    font-size: 15px;
  }

  .tc-nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .tc-nav-actions .tc-btn {
    width: 100%;
    justify-content: center;
  }

  .tc-nav-lang {
    margin-left: 0;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--tc-border);
  }
  .tc-nav-lang-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
  .tc-nav-lang-menu {
    left: 0;
    right: auto;
  }
}

/* ============================================================
   页脚
   ============================================================ */
#tc-footer {
  background: var(--tc-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
  padding-bottom: 0;
}

.tc-footer-inner {
  padding-bottom: 0;
}

.tc-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 40px;
}

.tc-footer-brand {
  max-width: 400px;
}

.tc-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tc-footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.tc-footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.tc-footer-brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.tc-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.tc-footer-contact-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.tc-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.tc-footer-contact-item svg {
  flex-shrink: 0;
  color: var(--tc-red);
}

.tc-footer-contact-item a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--tc-transition);
}

.tc-footer-contact-item a:hover {
  color: var(--tc-red);
}

.tc-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.tc-footer-bottom {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.tc-footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.tc-footer-notice {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 700px;
}

.tc-footer-notice-en {
  margin-top: 4px;
  font-style: italic;
}

@media (max-width: 768px) {
  .tc-footer-main {
    flex-direction: column;
    gap: 32px;
  }
}

/* ---------- Hero Label 标签 ---------- */
.tc-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tc-hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--tc-red);
  border-radius: 2px;
}
