/*
Theme Name: TMGM Client
Theme URI: https://tmgmclient.com
Author: TMGM
Description: TMGM Chinese Website Style
Version: 2.0
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Noto Sans SC, Microsoft YaHei, -apple-system, sans-serif; color: #333; background: #fff; line-height: 1.6; }
:root {
  --primary: #001489;
  --accent: #0068e3;
  --gradient: linear-gradient(90deg, #001489, #0068e3);
  --gradient-accent: linear-gradient(180deg, #1de4f5 0%, #0f9cdb 100%);
  --light-bg: #f8f9fa;
  --text: #333;
  --text-light: #666;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* === Header / Nav === */
.navbar { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar .logo { display: flex; align-items: center; text-decoration: none; height: 100%; }
.navbar .logo-img { height: 36px; width: auto; display: block; }
.navbar .nav-links { display: flex; gap: 28px; align-items: center; }
.navbar .nav-links a { color: #333; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.navbar .nav-links a:hover { color: var(--accent); }
.navbar .cta-btn { background: var(--gradient); color: #fff !important; padding: 8px 22px; border-radius: 30px; font-weight: 600; }
/* === Hero === */
.hero { 
  background: linear-gradient(135deg, #010951 0%, #001489 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before { content: ; position: absolute; inset: 0; background: url(https://www.tmgm.com/bg-pattern.png) center/cover; opacity: 0.1; }
.hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-content .subtitle { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.hero-content p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; max-width: 520px; }
.hero .btn-group { display: flex; gap: 16px; }
.hero .btn-primary { background: #fff; color: var(--primary); padding: 12px 32px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all .3s; }
.hero .btn-primary:hover { background: var(--gradient-accent); color: #fff; }
.hero .btn-secondary { border: 1px solid rgba(255,255,255,0.6); color: #fff; padding: 12px 32px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all .3s; }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num { font-size: 32px; font-weight: 800; }
.hero-stats .stat .label { font-size: 13px; opacity: 0.8; }
/* === Sections === */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 30px; color: var(--primary); margin-bottom: 16px; }
.section-title strong { font-weight: 800; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 15px; margin-bottom: 48px; }
/* === Features Grid === */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--light-bg); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all .3s;
  border: 1px solid transparent;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); }
/* === Account Types === */
.account-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.account-card { 
  background: #fff; border: 1px solid #e8e8e8; border-radius: var(--radius); padding: 32px;
  text-align: center; transition: all .3s;
}
.account-card.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.account-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 8px; }
.account-card .price { font-size: 36px; font-weight: 800; color: var(--accent); margin: 16px 0; }
.account-card ul { list-style: none; text-align: left; margin: 20px 0; }
.account-card ul li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.account-card ul li::before { content: ✓ ; color: #61e43c; font-weight: bold; }
.account-card .btn { display: block; background: var(--gradient); color: #fff; text-decoration: none; padding: 12px; border-radius: 30px; font-weight: 600; margin-top: 16px; transition: opacity .2s; }
.account-card .btn:hover { opacity: 0.9; }
/* === Why TMGM === */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-item {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); text-align: center;
}
.why-item .number { font-size: 48px; font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.why-item h4 { font-size: 18px; color: var(--primary); margin: 12px 0; }
.why-item p { font-size: 14px; color: var(--text-light); }
/* === Blog === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: #fff; border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,20,137,0.12); transform: translateY(-3px); border-color: var(--accent); }
.blog-card .card-thumb { width: 100%; height: 200px; overflow: hidden; background: linear-gradient(135deg, #f0f4ff, #e8edf5); display: flex; align-items: center; justify-content: center; }
.blog-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .card-thumb img { transform: scale(1.05); }
.blog-card .card-thumb .placeholder-icon { font-size: 48px; opacity: 0.3; }
.blog-card .body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--text-light); }
.blog-card .cat { color: var(--accent); font-size: 13px; font-weight: 600; background: rgba(0,104,227,0.08); padding: 3px 10px; border-radius: 4px; }
.blog-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.5; }
.blog-card h3 a { color: var(--primary); text-decoration: none; transition: color .2s; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card .excerpt { font-size: 13px; color: #999; line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .read-more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 600; transition: all .2s; }
.blog-card .read-more:hover { color: var(--primary); }
.blog-card .read-more::after { content:  →; }
/* === Footer === */
.footer { background: #fcfcfc; border-top: 1px solid #eee; padding: 60px 0 30px; }
.footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h4 { color: var(--primary); font-size: 16px; margin-bottom: 20px; }
.footer a { display: block; color: var(--text); text-decoration: none; font-size: 14px; margin-bottom: 12px; }
.footer a:hover { color: var(--accent); }
.footer .copyright { grid-column: 1 / -1; text-align: center; color: var(--text-light); font-size: 13px; padding-top: 40px; border-top: 1px solid #eee; }
/* === Page === */
.page-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.page-content h1 { font-size: 32px; color: var(--primary); margin-bottom: 24px; }
.page-content p { margin-bottom: 16px; line-height: 1.8; }
/* === Page Hero === */
.page-hero { background: linear-gradient(135deg, #010951 0%, #001489 100%); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 38px; font-weight: 800; }
/* === CTA Section === */
.cta-section { background: linear-gradient(135deg, #001489 0%, #0068e3 100%); color: #fff; padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }
.cta-section .btn-white { display: inline-block; background: #fff; color: var(--primary); padding: 14px 36px; border-radius: 30px; text-decoration: none; font-weight: 600; margin: 0 8px; transition: all .3s; }
.cta-section .btn-white:hover { background: var(--gradient-accent); color: #fff; }
.cta-section .btn-outline { display: inline-block; border: 1px solid rgba(255,255,255,0.6); color: #fff; padding: 14px 36px; border-radius: 30px; text-decoration: none; font-weight: 600; margin: 0 8px; transition: all .3s; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 768px) {
  .hero .container { flex-direction: column; }
  .hero-content h1 { font-size: 32px; }
  .navbar .nav-links { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card .card-thumb { height: 170px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card .card-thumb { height: 200px; }
}
