/*!
 * TenSure Testing - Site-wide Common Styles
 * 全站通用样式表
 * 基于首页设计风格提取的公共组件样式
 */

/* ============================================================
   1. CSS 变量 / Design Tokens
   ============================================================ */
:root {
    /* 主色调 */
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #e3f2fd;
    --secondary-color: #26a69a;
    --accent-color: #ff7043;

    /* 文字颜色 */
    --text-dark: #1a1a2e;
    --text-gray: #64748b;

    /* 背景色 */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-darker: #0a1929;

    /* 边框色 */
    --border-color: #e2e8f0;

    /* 阴影三级 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* 圆角三级 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0f2c5e 0%, #1a4a8c 50%, #0ea5e9 100%);
    --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cta-lg: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #dc2626 100%);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e3a5f);

    /* 头部高度 */
    --header-height: 64px;
    --top-bar-height: 37px;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   3. 通用工具类 / Utility Classes
   ============================================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 80px 0;
}

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

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .eyebrow {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-head p {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-head-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 20px auto 0;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

/* 文本工具类 */
.text-primary { color: var(--primary-color); }
.text-gray { color: var(--text-gray); }
.text-center { text-align: center; }

/* 显示工具类 */
.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================================
   4. 按钮样式 / Buttons
   ============================================================ */

/* 主 CTA 按钮（头部小按钮） */
.btn-cta {
    background: var(--gradient-cta);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.65);
    color: #fff;
}

.btn-cta:hover::before {
    left: 100%;
}

/* 更多按钮（边框样式） */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-more:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.25);
}

/* Banner 主按钮 */
.banner-btn-primary {
    background: var(--gradient-cta-lg);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.banner-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s;
}

.banner-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.65);
    color: #fff;
}

.banner-btn-primary:hover::before {
    left: 100%;
}

/* Banner 次按钮（玻璃态） */
.banner-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.18);
}

/* ============================================================
   5. 顶部信息栏 / Top Bar
   ============================================================ */
.top-bar {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-gray);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* ============================================================
   6. 头部导航 / Site Header
   ============================================================ */
.site-header-main {
    position: sticky;
    top: 0;
    background: var(--gradient-primary);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* 滚动后 header 变深色实色 */
.site-header-main.scrolled {
    background: #0a1929;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header-main .container {
    max-width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 16px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    max-width: 1440px;
    gap: 10px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-text i {
    color: #00d4ff;
}

/* ============================================================
   7. 主导航 / Main Navigation
   ============================================================ */
.main-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.main-nav ul {
    display: flex;
    gap: 0;
    align-items: center;
    list-style: none;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.main-nav .nav-link {
    display: block;
    padding: 4px 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1.3;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav .nav-link.nav-highlight {
    color: #ffd166;
    font-weight: 700;
}

/* 下拉菜单 */
.nav-item.dropdown {
    position: relative;
    z-index: 10;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    margin-top: 4px;
    z-index: 200;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #334155;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    gap: 10px;
}

.dropdown-menu li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #0ea5e9;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-menu li a:hover {
    background: #e0f2fe;
    color: #0ea5e9;
}

.dropdown-menu li a:hover i {
    color: #0284c7;
    transform: scale(1.1);
}

/* ============================================================
   8. 头部右侧 / Header Contact
   ============================================================ */
.header-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 16px;
    padding: 4px 14px 4px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 5;
    background: linear-gradient(135deg, rgba(15, 44, 94, 0.3), rgba(15, 44, 94, 0.1));
    border-radius: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 5px;
    transition: all 0.2s;
}

.header-phone:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-phone i {
    font-size: 12px;
    color: #00d4ff;
}

/* ============================================================
   9. 移动端头部按钮 / Mobile Header Actions
   ============================================================ */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0;
    z-index: 1100;
    gap: 5px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    min-height: 2.5px !important;
    background: #fff !important;
    background-color: #fff !important;
    border-radius: 2px !important;
    transition: all 0.3s !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-phone-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-success);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    border: none;
}

.mobile-phone-btn:hover,
.mobile-phone-btn:active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.55);
}

.mobile-cta-mini {
    display: none;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--gradient-cta);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    white-space: nowrap;
    gap: 5px;
    border: none;
}

.mobile-cta-mini:hover,
.mobile-cta-mini:active {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* ============================================================
   10. 移动端菜单 / Mobile Menu
   ============================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--gradient-dark);
    color: #fff;
    flex-shrink: 0;
}

.mobile-menu-title {
    font-size: 17px;
    font-weight: 700;
}

.mobile-menu .close-menu {
    position: static;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu .close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-menu-nav .nav-link:hover,
.mobile-menu-nav .nav-link.active {
    background: #e3f2fd;
    color: #1e88e5;
    padding-left: 28px;
}

.mobile-menu-nav .nav-link i {
    width: 24px;
    text-align: center;
    color: #1e88e5;
    font-size: 17px;
}

.mobile-menu-footer {
    padding: 20px 20px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    background: var(--gradient-success);
    color: #fff;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
    position: relative;
    overflow: hidden;
}

.mobile-call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}

.mobile-call-btn:hover,
.mobile-call-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.55);
    color: #fff;
}

.mobile-call-btn:hover::before {
    left: 100%;
}

.mobile-call-btn i {
    font-size: 19px;
}

.mobile-quote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    background: var(--gradient-cta-lg);
    color: #fff;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    position: relative;
    overflow: hidden;
}

.mobile-quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.mobile-quote-btn:hover,
.mobile-quote-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.65);
    color: #fff;
}

