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

:root {
    /* 橙色主题 (默认) */
    --primary-color: #ff6b35;
    --secondary-color: #e55a2b;
    --accent-color: #ffa726;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff8a50 100%);
    --gradient-secondary: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    --grid-color: rgba(255, 107, 53, 0.1);
    --particle-color: rgba(255, 107, 53, 0.8);
    
    /* 通用变量 */
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 橙色主题 */
[data-theme="orange"] {
    --primary-color: #ff6b35;
    --secondary-color: #e55a2b;
    --accent-color: #ffa726;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff8a50 100%);
    --gradient-secondary: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    --grid-color: rgba(255, 107, 53, 0.1);
    --particle-color: rgba(255, 107, 53, 0.8);
}

/* 蓝色主题 */
[data-theme="blue"] {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #4fc3f7;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --grid-color: rgba(0, 212, 255, 0.1);
    --particle-color: rgba(0, 212, 255, 0.8);
}

/* 紫色主题 */
[data-theme="purple"] {
    --primary-color: #9c27b0;
    --secondary-color: #7b1fa2;
    --accent-color: #ba68c8;
    --gradient-primary: linear-gradient(135deg, #9c27b0 0%, #e1bee7 100%);
    --gradient-secondary: linear-gradient(135deg, #ba68c8 0%, #ce93d8 100%);
    --shadow-glow: 0 0 30px rgba(156, 39, 176, 0.3);
    --grid-color: rgba(156, 39, 176, 0.1);
    --particle-color: rgba(156, 39, 176, 0.8);
}

/* 绿色主题 */
[data-theme="green"] {
    --primary-color: #4caf50;
    --secondary-color: #388e3c;
    --accent-color: #66bb6a;
    --gradient-primary: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    --gradient-secondary: linear-gradient(135deg, #66bb6a 0%, #a5d6a7 100%);
    --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.3);
    --grid-color: rgba(76, 175, 80, 0.1);
    --particle-color: rgba(76, 175, 80, 0.8);
}

/* 红色主题 */
[data-theme="red"] {
    --primary-color: #f44336;
    --secondary-color: #d32f2f;
    --accent-color: #ef5350;
    --gradient-primary: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    --gradient-secondary: linear-gradient(135deg, #ef5350 0%, #ffcdd2 100%);
    --shadow-glow: 0 0 30px rgba(244, 67, 54, 0.3);
    --grid-color: rgba(244, 67, 54, 0.1);
    --particle-color: rgba(244, 67, 54, 0.8);
}

/* 青色主题 */
[data-theme="teal"] {
    --primary-color: #009688;
    --secondary-color: #00695c;
    --accent-color: #26a69a;
    --gradient-primary: linear-gradient(135deg, #009688 0%, #4db6ac 100%);
    --gradient-secondary: linear-gradient(135deg, #26a69a 0%, #80cbc4 100%);
    --shadow-glow: 0 0 30px rgba(0, 150, 136, 0.3);
    --grid-color: rgba(0, 150, 136, 0.1);
    --particle-color: rgba(0, 150, 136, 0.8);
}

/* 粉色主题 */
[data-theme="pink"] {
    --primary-color: #e91e63;
    --secondary-color: #c2185b;
    --accent-color: #f06292;
    --gradient-primary: linear-gradient(135deg, #e91e63 0%, #f8bbd9 100%);
    --gradient-secondary: linear-gradient(135deg, #f06292 0%, #f8bbd9 100%);
    --shadow-glow: 0 0 30px rgba(233, 30, 99, 0.3);
    --grid-color: rgba(233, 30, 99, 0.1);
    --particle-color: rgba(233, 30, 99, 0.8);
}

/* 靛蓝主题 */
[data-theme="indigo"] {
    --primary-color: #3f51b5;
    --secondary-color: #303f9f;
    --accent-color: #5c6bc0;
    --gradient-primary: linear-gradient(135deg, #3f51b5 0%, #7986cb 100%);
    --gradient-secondary: linear-gradient(135deg, #5c6bc0 0%, #9fa8da 100%);
    --shadow-glow: 0 0 30px rgba(63, 81, 181, 0.3);
    --grid-color: rgba(63, 81, 181, 0.1);
    --particle-color: rgba(63, 81, 181, 0.8);
}

/* 琥珀主题 */
[data-theme="amber"] {
    --primary-color: #ffc107;
    --secondary-color: #ffa000;
    --accent-color: #ffca28;
    --gradient-primary: linear-gradient(135deg, #ffc107 0%, #ffecb3 100%);
    --gradient-secondary: linear-gradient(135deg, #ffca28 0%, #fff8e1 100%);
    --shadow-glow: 0 0 30px rgba(255, 193, 7, 0.3);
    --grid-color: rgba(255, 193, 7, 0.1);
    --particle-color: rgba(255, 193, 7, 0.8);
}

/* 青蓝主题 */
[data-theme="cyan"] {
    --primary-color: #00bcd4;
    --secondary-color: #0097a7;
    --accent-color: #26c6da;
    --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #80deea 100%);
    --gradient-secondary: linear-gradient(135deg, #26c6da 0%, #b2ebf2 100%);
    --shadow-glow: 0 0 30px rgba(0, 188, 212, 0.3);
    --grid-color: rgba(0, 188, 212, 0.1);
    --particle-color: rgba(0, 188, 212, 0.8);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    gap: 12px;
}

.logo-img {
    border-radius: 12px;
    height: 56px;
    width: 56px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* 主题选择器 */
.theme-selector {
    position: relative;
    margin-left: 20px;
}

.theme-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.theme-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.current-theme {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.theme-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-selector.open .theme-arrow {
    transform: rotate(180deg);
}

.theme-palette {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.theme-selector.open .theme-palette {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.theme-option:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.theme-option.active {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.theme-option::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1001;
}

.theme-option:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 主页面英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* 技术展示区 */
.tech-showcase {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    width: 220px;
    height: 130px;
    background: var(--dark-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.floating-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.floating-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.floating-card span {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0;
    margin: 0;
}

.card-1 {
    top: 50px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 100px;
    right: 0;
    animation-delay: -1.5s;
}

.card-3 {
    bottom: 120px;
    left: 0;
    animation-delay: -3s;
}

.card-4 {
    bottom: 50px;
    right: 20px;
    animation-delay: -4.5s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* 通用区块样式 */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 关于我们 */
.about {
    background: var(--dark-surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 核心优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.advantage-card:hover .card-icon {
    background-color: var(--primary-color);
}

.advantage-card:hover .card-icon i {
    color: var(--bg-primary);
    transform: scale(1.1);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 服务领域 */
.services {
    background: var(--dark-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 合作伙伴 */
.partners {
    padding: 100px 0;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.partner-logo {
    width: 180px;
    height: 160px;
    background: var(--dark-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    overflow: hidden; /* 确保 object-fit:cover 的裁剪效果在容器内 */
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充，可能会裁剪 */
    opacity: 0.9;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}


/* 联系我们 */
.contact {
    background: var(--dark-surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

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

/* 表单样式 */
.contact-form {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.full-width {
    width: 100%;
}

/* 页脚 */
.footer {
    background: var(--dark-surface);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    user-select: text;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.footer-info {
    cursor: default;
    user-select: text;
}

.footer-info h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    cursor: default;
    user-select: text;
}

.footer-info p {
    color: var(--text-muted);
    cursor: default;
    user-select: text;
}

.footer-copyright {
    cursor: default;
    user-select: text;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 14px;
    cursor: default;
    user-select: text;
}

.footer-copyright .icp-info {
    margin-top: 8px;
}

.footer-copyright .icp-info a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}

.footer-copyright .icp-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none; /* 初始隐藏 */
    }

    .nav-menu.active {
        display: flex; /* 点击后显示 */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        padding: 6px 0;
        display: block;
        width: 100%;
        color: var(--primary-color);
        font-weight: 600;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .theme-selector {
        margin-left: 10px;
    }
    
    .theme-trigger {
        padding: 6px 10px;
    }
    
    .current-theme {
        width: 16px;
        height: 16px;
    }
    
    .theme-palette {
        right: -10px;
        min-width: 180px;
        padding: 12px;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .theme-option {
        width: 24px;
        height: 24px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .partner-logo {
        width: auto; /* 宽度自适应 */
        height: auto; /* 高度由 aspect-ratio 决定 */
        aspect-ratio: 18 / 16; /* 保持宽高比 */
        padding: 0; /* 移除内边距以充分利用空间 */
    }
    
    .stats {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .tech-showcase {
        height: 300px;
    }
    
    .floating-card {
        width: 150px;
        height: 100px;
    }
    
    .floating-card img {
        height: 60px;
    }
    
    .floating-card span {
        font-size: 12px;
        padding: 0;
    }
}

/* 响应式设计：移动设备 */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .tech-showcase {
        height: 400px; /* 减小容器高度以适应移动设备 */
    }

    .floating-card {
        width: 150px; /* 减小卡片宽度 */
        height: 100px; /* 减小卡片高度 */
    }

    .floating-card img {
        height: 80px; /* 调整图片高度 */
    }

    .floating-card span {
        font-size: 12px; /* 调整字体大小 */
    }

    .card-1 {
        top: 20px;
        left: 10px;
    }

    .card-2 {
        top: 60px;
        right: 10px;
    }

    .card-3 {
        bottom: 100px;
        left: 10px;
    }

    .card-4 {
        bottom: 60px;
        right: 10px;
    }
}
