/* ========================================
   WAAMCE 世界珠算心算文化交流协会官网
   主色：藏蓝 #0F3460  辅色：流金 #D4AF37  背景：米白 #F8F7F2
   ======================================== */

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 14px; color: #333; line-height: 1.6; background: #fff; }
ul, ol { list-style: none; }
a { text-decoration: none; color: #333; transition: all 0.3s ease; }
a:hover { color: #D4AF37; }
img { max-width: 100%; border: 0; vertical-align: middle; }
input, textarea, select, button { font-family: inherit; outline: none; border: 0; }

/* 通用工具类 */
.container { width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.section { padding: 60px 0; }
.bg-gray { background: #F8F7F2; }
.text-center { text-align: center; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 28px; border: 1px solid #0F3460; background: #0F3460; color: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.btn:hover { background: #0a2540; color: #fff; }
.btn-gold { background: #D4AF37; border-color: #D4AF37; color: #fff; }
.btn-gold:hover { background: #c19b2e; border-color: #c19b2e; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* 更多链接 */
.more-link { color: #0F3460; font-size: 14px; font-weight: 500; }
.more-link:hover { color: #D4AF37; }

/* 区块标题 */
.section-title { margin-bottom: 40px; }
.section-title h3 { font-size: 32px; color: #0F3460; font-weight: 600; margin-bottom: 8px; }
.section-title p { font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 2px; }

/* ========== 顶部通栏 ========== */
.top-bar { background: #0F3460; color: #fff; font-size: 13px; line-height: 36px; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: #D4AF37; }
.top-bar .line { margin: 0 10px; opacity: 0.5; }
.top-bar .top-right span { cursor: pointer; }

/* ========== 头部导航 ========== */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header .logo img { height: 88px; }
.nav { }
.nav-list { display: flex; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 0 22px; line-height: 80px; font-size: 15px; color: #333; font-weight: 500; position: relative; }
.nav-item:hover > a,
.nav-item.active > a { color: #D4AF37; }
.nav-item.active > a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: #D4AF37; }
.sub-nav { position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 99; border-top: 3px solid #D4AF37; }
.nav-item:hover .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav li a { display: block; padding: 12px 20px; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.sub-nav li a:hover { background: #F8F7F2; color: #D4AF37; padding-left: 25px; }

/* 搜索框 */
.header-right { display: flex; align-items: center; gap: 20px; }
.search-box { position: relative; }
.search-box input { width: 180px; height: 36px; padding: 0 40px 0 12px; border: 1px solid #e5e5e5; border-radius: 18px; font-size: 13px; }
.search-box input:focus { border-color: #D4AF37; }
.search-box button { position: absolute; right: 2px; top: 2px; width: 32px; height: 32px; border: 0; background: #0F3460; color: #fff; border-radius: 50%; cursor: pointer; font-size: 12px; }

/* 移动端菜单按钮 */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-menu-btn span { width: 24px; height: 2px; background: #333; }

/* ========== 面包屑 ========== */
.breadcrumb { background: #F8F7F2; line-height: 44px; font-size: 13px; color: #666;margin-bottom: 60px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #D4AF37; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* ========== 页脚 ========== */
.footer { background: #0F3460; color: #fff; padding-top: 50px; margin-top: 0px;}
.footer-main { padding-bottom: 40px; }
.footer-item { width: 25%; padding-right: 30px; }
.footer-item h4 { font-size: 16px; margin-bottom: 20px; color: #D4AF37; font-weight: 500; }
.footer-item ul li { line-height: 2.2; font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-item ul li a { color: rgba(255,255,255,0.7); }
.footer-item ul li a:hover { color: #D4AF37; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 2; }
.copyright a { color: rgba(255,255,255,0.5); }
.copyright a:hover { color: #D4AF37; }

/* 返回顶部 */
.back-top { position: fixed; right: 30px; bottom: 80px; width: 44px; height: 44px; line-height: 44px; text-align: center; background: #0F3460; color: #fff; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99; font-size: 18px; }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #D4AF37; }

/* ========== 表单通用 ========== */
.form-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-size: 14px; color: #333; font-weight: 500; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="file"],
.form-row input[type="password"],
.form-row select,
.form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; transition: border-color 0.3s; background: #fff; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: #D4AF37; }
.form-row textarea { resize: vertical; }
.form-tip { margin-top: 15px; text-align: center; font-size: 12px; color: #999; }

/* 分页 */
.pagination { text-align: center; margin-top: 40px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 13px; }
.pagination .current { background: #0F3460; border-color: #0F3460; color: #fff; }
.pagination a:hover { border-color: #D4AF37; color: #D4AF37; }