.mobile-quote-btn:hover::before {
    left: 100%;
}

.mobile-quote-btn i {
    font-size: 18px;
}

/* ============================================================
   11. 页脚 / Site Footer
   ============================================================ */
.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col a::before {
    content: '\203A';
    opacity: 0.5;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-col a:hover::before {
    opacity: 1;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact li strong {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin: 4px 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ============================================================
   12. 响应式样式 / Responsive
   ============================================================ */

/* ---- 大屏（>1440px） ---- */
@media (min-width: 1440px) {
    .header-inner {
        max-width: 1440px;
        margin: 0 auto;
    }
}

/* ---- 中等屏（<=1200px） ---- */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .main-nav .nav-link {
        padding: 3px 5px;
        font-size: 11px;
    }

    .header-phone {
        font-size: 11.5px;
        padding: 2px 4px;
    }

    .header-phone i {
        font-size: 11px;
    }

    .btn-cta {
        padding: 4px 9px;
        font-size: 11px;
    }

    .header-inner {
        gap: 6px;
        padding: 0 12px;
    }

    .header-contact {
        margin-left: 8px;
        padding: 3px 10px 3px 8px;
        gap: 4px;
    }

    .logo-text {
        font-size: 15px;
    }

    .logo img {
        height: 30px;
    }
}

/* ---- 平板（<=992px） ---- */
@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .header-contact {
        display: none !important;
    }

    .mobile-header-actions {
        display: flex;
    }

    .mobile-phone-btn {
        display: flex;
    }

    .mobile-cta-mini {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-inner {
        height: 64px;
        padding: 0 12px;
        gap: 8px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo img {
        height: 32px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .section-head p {
        font-size: 14px;
    }
}

/* ---- 平板小屏 / 手机大屏（<=768px） ---- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .section-more {
        margin-top: 28px;
    }

    .banner-btn-primary,
    .banner-btn-secondary {
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .mobile-cta-mini {
        padding: 0 10px;
        font-size: 12px;
        height: 44px;
    }

    .mobile-phone-btn,
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .header-inner {
        height: 60px;
        padding: 0 10px;
        gap: 6px;
    }
}

/* ---- 手机（<=480px） ---- */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer {
        padding: 40px 0 0;
    }

    .container {
        padding: 0 12px;
    }

    .section {
        padding: 40px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .section-head p {
        font-size: 13px;
    }

    .btn-more {
        padding: 10px 24px;
        font-size: 13px;
    }

    .banner-btn-primary,
    .banner-btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    .mobile-cta-mini {
        padding: 0 8px;
        font-size: 11.5px;
        height: 44px;
        border-radius: 10px;
    }

    .mobile-cta-mini i {
        display: none;
    }

    .mobile-phone-btn,
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .mobile-menu-toggle span {
        width: 20px !important;
        height: 2px !important;
        min-height: 2px !important;
        background: #fff !important;
        background-color: #fff !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    .logo-text {
        font-size: 15px;
        gap: 4px;
    }

    .logo-text i {
        font-size: 16px;
    }

    .logo img {
        height: 28px;
    }

    .mobile-menu {
        width: 280px;
        right: -300px;
    }

    .mobile-menu-nav .nav-link {
        padding: 14px 20px;
        font-size: 15px;
    }

    .mobile-menu-header {
        padding: 16px 20px;
    }

    .mobile-call-btn,
    .mobile-quote-btn {
        padding: 14px 12px;
        font-size: 15px;
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-col a {
        font-size: 13px;
    }

    .footer-contact li {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 16px 0;
    }
}

/* ============================================================
   13. 触摸设备优化 / Touch Device Optimizations
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

    /* 移除触摸设备上的 hover 效果 */
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active:hover {
        background: transparent;
        color: rgba(255, 255, 255, 0.85);
    }

    .main-nav .nav-link.nav-highlight:hover {
        color: #ffd166;
    }

    .dropdown-menu li a:hover {
        background: transparent;
        color: #334155;
    }

    .dropdown-menu li a:hover i {
        color: #0ea5e9;
        transform: none;
    }

    .btn-cta:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
    }

    .btn-cta:hover::before {
        left: -100%;
    }

    .btn-more:hover {
        background: transparent;
        color: var(--primary-color);
        transform: none;
        box-shadow: none;
    }

    .banner-btn-primary:hover {
        transform: none;
        box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
    }

    .banner-btn-primary:hover::before {
        left: -100%;
    }

    .banner-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.4);
        transform: none;
        box-shadow: none;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    .mobile-phone-btn:hover,
    .mobile-phone-btn:active {
        transform: none;
        box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    }

    .mobile-cta-mini:hover,
    .mobile-cta-mini:active {
        transform: none;
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    }

    .mobile-call-btn:hover,
    .mobile-call-btn:active {
        transform: none;
        box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
    }

    .mobile-call-btn:hover::before {
        left: -100%;
    }

    .mobile-quote-btn:hover,
    .mobile-quote-btn:active {
        transform: none;
        box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    }

    .mobile-quote-btn:hover::before {
        left: -100%;
    }

    .footer-socials a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.7);
        transform: none;
    }

    .footer-col a:hover {
        color: rgba(255, 255, 255, 0.55);
        padding-left: 0;
    }

    .footer-col a:hover::before {
        opacity: 0.5;
        color: inherit;
    }

    .footer-bottom a:hover {
        color: rgba(255, 255, 255, 0.5);
    }

    /* 触摸设备上增加点击区域 */
    .main-nav .nav-link,
    .footer-col a,
    .mobile-menu-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ============================================================
   14. 减少动画偏好 / Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
