/* TellLead Company Group Website - Main Stylesheet */
/* 专业蓝色主题，响应式设计 */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", "Arial", "Roboto", sans-serif;
    line-height: 1.65;
    color: #333;
    background-color: #ffffff;
}

/* Global focus visibility (WCAG 2.4.7); nav links use high-contrast ring below */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.lang-btn:focus-visible,
.captcha-refresh:focus-visible,
.back-to-top:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* Responsive images & picture (safe defaults; logos keep explicit .logo rules) */
img {
    max-width: 100%;
    height: auto;
}

picture {
    display: block;
    max-width: 100%;
}

picture img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: scale-down;
}

/* Color Variables */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f9fafb;
    --border-gray: #e5e7eb;
    --success-green: #10b981;
    --error-red: #ef4444;
    /* Rhythm & a11y */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-pill: 20px;
    --focus-ring: 2px solid var(--secondary-blue);
    --focus-ring-nav: 2px solid #fbbf24;
    --focus-offset: 2px;
    --shadow-hero-text: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.45rem, 1rem + 1.4vw, 2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.5rem);
    line-height: 1.4;
}

h4, h5, h6 {
    line-height: 1.35;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: clamp(2.5rem, 5vw + 1rem, 4rem) 0;
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.company-name {
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
    font-weight: 600;
    color: var(--primary-blue);
}

/* Optional: HTML may add .logo-section--text-only (Worker 4/5); mirrors :has() below for older browsers */
.logo-section--text-only .company-name {
    font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.45rem);
    letter-spacing: 0.02em;
}

.logo-section--text-only {
    gap: var(--space-sm);
}

/* When no logo image: stronger title (requires :has); no layout dependency */
@supports selector(:has(img)) {
    .logo-section:not(:has(> img)) .company-name {
        font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.45rem);
        letter-spacing: 0.02em;
    }

    .logo-section:not(:has(> img)) {
        gap: var(--space-sm);
    }
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.language-switcher button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: auto;
    white-space: nowrap;
}

.language-switcher button:hover,
.language-switcher button.active {
    color: var(--primary-blue);
    background-color: var(--light-blue);
    transform: translateY(-1px);
}

/* Navigation Styles */
.nav {
    background-color: var(--primary-blue);
}

.nav-content {
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    color: var(--white);
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-radius: var(--radius-sm);
}

.nav-item a:hover,
.nav-item a.active {
    background-color: var(--dark-blue);
    color: var(--white);
}

.nav-item a:focus-visible {
    outline: var(--focus-ring-nav);
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

/* Hero背景图片覆盖层 - 增强文字可读性（scheme A：背景图 + 渐变叠加深色带） */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 58, 138, 0.72) 45%, rgba(15, 23, 42, 0.78) 100%),
        rgba(30, 58, 138, 0.45);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: var(--shadow-hero-text);
    font-weight: 700;
}

.hero h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: var(--shadow-hero-text);
    font-weight: 600;
}

.hero .hero-subtitle {
    text-shadow: var(--shadow-hero-text);
}

.hero p {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.97);
    max-width: 42rem;
    margin: 0 auto var(--space-xl);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Hero部分按钮增强 */
.hero .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--white);
}

.hero .btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .hero .btn-primary:hover {
        transform: translateY(-3px);
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
}

.btn-outline:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    }

    .card:hover::before {
        left: 100%;
    }
}

