/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* 本地Font Awesome图标样式 */
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 常用图标样式 */
.fa-code:before {
    content: "\f121";
}

.fa-magic:before {
    content: "\f0d0";
}

.fa-desktop:before {
    content: "\f108";
}

.fa-plug:before {
    content: "\f1e6";
}

.fa-brain:before {
    content: "\f5dc";
}

.fa-cloud:before {
    content: "\f0c2";
}

.fa-rocket:before {
    content: "\f135";
}

.fa-map-marker:before {
    content: "\f041";
}

.fa-phone:before {
    content: "\f095";
}

.fa-envelope:before {
    content: "\f0e0";
}

.fa-weixin:before {
    content: "\f1d7";
}

.fa-weibo:before {
    content: "\f18a";
}

.fa-linkedin:before {
    content: "\f0e1";
}

.fa-github:before {
    content: "\f09b";
}

.fa-chevron-right:before {
    content: "\f054";
}

.fa-chevron-down:before {
    content: "\f078";
}

.fa-sign-in:before {
    content: "\f090";
}

.fa-info-circle:before {
    content: "\f05a";
}

.fa-paper-plane:before {
    content: "\f1d8";
}

.fa-cogs:before {
    content: "\f085";
}

.fa-angle-left:before {
    content: "\f104";
}

.fa-angle-right:before {
    content: "\f105";
}

.fa-bars:before {
    content: "\f0c9";
}

.fa-search:before {
    content: "\f002";
}

.fa-th-large:before {
    content: "\f009";
}

.fa-folder:before {
    content: "\f07b";
}

/* 新增图标样式 */
.fa-thumbs-up:before {
    content: "\f164";
}

.fa-star:before {
    content: "\f005";
}

.fa-comments:before {
    content: "\f086";
}

.fa-spinner:before {
    content: "\f110";
}

.fa-arrow-left:before {
    content: "\f060";
}

.fa-tag:before {
    content: "\f02b";
}

.fa-calendar:before {
    content: "\f133";
}

/* Font Awesome核心样式 */
@font-face {
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/fontawesome-webfont.eot');
    src: url('../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fontawesome-webfont.woff2') format('woff2'),
         url('../fonts/fontawesome-webfont.woff') format('woff'),
         url('../fonts/fontawesome-webfont.ttf') format('truetype'),
         url('../fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');
}

/* 颜色变量 - PLC上位机AI主题 */
:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --secondary: #0d47a1;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #ef6c00;
    --info: #00838f;
    --light: #f5f7fa;
    --dark: #1a237e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.25);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-slow);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* 导航菜单切换按钮 - 默认隐藏，仅在手机模式下显示 */
.navbar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    z-index: 1001;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 桌面模式 - 隐藏菜单按钮，显示导航链接 */
@media (min-width: 1025px) {
    .navbar-toggle {
        display: none !important;
    }
    
    .navbar-links {
        display: flex !important;
    }
}

/* 平板和手机模式 - 隐藏导航链接，显示菜单按钮 */
@media (max-width: 1024px) {
    .navbar-links {
        display: none !important;
    }
    
    .navbar-toggle {
        display: flex !important;
        margin-left: auto;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        z-index: 1001;
    }
}

/* 确保导航栏容器在移动端正确显示 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0.75rem 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }
    
    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .navbar-toggle {
        display: flex !important;
        margin-left: auto;
    }
}

/* 手机模式 - 进一步优化 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .navbar-logo {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        flex-shrink: 0;
    }
    
    .navbar-container {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
        gap: 1rem;
    }
}

/* 小屏手机模式 */
@media (max-width: 480px) {
    .navbar-toggle {
        width: 36px;
        height: 36px;
    }
    
    .navbar-toggle i {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover {
    transform: translateY(-2px) scale(1.05);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.navbar-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.navbar-link:hover {
    color: white;
    transform: translateY(-2px);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-link:hover::after {
    width: 100%;
}

/* 用户下拉菜单样式 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    margin-top: 0.5rem;
    z-index: 10000;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: rgba(241, 245, 249, 0.9);
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.dropdown-item:first-child {
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

/* 手机导航菜单 */
.mobile-menu {
    display: none;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 999;
    animation: slideDown 0.3s ease-out;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    overflow-x: hidden;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.mobile-menu-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.2), rgba(100, 100, 100, 0.3));
    backdrop-filter: blur(5px);
    color: #cccccc;
    box-shadow: 0 4px 12px rgba(80, 80, 80, 0.2);
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.3), rgba(120, 120, 120, 0.4));
    box-shadow: 0 6px 16px rgba(100, 100, 100, 0.3);
    transform: translateY(-4px);
    color: #ffffff;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.2), rgba(100, 100, 100, 0.3));
    backdrop-filter: blur(5px);
    color: #cccccc;
    box-shadow: 0 4px 12px rgba(80, 80, 80, 0.2);
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.3), rgba(120, 120, 120, 0.4));
    box-shadow: 0 6px 16px rgba(100, 100, 100, 0.3);
    transform: translateY(-4px);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #cccccc;
    border: 2px solid rgba(100, 100, 100, 0.3);
    text-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.2), rgba(100, 100, 100, 0.3));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(80, 80, 80, 0.3);
    transform: translateY(-4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
    backdrop-filter: blur(5px);
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4));
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
    transform: translateY(-4px);
    color: #f87171;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-md);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-xl);
}

