/* ============================================================
   gjmyw.com 国际贸易网 - 全站样式
   ============================================================ */
:root {
  --primary: #0b4d8c;
  --primary-dark: #083a6b;
  --primary-light: #e8f1fa;
  --accent: #e8631a;
  --text: #333;
  --text-light: #666;
  --bg: #f5f7fa;
  --white: #fff;
  --border: #e3e8ef;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(11, 77, 140, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

/* 顶部 */
.topbar { background: var(--primary-dark); color: #bcd4ea; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #fff; margin-left: 12px; }
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 46px; height: 46px; background: linear-gradient(135deg, var(--primary), #1f7ac4); border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; }
.logo h1 { font-size: 24px; color: var(--primary); letter-spacing: 1px; }
.logo span { font-size: 12px; color: var(--text-light); display: block; font-weight: normal; letter-spacing: 3px; }
.search-box { display: flex; border: 2px solid var(--primary); border-radius: 20px; overflow: hidden; width: 340px; }
.search-box input { flex: 1; border: none; outline: none; padding: 8px 16px; font-size: 14px; }
.search-box button { background: var(--primary); color: #fff; border: none; padding: 0 22px; cursor: pointer; font-size: 14px; }
.hotline { text-align: right; font-size: 13px; color: var(--text-light); }
.hotline strong { display: block; font-size: 18px; color: var(--accent); }

/* 导航 */
.nav { background: var(--primary); }
.nav .container { display: flex; }
.nav a { color: #dce9f5; padding: 0 22px; line-height: 48px; display: block; font-size: 16px; }
.nav a.active, .nav a:hover { background: var(--primary-dark); color: #fff; }

/* banner */
.banner { background: linear-gradient(120deg, #083a6b 0%, #0b4d8c 55%, #1f7ac4 100%); color: #fff; padding: 70px 0; text-align: center; }
.banner h2 { font-size: 40px; margin-bottom: 14px; letter-spacing: 2px; }
.banner p { font-size: 17px; color: #cfe2f3; margin-bottom: 28px; }
.btn { display: inline-block; padding: 12px 34px; border-radius: 25px; font-size: 16px; margin: 0 8px; transition: .25s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c94f0c; color: #fff; }
.btn-ghost { border: 1px solid #9fc3e2; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* 统计条 */
.stats { background: var(--white); box-shadow: var(--shadow); margin-top: -30px; position: relative; border-radius: var(--radius); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 15px; }
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border: none; }
.stat b { font-size: 26px; color: var(--primary); display: block; }
.stat span { font-size: 13px; color: var(--text-light); }

/* 通用区块 */
.section { padding: 45px 0 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--primary); margin-bottom: 22px; }
.section-head h2 { font-size: 22px; color: var(--primary); padding-bottom: 10px; position: relative; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--accent); }
.section-head .more { font-size: 13px; color: var(--text-light); }

/* 栅格卡片 */
.grid { display: grid; gap: 20px; margin-bottom: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 2fr 1fr; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .25s; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(11,77,140,.15); }
.card-body { padding: 18px; }
.card h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; line-height: 1.45; }
.card:hover h3 { color: var(--primary); }
.card p { font-size: 13px; color: var(--text-light); }
.card .meta { font-size: 12px; color: #999; margin-top: 10px; display: flex; gap: 14px; }
.thumb { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: bold; }
.t-blue { background: linear-gradient(135deg, #1f7ac4, #0b4d8c); }
.t-orange { background: linear-gradient(135deg, #f2a03d, #e8631a); }
.t-green { background: linear-gradient(135deg, #34a877, #1d7a54); }
.t-purple { background: linear-gradient(135deg, #8b6fd8, #5b3fa8); }
.t-red { background: linear-gradient(135deg, #e05c5c, #b53a3a); }
.t-teal { background: linear-gradient(135deg, #2fb5b0, #177a76); }

/* 列表 */
.news-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 20px; }
.news-list li { list-style: none; border-bottom: 1px dashed var(--border); padding: 13px 0; display: flex; justify-content: space-between; gap: 12px; }
.news-list li:last-child { border: none; }
.news-list .tag { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 1px 8px; border-radius: 3px; flex-shrink: 0; height: fit-content; }
.news-list .date { color: #999; font-size: 13px; flex-shrink: 0; }

/* 服务图标区 */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.icon-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 30px 15px; transition: .25s; display: block; }
.icon-item:hover { transform: translateY(-4px); }
.icon-item .ic { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 26px; display: flex; align-items: center; justify-content: center; }
.icon-item h3 { font-size: 16px; margin-bottom: 6px; }
.icon-item p { font-size: 13px; color: var(--text-light); }

/* 侧栏 */
.sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.sidebar h3 { font-size: 17px; color: var(--primary); border-left: 4px solid var(--accent); padding-left: 10px; margin-bottom: 14px; }
.sidebar li { list-style: none; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; display: flex; justify-content: space-between; }
.sidebar li:last-child { border: none; }
.sidebar .hot { color: var(--accent); }
.sidebar .num { color: #bbb; font-style: italic; }

/* 联系浮块 */
.contact-card { background: linear-gradient(135deg, var(--primary), #1f7ac4); color: #fff; border-radius: var(--radius); padding: 24px 20px; }
.contact-card h3 { color: #fff; margin-bottom: 12px; }
.contact-card p { font-size: 14px; margin: 6px 0; }
.contact-card b { font-size: 20px; }

/* 详情页 */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 13px; color: var(--text-light); }
.article { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; }
.article h1.title { font-size: 26px; line-height: 1.4; margin-bottom: 14px; }
.article .article-meta { font-size: 13px; color: #999; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px; display: flex; gap: 22px; }
.article h2 { font-size: 20px; color: var(--primary); margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article h3 { font-size: 17px; margin: 20px 0 10px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 26px; }
.article li { margin-bottom: 8px; }
.article blockquote { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 14px 18px; margin: 18px 0; color: var(--primary-dark); border-radius: 0 6px 6px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.article th { background: var(--primary); color: #fff; padding: 10px; text-align: left; }
.article td { border: 1px solid var(--border); padding: 9px 10px; }
.article tr:nth-child(even) td { background: #f8fafd; }
.summary-box { background: #fff8f0; border: 1px solid #f5d8b8; border-radius: 6px; padding: 16px 20px; margin-bottom: 24px; font-size: 14px; }
.summary-box b { color: var(--accent); }
.article-tags { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-tags a { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 3px 12px; font-size: 13px; margin-right: 8px; color: var(--text-light); }
.prev-next { display: flex; justify-content: space-between; margin-top: 24px; font-size: 14px; }

/* 分类页 hero */
.page-hero { background: linear-gradient(120deg, #083a6b, #1f7ac4); color: #fff; padding: 44px 0; }
.page-hero h1 { font-size: 30px; margin-bottom: 8px; }
.page-hero p { color: #cfe2f3; font-size: 15px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 30px 0 50px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0 50px; }
.pagination a, .pagination span { padding: 8px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 表单 */
.form-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.form-box label { display: block; font-size: 14px; margin: 14px 0 6px; }
.form-box input, .form-box select, .form-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px; outline: none; }
.form-box input:focus, .form-box textarea:focus { border-color: var(--primary); }
.form-box button { margin-top: 20px; background: var(--accent); color: #fff; border: none; padding: 12px 40px; border-radius: 24px; font-size: 15px; cursor: pointer; }

/* 工具 */
.tool-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rate-table th { background: var(--primary); color: #fff; padding: 10px; }
.rate-table td { border: 1px solid var(--border); padding: 9px 10px; text-align: center; }

/* 页脚 */
.footer { background: var(--primary-dark); color: #a9c4dc; margin-top: 30px; padding: 44px 0 0; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer a { color: #a9c4dc; display: block; font-size: 13px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer p { font-size: 13px; margin-bottom: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px 0; font-size: 13px; }
.copyright a { display: inline; }

/* 浮动客服 */
.float-contact { position: fixed; right: 16px; bottom: 90px; z-index: 200; }
.float-contact a { display: block; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 54px; font-size: 13px; margin-top: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.float-contact a.qq { background: #12b7f5; }

/* 响应式 */
@media (max-width: 900px) {
  .header .container { flex-wrap: wrap; height: auto; padding: 12px 15px; gap: 10px; }
  .search-box { width: 100%; order: 3; }
  .nav .container { flex-wrap: wrap; }
  .nav a { padding: 0 12px; line-height: 40px; font-size: 14px; }
  .grid-3, .grid-4, .icon-grid, .stats .container, .footer .container { grid-template-columns: repeat(2, 1fr); }
  .layout, .grid-2 { grid-template-columns: 1fr; }
  .banner h2 { font-size: 26px; }
  .article { padding: 22px 18px; }
}
