/* ========================================
   晓扬科技 - 品牌官网样式表
   基于 VIS 规范 v3.0
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
    /* 主色 */
    --primary: #D3020B;
    --primary-hover: #F5222D;
    --primary-light: #FFF2F0;
    
    /* 功能色 */
    --success: #52C41A;
    --success-light: #F6FFED;
    --warning: #FA8C16;
    --warning-light: #FFFBE6;
    --danger: #FF4D4F;
    --danger-light: #FFF2F0;
    --link: #1890FF;
    
    /* 文字色 */
    --title-text: #1F1F1F;
    --body-text: #303133;
    --secondary-text: #606266;
    
    /* 边框色 */
    --border: #DCDFE6;
    --border-light: #E4E7ED;
    
    /* 背景色 */
    --page-bg: #F5F7FA;
    --card-bg: #FFFFFF;
    
    /* 布局 */
    --sidebar-width: 220px;
    --header-height: 72px;
    --container-max-width: 1400px;
    
    /* 间距 (8pt栅格) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--title-text);
    font-weight: 600;
    line-height: 1.4;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin-bottom: var(--spacing-sm); }

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar .container {
    height: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 20px;
    font-weight: 600;
    color: var(--title-text);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

/* 桌面端：导航菜单推至右侧，登录按钮紧随其后 */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.nav-menu a {
    color: var(--body-text);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--body-text);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-md);
        overflow-y: auto;
    }

    .nav-menu-wrapper.active {
        left: 0;
    }

    .nav-menu {
        position: static;
        flex-direction: column;
        padding: 0;
        gap: var(--spacing-sm);
        height: auto;
        box-shadow: none;
        width: 100%;
        background: transparent;
    }

    .nav-menu a {
        padding: var(--spacing-sm);
        font-size: 18px;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    z-index: 0;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 2px 2px, var(--primary) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    padding: var(--spacing-2xl) 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 70%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(211, 2, 11, 0.2);
    animation: logoFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(211, 2, 11, 0.3);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.logo-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(211, 2, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.logo-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.logo-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleOrbit 8s linear infinite;
}

.logo-particles .particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.logo-particles .particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.logo-particles .particle:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.logo-particles .particle:nth-child(4) {
    bottom: 15%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.logo-particles .particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 7.5s;
}

.logo-particles .particle:nth-child(6) {
    top: 40%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 8.5s;
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
        opacity: 0;
    }
}

.hero-illustration {
    position: relative;
    width: 400px;
    height: 400px;
}

.network-dots {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot-1 { top: 80px; left: 80px; animation-delay: 0s; }
.dot-2 { top: 80px; right: 80px; animation-delay: 0.5s; }
.dot-3 { bottom: 80px; left: 80px; animation-delay: 1s; }
.dot-4 { bottom: 80px; right: 80px; animation-delay: 1.5s; }

.network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--body-text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0;
}

.btn-text:hover {
    box-shadow: none;
    transform: none;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-light {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 16px;
    color: var(--secondary-text);
}

/* ========================================
   Business Grid
   ======================================== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.business-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.business-icon {
    margin-bottom: var(--spacing-md);
}

.business-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.business-desc {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.business-link:hover {
    gap: 8px;
}

/* ========================================
   Advantages Grid
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.advantage-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 48px 32px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D3020B 0%, #FF6B6B 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(211, 2, 11, 0.12);
    border-color: rgba(211, 2, 11, 0.15);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(211, 2, 11, 0.1) 0%, rgba(211, 2, 11, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #D3020B 0%, #FF6B6B 100%);
    box-shadow: 0 8px 20px rgba(211, 2, 11, 0.25);
}

.advantage-icon .iconify {
    color: #D3020B;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover .advantage-icon .iconify {
    color: white;
    transform: scale(1.1);
}

.advantage-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    position: relative;
}

.advantage-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .advantage-card {
        padding: 40px 28px 36px;
    }
    
    .advantage-icon {
        width: 76px;
        height: 76px;
    }
    
    .advantage-icon .iconify {
        font-size: 40px !important;
    }
    
    .advantage-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-card {
        padding: 36px 24px 32px;
    }
    
    .advantage-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 20px;
    }
    
    .advantage-icon .iconify {
        font-size: 36px !important;
    }
    
    .advantage-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .advantage-desc {
        font-size: 14px;
    }
}

/* ========================================
   Process Flow - 一体化闭环
   ======================================== */
.process-flow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* 顶部渐变色条 */
.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #FF6B6B);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* 左侧连接线 (桌面端卡片之间) */
.process-card:not(:first-child)::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light));
    z-index: 0;
}

/* 步骤编号水印 */
.process-card-step {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.process-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.process-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--title-text);
    line-height: 1.3;
    margin: 0;
}

.process-card-desc {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.process-card-list {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.process-card-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--body-text);
    line-height: 1.5;
}

