/* ===== 司腾外贸网站设计系统 ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1243af;
  --primary-light: #e8eefb;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.1);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); }

/* ===== 顶部工具条 ===== */
.top-bar { background: var(--primary); color: #fff; font-size: 13px; padding: 6px 0; }
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; }
.top-bar a:hover { color: #fff; }

/* ===== 导航 ===== */
.navbar { padding: 12px 0; box-shadow: var(--shadow); background: #fff; }
.navbar-brand { font-weight: 700; font-size: 20px; color: var(--primary) !important; }
.navbar-brand small { font-weight: 400; font-size: 12px; color: var(--text-secondary); display: block; margin-top: -2px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text) !important; padding: 6px 16px !important; border-radius: var(--radius-sm); transition: .2s; }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary) !important; }

/* ===== Hero 区域 ===== */
.hero { background: linear-gradient(135deg, #1a56db 0%, #1e40af 60%, #1e3a8a 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 70%); border-radius: 50%; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; position: relative; z-index: 1; }
.hero p { font-size: 18px; opacity: .9; max-width: 520px; line-height: 1.7; position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); padding: 4px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; position: relative; z-index: 1; }
.hero-stats .num { font-size: 32px; font-weight: 700; }
.hero-stats .label { font-size: 14px; opacity: .75; }
.hero-cta { margin-top: 32px; position: relative; z-index: 1; }
.hero-cta .btn { padding: 12px 32px; font-size: 16px; font-weight: 600; border-radius: 10px; }
.hero-cta .btn-primary { background: var(--accent); border: none; color: #1e3a8a; }
.hero-cta .btn-primary:hover { background: #d97706; }
.hero-cta .btn-outline-light { border-width: 2px; }

/* ===== 内页标题横幅 ===== */
.page-header { background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%); color: #fff; padding: 56px 0 48px; text-align: center; }
.page-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.page-header p { font-size: 16px; opacity: .8; margin: 0; }

/* ===== 通用section ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-title p { color: var(--text-secondary); font-size: 16px; max-width: 500px; margin: 0 auto; }
.section-title .bar { width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin: 14px auto 0; }

/* ===== 页面内容区 ===== */
.page-content { padding: 60px 0; }

/* ===== 服务卡片 ===== */
.service-card { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; border: 1px solid var(--border); transition: .3s; height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; color: var(--primary); }
.service-card h5 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===== 企业卡片 ===== */
.company-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--border); transition: .3s; height: 100%; }
.company-card:hover { box-shadow: var(--shadow-lg); }
.company-card .logo-placeholder { width: 100px; height: 80px; background: var(--bg-gray); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-secondary); margin-bottom: 12px; }
.company-card h6 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.company-card .tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 10px; margin-bottom: 8px; }
.tag-domestic { background: #dbeafe; color: #1d4ed8; }
.tag-foreign { background: #fce7f3; color: #be185d; }
.company-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===== 新闻卡片 ===== */
.news-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: .3s; height: 100%; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.news-card .img-placeholder { height: 180px; background: linear-gradient(135deg, #e0e7ff, #dbeafe); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 36px; }
.news-card .body { padding: 20px; }
.news-card .date { font-size: 12px; color: var(--text-secondary); }
.news-card h6 { font-size: 15px; font-weight: 600; margin: 8px 0 6px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===== 统计数字区 ===== */
.stats-section { background: var(--primary); color: #fff; padding: 60px 0; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 40px; font-weight: 800; }
.stat-item .label { font-size: 15px; opacity: .8; }

/* ===== 联系方式区 ===== */
.contact-cta { background: linear-gradient(135deg, #f9fafb, #eef2ff); border-radius: var(--radius); padding: 48px; text-align: center; }
.contact-cta h3 { font-size: 24px; font-weight: 700; }
.contact-cta p { color: var(--text-secondary); max-width: 400px; margin: 8px auto 20px; }

/* ===== 页脚 ===== */
.footer { background: #111827; color: #9ca3af; padding: 48px 0 24px; }
.footer h6 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer a { color: #9ca3af; text-decoration: none; font-size: 13px; display: block; margin-bottom: 6px; }
.footer a:hover { color: #fff; }
.footer .brand { font-size: 18px; font-weight: 700; color: #fff; }
.footer .copy { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid #1f2937; font-size: 13px; }

/* ========== 后台登录 ========== */
html, body.admin-login {
    height: 100%;
    margin: 0;
    padding: 0;
}
body.admin-login {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edf5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(26,86,219,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eef2f8;
}
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}
.login-logo h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}
.login-logo p {
    font-size: 0.75rem;
    color: #8e9bae;
    margin-top: 2px;
}
.login-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3d4a5c;
    margin-bottom: 3px;
}
.login-card .input-group-text {
    border-right: none;
    background: #f7f9fc;
    color: #8e9bae;
}
.login-card .form-control {
    border-left: none;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: #f7f9fc;
    border-color: #e2e8f0;
    transition: all 0.2s;
}
.login-card .form-control:focus {
    background: #fff;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.login-card .form-control::placeholder {
    color: #b0bccf;
    font-size: 0.8rem;
}
.login-card .mb-3 {
    margin-bottom: 14px !important;
}
.login-card .btn-siteng {
    background: linear-gradient(135deg, #1a56db, #1648c5);
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s;
}
.login-card .btn-siteng:hover {
    background: linear-gradient(135deg, #1648c5, #1239a8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.25);
}
.login-card .btn-siteng:active {
    transform: translateY(0);
}
.login-card .alert {
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}
.login-card .back-link {
    text-align: center;
    margin-top: 18px;
}
.login-card .back-link a {
    color: #8e9bae;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}
.login-card .back-link a:hover {
    color: #1a56db;
}
/* ========== 后台登录 end ========== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%); }
.login-box { background: #fff; border-radius: var(--radius); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-box h3 { text-align: center; font-weight: 700; margin-bottom: 8px; }
.login-box p { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* ===== 页内通用 ===== */
.page-header-sm { background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%); color: #fff; padding: 40px 0 32px; text-align: center; }
.page-header-sm h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.page-header-sm p { font-size: 14px; opacity: .8; margin: 0; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats .num { font-size: 24px; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 24px; }
  .stat-item .num { font-size: 28px; }
  .contact-cta { padding: 32px 20px; }
  .page-header { padding: 40px 0 32px; }
  .page-header h1 { font-size: 24px; }
}

