/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8cc066;
    --primary-dark: #6a9c4d;
    --secondary-color: #a8d672;
    --accent-color: #7ab84d;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-dark: #0f172a;
    --border-color: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}



.nav-logo:hover .logo-image {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.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(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.theme-toggle {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-icon {
    width: 1em;
    text-align: center;
}


[data-theme="dark"] .theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 主题切换按钮动画 */
.theme-switching {
    animation: themeRotate 0.3s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
}

@keyframes themeRotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bar {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* 移动菜单样式 */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 280px;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    padding: 1.5rem 0;
    transition: right 0.3s ease;
    display: none;
    box-shadow: var(--shadow-xl);
    border-radius: 8px 0 0 8px;
    margin-top: 8px;
    margin-right: 8px;
}

[data-theme="dark"] .mobile-menu {
    background: rgba(17, 24, 39, 0.98);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* 汉堡菜单动画 */
.bar.active:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.bar.active:nth-child(2) {
    opacity: 0;
}

.bar.active:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

/* Hero区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 轮播背景 */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* 轮播背景图片样式 */
.carousel-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 文字遮罩层 - 适应主题色变化 */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(15, 23, 42, 0.7) 100%
    );
    z-index: 1;
}

[data-theme="dark"] .text-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(15, 23, 42, 0.8) 100%
    );
}

[data-theme="light"] .text-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* 轮播控制 */
.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 10;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
    width: 100%;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}


/* 数据流效果 */
.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 服务卡片样式 */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .service-card {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}


.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.service-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 3px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    margin-top: auto;
    padding-top: 1rem;
}

.service-features li {
    padding: 0.625rem 0 0.625rem 1.5rem;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.4;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .service-features li {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 技术优势样式 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .advantage-item {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advantage-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* 客户案例样式 */
.cases {
    background: var(--bg-secondary);
}

[data-theme="dark"] .cases {
    background: var(--bg-primary);
}

.cases-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: 0 60px;
    touch-action: pan-y pinch-zoom;
    width: 100%;
}

.cases-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
    flex: 1;
    cursor: grab;
    width: 100%;
}

.cases-track:active {
    cursor: grabbing;
}

.case-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .case-card {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.case-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    font-size: 1rem;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.stat {
    text-align: left;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 案例轮播控制 */
.case-prev,
.case-next {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.case-prev {
    left: 0;
}

.case-next {
    right: 0;
}

.case-prev i,
.case-next i {
    font-size: 1.2rem;
}

.case-prev:hover,
.case-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* 合作伙伴样式 */
.partners {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.partners-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

[data-theme="dark"] .partners-item {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.partners-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.partners-logo {
    position: relative;
    width: 60px;
    height: 45px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-logo-img {
    position: relative;
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partners-item:hover .partners-logo-img {
    transform: scale(1.1);
}

.partners-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* 合作伙伴响应式设计 */
@media (max-width: 1200px) and (min-width: 769px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* 响应式设计 - 桌面版一页显示3个卡片 */
@media (min-width: 1200px) {
    .case-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .case-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .cases-carousel {
        padding: 0 50px;
    }
    
    .case-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .case-prev,
    .case-next {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* 平板设备 - 两行显示 */
@media (max-width: 768px) and (min-width: 481px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .partners-item {
        padding: 1.25rem 0.75rem;
    }
    
    .partners-logo {
        width: 70px;
        height: 50px;
    }
    
    .partners-logo-img {
        max-width: 50px;
        max-height: 35px;
    }
}

@media (max-width: 767px) {
    .cases-carousel {
        padding: 0 40px;
    }
    
    .case-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .case-prev,
    .case-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partners-item {
        padding: 1.25rem 0.75rem;
    }
    
    .partners-logo {
        width: 70px;
        height: 50px;
    }
    
    .partners-logo-img {
        max-width: 50px;
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .cases-carousel {
        padding: 0 30px;
    }
    
    .case-prev,
    .case-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .partners-item {
        padding: 1rem 0.5rem;
    }
    
    .partners-logo {
        width: 60px;
        height: 45px;
    }
    
    .partners-logo-img {
        max-width: 45px;
        max-height: 30px;
    }

    .partner-item p {
        font-size: 0.8rem;
    }
}

/* 联系表单样式 */
.contact {
    background: var(--bg-dark);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.contact-info img:hover {
    opacity: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
}

.contact-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}


.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

/* 确保下拉选择框选项文字颜色正确 */
.form-group select option {
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* 下拉选择框占位符样式 */
.form-group select:invalid {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.form-group select option {
    color: white;
}

.form-group select option[value=""] {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(122, 184, 77, 0.2);
}

.form-group select {
    appearance: none;
    background-image: none;
    padding-right: 16px;
}

/* 页脚样式 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

[data-theme="dark"] .footer {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 11rem;
    opacity: 0.5;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.9s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo:hover {
    opacity: 0.8;
}

/* 页脚整体区块鼠标滑入效果 - 从浅灰到高亮 */
.footer-content {
    transition: all 0.3s ease;
}

.footer-content:hover .footer-logo {
    opacity: 0.9;
    filter: brightness(1.3);
}

.footer-content:hover .footer-section h4 {
    opacity: 1;
}

.footer-content:hover .footer-section p {
    opacity: 1;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.9s ease;
    opacity: 0.5;
}

.footer-section p {
    line-height: 1.6;
    font-size: 1rem;
    transition: all 0.9s ease;
    opacity: 0.5;
}


[data-theme="dark"] .footer-section p {
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;

}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* 返回顶端按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        display: flex;
        align-items: center;
    }

    /* 确保菜单按钮在移动端可见 */
    .nav-toggle .bar {
        background: white;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        display: flex;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /* 案例轮播响应式 */
    .cases-carousel {
        padding: 0 20px;
    }

    .case-card {
        flex: 0 0 calc(100% - 1rem);
    }

    .cases-controls {
        flex-direction: column;
        gap: 15px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .case-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* 案例轮播响应式 */
    .cases-carousel {
        gap: 10px;
    }

    .case-card {
        flex: 0 0 calc(100% - 1rem);
    }

    .case-prev,
    .case-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* 返回顶端按钮响应式 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .advantage-item,
    .case-card .case-content {
        padding: 3.5rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
}