.process-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D3020B' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* 闭环循环指示器 */
.process-loop {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    gap: 16px;
}

.process-loop-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}

.process-loop-line:last-child {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.process-loop-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), #E83940);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(211, 2, 11, 0.3);
}

.process-loop-icon .iconify {
    font-size: 20px;
}

/* 移动端：卡片之间的箭头连接 */
.process-card-arrow {
    display: none;
}

@media (max-width: 1024px) {
    .process-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .process-card:not(:first-child)::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .process-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .process-card {
        padding: 24px 20px 22px;
    }

    .process-card-step {
        font-size: 48px;
    }

    .process-card-title {
        font-size: 16px;
    }

    .process-card-arrow {
        display: flex;
        justify-content: center;
        color: var(--primary);
        font-size: 24px;
        margin: -4px 0;
    }
}

/* ========================================
   Cases Preview
   ======================================== */
.cases-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.case-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.case-content {
    padding: var(--spacing-md);
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.case-location {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-sm);
}

.case-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #F5222D 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 28px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1A1A1A;
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 24px;
    height: auto;
    display: block;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

.footer-brand-info {
    flex: 1;
}

.footer-company {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0 0 3px 0;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.footer-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.4;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: white;
}

.admin-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-login-link:hover {
    background: rgba(211, 2, 11, 0.2);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 2, 11, 0.3);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo-img {
        width: 24px;
    }
}

/* ========================================
   Frontend User Bar - Login/Logout
   Always visible, fixed position in navbar
   ======================================== */
