/*
Theme Name: PhoneFilm Pro
Theme URI: https://yourwebsite.com
Author: Your Company
Author URI: https://yourwebsite.com
Description: 高端专业的手机膜外贸企业WordPress主题 - 修复版本
Version: 2.0.1
License: GPL v2 or later
Text Domain: phonefilm
*/

/* ===============================
   CSS 变量定义
   =============================== */

:root {
    /* 颜色变量 */
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --accent-color: #ff6b35;
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #555;
    --gray-600: #666;
    --gray-500: #888;
    --gray-400: #aaa;
    --gray-300: #ccc;
    --gray-200: #e5e5e5;
    --gray-100: #f8fafc;
    --white: #ffffff;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* 边框圆角 */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* 过渡效果 */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===============================
   基础重置和全局样式
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 140px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================
   通用按钮样式
   =============================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===============================
   头部样式
   =============================== */

.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Top Bar */
.header-top {
    background: var(--gradient-dark);
    padding: 10px 0;
    font-size: 13px;
    color: var(--white);
}

.header-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item svg {
    opacity: 0.8;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-social {
    display: flex;
    gap: 8px;
}

.top-social a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    text-decoration: none;
}

.top-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-1px);
}

/* Main Header */
.header-main {
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding {
    flex-shrink: 0;
    margin-right: 40px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--gray-900);
    transition: var(--transition);
}

.site-logo:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--gray-900);
}

.site-logo svg {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
    display: block;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.primary-menu a:hover,
.primary-menu a.current-menu-item,
.primary-menu .current-menu-parent > a {
    color: var(--primary-color);
    text-decoration: none;
}

.primary-menu a:hover::after,
.primary-menu a.current-menu-item::after,
.primary-menu .current-menu-parent > a::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    white-space: nowrap;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--gray-600);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-navigation.active {
    display: block;
    max-height: 600px;
}

.mobile-nav-content {
    padding: 32px 0;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 18px 20px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.current-menu-item {
    color: var(--primary-color);
    padding-left: 32px;
    text-decoration: none;
}

.mobile-contact {
    margin: 32px 0;
    padding: 24px 20px;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-contact-item:last-child {
    margin-bottom: 0;
}

.mobile-contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.mobile-contact-item a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
}

.mobile-cta {
    margin-top: 24px;
    padding: 0 20px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* ===============================
   Hero Section
   =============================== */

.hero-section {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 300;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===============================
   页面头部区域
   =============================== */

.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    position: relative;
    z-index: 2;
    opacity: 0.9;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--white);
    text-decoration: none;
}

/* ===============================
   通用区域样式
   =============================== */

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.counter {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Products Section */
.products-section {
    padding: 120px 0;
    background: var(--gray-100);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
    line-height: 1.3;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-description {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
    align-self: flex-start;
}

.inquiry-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    color: var(--white);
    text-decoration: none;
}

/* ===============================
   Footer 样式 - 修复版本
   =============================== */

.site-footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding-top: 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Company Widget */
.footer-company {
    max-width: none;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.footer-logo-link:hover {
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

.footer-logo-link svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-logo-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 15px;
}

.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.certification-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
    text-decoration: none;
}

/* Footer Widget Titles */
.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

/* Footer Menu Lists */
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.footer-menu-list a:hover {
    color: var(--white);
    padding-left: 8px;
    text-decoration: none;
}

/* Contact Information */
.footer-contact-list {
    space-y: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-content {
    flex: 1;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.contact-content a:hover {
    color: var(--white);
    text-decoration: none;
}

.contact-note {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    margin-top: 2px !important;
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    margin-bottom: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-size: 15px;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    padding: 14px 24px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.newsletter-message {
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 12px;
}

.newsletter-message.show {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-message-content {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.newsletter-message-content.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-message-content.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--white);
    text-decoration: none;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* ===============================
   表单样式
   =============================== */

.inquiry-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-700);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control.error {
    border-color: #ff4757;
}

.form-control-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message-content {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-message-content.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-content.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===============================
   动画效果
   =============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   响应式设计
   =============================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }
    
    .primary-menu {
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-newsletter {
        padding: 30px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-button {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    /* Header adjustments */
    .header-top {
        padding: 8px 0;
    }
    
    .contact-info {
        gap: 16px;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    .site-logo {
        font-size: 20px;
        margin-right: 20px;
    }
    
    /* Hide desktop navigation */
    .desktop-nav {
        display: none;
    }
    
    .header-cta-btn {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Page adjustments */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .hero-section {
        padding: 60px 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .features-section,
    .products-section {
        padding: 80px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .counter {
        font-size: 36px;
    }
    
    .feature-item {
        padding: 30px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-item h3 {
        font-size: 20px;
    }
    
    /* Footer responsive */
    .site-footer {
        padding-top: 60px;
    }
    
    .footer-widgets {
        gap: 30px;
    }
    
    .footer-newsletter {
        padding: 30px 20px;
    }
    
    .newsletter-title {
        font-size: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Header */
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .site-logo {
        font-size: 18px;
    }
    
    /* Pages */
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .inquiry-btn {
        width: 100%;
        justify-content: center;
    }
    
    .counter {
        font-size: 32px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-item h3 {
        font-size: 18px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .inquiry-form {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-certifications {
        justify-content: center;
    }
    
    .certification-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===============================
   无障碍和优化
   =============================== */

/* 防止菜单打开时页面滚动 */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* 焦点状态优化 */
.header-cta-btn:focus,
.mobile-cta-btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.inquiry-btn:focus,
.newsletter-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.primary-menu a:focus,
.mobile-menu a:focus,
.footer-menu-list a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* 减少动画效果（尊重用户偏好） */
@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;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo svg,
    .mobile-menu-toggle svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .header-cta-btn,
    .mobile-cta-btn,
    .back-to-top-btn,
    .footer-newsletter {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section,
    .site-footer {
        background: none !important;
        color: #000000 !important;
    }
    
    .btn-primary,
    .btn-secondary {
        background: none !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
}

/* ===============================
   工具类
   =============================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}