/* 按钮脉冲效果 */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(30, 136, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
    }
}

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--border-radius-lg);
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.input-field:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.8);
}

.input-field::placeholder {
    color: rgba(148, 163, 184, 0.6);
    font-weight: 400;
    transition: var(--transition);
}

.input-field:focus::placeholder {
    color: rgba(148, 163, 184, 0.8);
    transform: translateX(4px);
}

.input-field:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.7);
}

/* 表单标签样式 */
.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.9);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.form-label:hover {
    color: #38bdf8;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.75rem;
    transition: var(--transition);
}

.form-group:focus-within {
    transform: translateY(-4px);
}

/* 卡片样式 */
.card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    transition: var(--transition-slow);
    border: 1px solid rgba(56, 189, 248, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(30, 136, 229, 0.8));
    transform: scaleX(0);
    transition: var(--transition-slow);
    z-index: 2;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    transition: var(--transition);
}

.card:hover .card-header {
    border-bottom-color: rgba(56, 189, 248, 0.4);
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: rgba(241, 245, 249, 0.9);
    margin: 0;
    transition: var(--transition);
}

.card:hover .card-title {
    color: #38bdf8;
    transform: translateX(4px);
}

.card-body {
    margin-bottom: 1.5rem;
    transition: var(--transition);
    color: rgba(148, 163, 184, 0.9);
}

.card:hover .card-body {
    transform: translateY(-2px);
    color: rgba(148, 163, 184, 1);
}

.card-footer {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    transition: var(--transition);
}

.card:hover .card-footer {
    border-top-color: rgba(56, 189, 248, 0.4);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 弹性布局 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.align-center {
    align-items: center;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* 间距 */
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-8 { margin-left: 2rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-8 { margin-right: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }

.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }

.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-4 { padding-right: 1rem; }
.pr-6 { padding-right: 1.5rem; }
.pr-8 { padding-right: 2rem; }

/* 文本样式 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-light { color: var(--light); }
.text-dark { color: var(--dark); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* 主内容 */
.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    padding-top: 80px;
}

/* 通知提示 */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.toast-icon.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.toast-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.toast-icon.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--gray-600);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

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

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(241, 245, 249, 0.9);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(148, 163, 184, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(56, 189, 248, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.5);
}



/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(80, 80, 80, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(100, 100, 100, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.7);
    border-color: rgba(120, 120, 120, 0.5);
}

/* 选择文本样式 */
::selection {
    background: var(--primary);
    color: white;
}

/* 禁用状态 */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--gray-900);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    margin: auto;
    border-radius: var(--border-radius-2xl);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: white;
}

/* 弹窗标题区域 - 固定 */
.modal-header {
    padding: 1.5rem 2rem 1rem;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 10;
    border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

/* 弹窗内容区域 - 可滚动 */
.modal-body {
    padding: 1rem 2rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 140px); /* 减去头部和底部高度 */
    color: rgba(148, 163, 184, 0.9);
}

/* 弹窗底部区域 - 固定 */
.modal-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 0 0 var(--border-radius-2xl) var(--border-radius-2xl);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

/* 弹窗滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
    transition: var(--transition);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
}

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

.modal-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(241, 245, 249, 0.9);
    margin: 0;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: rgba(148, 163, 184, 0.6);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: rgba(241, 245, 249, 0.9);
    transform: scale(1.1);
}

/* 关于我们弹窗内容样式 */
.about-content {
    line-height: 1.6;
}

.about-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: rgba(148, 163, 184, 0.9);
}

.about-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    color: rgba(148, 163, 184, 0.9);
}

/* 联系我们弹窗内容样式 */
.contact-form {
    margin-top: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.9);
    margin-bottom: 0.5rem;
}

.contact-form .input-field {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--border-radius-lg);
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.6);
    color: white;
}

.contact-form .input-field:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 客户案例样式 */
.case-tabs-container {
    margin-bottom: 3rem;
}

.case-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.case-tab {
    padding: 0.75rem 2rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.case-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.case-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.case-content {
    margin-bottom: 3rem;
}

.case-slider-container {
    position: relative;
    margin: 0 auto;
}

.case-slider {
    overflow: hidden;
    position: relative;
}

.case-slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card {
    flex: 0 0 320px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.case-card:hover::before {
    opacity: 1;
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 1.5rem;
}

.case-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.case-desc {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.case-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.case-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.case-btn i {
    font-size: 1rem;
}

.case-page-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.active-page {
    color: #3b82f6;
}

.total-pages {
    color: #9ca3af;
}

.case-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.case-slide-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.case-slide-btn.left-btn {
    left: -25px;
}

.case-slide-btn.right-btn {
    right: -25px;
}

.case-slide-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.case-slide-btn:disabled:hover {
    background: white;
    border-color: #e5e7eb;
    color: #374151;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 280px;
    }
    
    .case-slide-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .case-slide-btn.left-btn {
        left: -20px;
    }
    
    .case-slide-btn.right-btn {
        right: -20px;
    }
    
    .case-tabs {
        gap: 0.5rem;
    }
    
    .case-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}