.frontend-user-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    padding: 5px 14px 5px 8px;
    background: rgba(211, 2, 11, 0.04);
    border: 1px solid rgba(211, 2, 11, 0.08);
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}
.frontend-user-bar.visible {
    display: flex;
}
.frontend-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d3020b 0%, #ff6b6b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.frontend-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    overflow: hidden;
}
.frontend-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f1f1f;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.frontend-user-role {
    font-size: 10px;
    color: #909399;
}
.frontend-changepwd-btn,
.frontend-changephone-btn,
.frontend-logout-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    color: #606266;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.frontend-changepwd-btn:hover,
.frontend-changephone-btn:hover,
.frontend-logout-btn:hover {
    color: #d3020b;
}
.frontend-changepwd-btn svg,
.frontend-changephone-btn svg,
.frontend-logout-btn svg {
    width: 14px;
    height: 14px;
}
.frontend-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-base);
}
.frontend-login-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(211, 2, 11, 0.25);
    transform: translateY(-1px);
}
.frontend-login-btn:active {
    transform: scale(0.97);
}
.frontend-login-btn svg {
    width: 16px;
    height: 16px;
}
@media (max-width: 1024px) {
    .frontend-user-bar {
        padding: 4px 8px !important;
        margin-left: 0 !important;
        flex-shrink: 0;
    }
    .frontend-login-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .footer-logo-img {
        width: 24px;
    }
    
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-company {
        font-size: 12px;
    }
    
    .footer-tagline {
        font-size: 11px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

.mt-48 {
    margin-top: 48px;
}

/* ========================================
   Animations
   ======================================== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .business-grid,
    .advantages-grid,
    .cases-preview {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Content Protection (内容防护)
   ======================================== */

/* 禁止全站文字选中（输入框除外） */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许输入框选中 */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 禁止图片拖拽 */
img {
    -webkit-user-drag: none;
    draggable: false;
}

/* 图片保护覆盖层 */
.img-protected {
    position: relative;
}

.img-protect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

/* 视频保护 */
video {
    -webkit-user-select: none;
    user-select: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

/* 页面水印层 */
.page-watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-repeat: repeat;
}

/* ========================================
   Login Modal (登录弹窗)
   ======================================== */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: loginModalFadeIn 0.2s ease;
}
@keyframes loginModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: loginModalSlideIn 0.25s ease;
}
@keyframes loginModalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal-box h3 {
    text-align: center;
    margin: 0 0 24px;
    font-size: 20px;
    color: var(--primary, #D3020B);
}

.login-modal-box .form-group {
    margin-bottom: 16px;
}

.login-modal-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.login-modal-box input[type="text"],
.login-modal-box input[type="password"],
.login-modal-box input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border, #DCDFE6);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-modal-box input:focus {
    border-color: var(--primary, #D3020B);
    outline: none;
    box-shadow: 0 0 0 2px rgba(211, 2, 11, 0.1);
}

.login-modal-box .login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary, #D3020B);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.login-modal-box .login-btn:hover {
    background: var(--primary-hover, #F5222D);
}

.login-modal-box .login-error {
    color: #e53935;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

/* 登录弹窗 - 方式切换标签 */
.login-modal-box .login-tabs {
    display: flex;
    border-bottom: 2px solid #EBEEF5;
    margin: 0 0 20px 0;
}
.login-modal-box .login-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #909399;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.login-modal-box .login-tab.active {
    color: var(--primary, #D3020B);
    border-bottom-color: var(--primary, #D3020B);
}

/* 登录弹窗 - 验证码行 */
.login-modal-box .sms-code-row {
    display: flex;
    gap: 8px;
}
.login-modal-box .sms-code-row input {
    flex: 1;
}
.login-modal-box .sms-send-btn {
    padding: 10px 14px;
    background: var(--primary, #D3020B);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    min-width: 90px;
}
.login-modal-box .sms-send-btn:hover:not(:disabled) {
    background: var(--primary-hover, #F5222D);
}
.login-modal-box .sms-send-btn:disabled {
    background: #C0C4CC;
    cursor: not-allowed;
}

/* 前台登录弹窗关闭按钮 */
.login-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    z-index: 1;
}
.login-modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* 前台登录弹窗"忘记密码"链接 */
.login-forgot-link {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.login-forgot-link:hover {
    color: var(--primary, #D3020B);
    text-decoration: underline;
}

/* 前台找回密码"返回登录"链接 */
.login-back-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.login-back-link:hover {
    color: var(--primary, #D3020B);
}

/* ========================================
   Password Modal (修改密码/找回密码弹窗)
   ======================================== */
.pwd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pwdModalFadeIn 0.2s ease;
}
@keyframes pwdModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pwd-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    width: 400px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    position: relative;
    animation: pwdModalSlideIn 0.25s ease;
}
@keyframes pwdModalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pwd-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.pwd-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.pwd-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1F1F1F;
    margin-bottom: 6px;
}

.pwd-modal-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}

/* 步骤指示器 */
.pwd-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}
.pwd-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #C0C4CC;
    transition: color 0.3s;
}
.pwd-step.active {
    color: var(--primary, #D3020B);
    font-weight: 600;
}
.pwd-step.done {
    color: var(--success, #52C41A);
}
.pwd-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #EBEEF5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s;
}
.pwd-step.active .pwd-step-dot {
    background: var(--primary, #D3020B);
    color: #fff;
}
.pwd-step.done .pwd-step-dot {
    background: var(--success, #52C41A);
    color: #fff;
}
.pwd-step-line {
    width: 36px;
    height: 2px;
    background: #EBEEF5;
    margin: 0 6px;
    transition: background 0.3s;
}
.pwd-step-line.done {
    background: var(--success, #52C41A);
}

/* 表单域 */
.pwd-field {
    margin-bottom: 18px;
}
.pwd-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 6px;
}
.pwd-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DCDFE6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.25s;
    background: #FAFAFA;
    box-sizing: border-box;
}
.pwd-field input:focus {
    outline: none;
    border-color: var(--primary, #D3020B);
    box-shadow: 0 0 0 2px rgba(211, 2, 11, 0.08);
    background: #fff;
}
.pwd-field input:read-only {
    background: #F5F7FA;
    color: #909399;
    cursor: default;
}

/* 验证码行 */
.pwd-code-row {
    display: flex;
    gap: 10px;
}
.pwd-code-row input {
    flex: 1;
}
.pwd-send-btn {
    white-space: nowrap;
    padding: 0 16px;
    height: 40px;
    border: 1px solid var(--primary, #D3020B);
    background: #fff;
    color: var(--primary, #D3020B);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}
.pwd-send-btn:hover:not(:disabled) {
    background: var(--primary, #D3020B);
    color: #fff;
}
.pwd-send-btn:disabled {
    border-color: #C0C4CC;
    color: #C0C4CC;
    cursor: not-allowed;
    background: #F5F7FA;
}

/* 提交按钮 */
.pwd-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary, #D3020B);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
}
.pwd-submit-btn:hover:not(:disabled) {
    background: var(--primary-hover, #F5222D);
    box-shadow: 0 4px 14px rgba(211, 2, 11, 0.3);
}
.pwd-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 错误提示 */
.pwd-error {
    font-size: 12px;
    color: #F56C6C;
    margin-top: 4px;
    min-height: 18px;
}

/* 成功提示 */
.pwd-success-box {
    text-align: center;
    padding: 20px 0;
}
.pwd-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52C41A, #73D13D);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    animation: pwdSuccessPop 0.4s ease;
}
@keyframes pwdSuccessPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.pwd-success-text {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 6px;
}
.pwd-success-sub {
    font-size: 13px;
    color: #909399;
}

/* 手机号脱敏显示 */
.pwd-phone-masked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #F0F9FF;
    border: 1px solid #D9ECFF;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #409EFF;
    margin-bottom: 18px;
}

/* 返回登录链接 */
.pwd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary, #D3020B);
    cursor: pointer;
}
.pwd-back-link:hover {
    text-decoration: underline;
}