.card:focus-within {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 28px rgba(30, 58, 138, 0.12);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CAPTCHA Styles */
.captcha-container {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.captcha-display {
    background-color: var(--white);
    border: 2px solid var(--border-gray);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: inline-block;
}

.captcha-input {
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    margin: 0 0.5rem;
    width: 150px;
}

.captcha-refresh {
    background-color: var(--text-light);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.captcha-refresh:hover {
    background-color: var(--text-dark);
}

.contact-info {
    display: block;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.contact-info.show {
    display: block;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 6px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

/* Footer Styles */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Error & Success Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 500;
}

.message-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.message-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    /*
     * 纯 CSS 无法实现真正「汉堡展开/收起」（需 checkbox + label、details/summary 或 JS）。
     * 此处采用单行横向滚动 + 边缘淡化提示；若需折叠菜单，请在 <nav> 内增加：
     * <input type="checkbox" id="nav-toggle" class="nav-toggle" hidden>
     * <label for="nav-toggle" class="nav-toggle-label" aria-label="打开菜单">…</label>
     * 并保证上述元素与 .nav-menu 的兄弟/父子关系可供 #nav-toggle:checked ~ … 选择。
     */
    .nav-content {
        justify-content: flex-start;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        padding: 0.25rem 0;
    }

    .nav-menu::-webkit-scrollbar {
        height: 4px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 4px;
    }

    .nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .nav-item a {
        text-align: center;
        white-space: nowrap;
        border-bottom: none;
        border-radius: var(--radius-sm);
        padding: 0.75rem 1.1rem;
    }

    .hero {
        padding: clamp(3rem, 8vw, 4rem) 0;
    }

    .container {
        padding: 0 0.5rem;
    }

    .section {
        padding: clamp(2rem, 4vw + 1rem, 2.5rem) 0;
    }

    .grid {
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .captcha-input {
        width: 120px;
        margin: 0.5rem 0;
    }
    
    .language-switcher {
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* 高级动画和过渡效果 */

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动动画类 */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

/* 按钮增强效果 */
.btn {
    position: relative;
    overflow: hidden;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-2px);
    }
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-outline:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* 导航增强效果 */
.nav-item a {
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--secondary-blue);
    transition: left 0.3s ease;
}

.nav-item a:hover::after,
.nav-item a.active::after {
    left: 0;
}

/* Hero区域增强 */
.hero {
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 语言切换器增强 */
.language-switcher button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.language-switcher button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-blue);
    border-radius: 4px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.language-switcher button:hover::before,
.language-switcher button.active::before {
    transform: scaleX(1);
}

/* 联系信息显示动画 */
.contact-info {
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(20px);
}

.contact-info.show {
    transform: translateY(0);
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-blue);
}

/* CAPTCHA增强效果 */
.captcha-container {
    transition: all 0.5s ease;
}

.captcha-display {
    transition: all 0.3s ease;
    position: relative;
}

.captcha-display:hover {
    transform: scale(1.02);
}

.captcha-refresh {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

/* 页脚增强 */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gray), transparent);
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-blue);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式动画优化 — prefers-reduced-motion（与文件顶部 html 规则呼应） */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

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

    .loading-spinner {
        animation: none !important;
        border-top-color: var(--primary-blue);
    }

    .pulse-animation {
        animation: none !important;
    }
}

/* 特性卡片增强样式 */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--primary-blue);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.feature-icon svg {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

/* 增强的网格布局 */
.grid {
    gap: 2rem;
}

.grid-3 .feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-3 .feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-3 .feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* 服务卡片增强 */
.services-card {
    position: relative;
    overflow: hidden;
}

.services-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.services-card:hover::after {
    transform: scaleX(1);
}

/* 文字渐变效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* 数字计数器动画 */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* 进度条动画 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 4px;
    transform: translateX(-100%);
    transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.progress-fill.animate {
    transform: translateX(0);
}

/* 悬浮提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* 响应式图标优化 */
@media (max-width: 768px) {
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
}

/* Header Actions 区域样式 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 语言切换器在header中的样式 */
.header-actions .language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.language-switcher .lang-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 45px;
}

.language-switcher .lang-btn:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.language-switcher .lang-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
}

.language-switcher .lang-separator {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

/* 移动端Header Actions优化 */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .header-actions .language-switcher {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .language-switcher .lang-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .header-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.service-card ul {
    text-align: left;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Features */
.contact-features {
    margin-top: 2rem;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-feature .feature-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-feature h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.contact-feature p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Service Areas */
.service-areas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.area-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Team Photos */
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
}

/* 页面标题背景图片覆盖层 - 增强文字可读性 */
.page-header::before,
.hero.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.58) 0%, rgba(30, 58, 138, 0.78) 50%, rgba(15, 23, 42, 0.85) 100%),
        rgba(30, 58, 138, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(1.65rem, 1.15rem + 1.8vw, 2.5rem);
    font-weight: 700;
    text-shadow: var(--shadow-hero-text);
}

.page-header p {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45);
}

/* CAPTCHA Section */
.captcha-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
}

.captcha-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.captcha-input-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.captcha-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
}

.captcha-input-group input:focus,
.captcha-input-group input:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-color: var(--primary-blue);
}

.captcha-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.captcha-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.captcha-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    margin-top: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        min-width: auto;
        max-width: 300px;
    }
    
    .captcha-input-group {
        flex-direction: column;
    }
    
    .page-header {
        padding: 3rem 0 1.5rem;
    }

    .service-areas {
        gap: 0.25rem;
    }
    
    .area-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/*
 * === TellLead Worker 6 交付说明（仅 CSS，2026-05）===
 * :has()：无 :has 的浏览器不应用 .logo-section:not(:has(> img))… 规则；
 *   无图标题强化依赖后续 HTML 加 class .logo-section--text-only（与上文明示规则等价）。
 * 移动导航：纯 CSS 无法实现可访问的汉堡开关；当前为 .nav-menu 横向滚动 + 边缘 mask。
 *   若需折叠：在 <nav class="nav"> 内增加隐藏的 <input type="checkbox" id="nav-toggle" class="nav-toggle">
 *   与 <label for="nav-toggle" class="nav-toggle-label" aria-label="主菜单">…</label>，
 *   使 label 与 .nav-menu 处于可用 #nav-toggle:checked ~ … 或相邻兄弟选择器关联的位置。
 */