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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 50;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    flex-wrap: wrap;
}

nav .flex {
    flex: 1;
}

nav .md\:flex {
    flex: 2;
    justify-content: center;
}

nav .md\:block {
    flex: 1;
    text-align: right;
}

nav .flex {
    display: flex;
    align-items: center;
}

nav .space-x-2 {
    gap: 8px;
}

nav .text-xl {
    font-size: 1.25rem;
}

nav .font-bold {
    font-weight: 700;
}

nav .hidden {
    display: none;
}

@media (min-width: 768px) {
    nav .md\:flex {
        display: flex;
    }
    
    nav .md\:hidden {
        display: none;
    }
    
    nav .space-x-8 {
        gap: 32px;
    }
}

nav a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #3b82f6;
}

nav .bg-primary {
    background-color: #3b82f6;
}

nav .text-white {
    color: white;
}

nav .px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

nav .py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

nav .rounded-lg {
    border-radius: 0.5rem;
}

nav .hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

/* Hero 区域 */
section.pt-32 {
    padding-top: 8rem;
}

section.pb-20 {
    padding-bottom: 5rem;
}

section.bg-gradient-to-br {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}

section .flex {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    section .md\:flex-row {
        flex-direction: row;
    }
    
    section .md\:w-1\/2 {
        width: 50%;
    }
    
    section .md\:mb-0 {
        margin-bottom: 0;
    }
}

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

section .mb-10 {
    margin-bottom: 2.5rem;
}

section .text-4xl {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    section .md\:text-5xl {
        font-size: 3rem;
    }
}

section .text-primary {
    color: #3b82f6;
}

section .text-lg {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
}

section .space-y-4 {
    gap: 1rem;
}

@media (min-width: 640px) {
    section .sm\:flex-row {
        flex-direction: row;
    }
    
    section .sm\:space-y-0 {
        gap: 0;
    }
    
    section .sm\:space-x-4 {
        gap: 1rem;
    }
}

section .px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

section .py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

section .text-center {
    text-align: center;
}

section .font-medium {
    font-weight: 500;
}

section .border {
    border: 1px solid #3b82f6;
}

section .hover\:bg-primary:hover {
    background-color: #3b82f6;
}

section .hover\:text-white:hover {
    color: white;
}

section img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

/* 服务区域 */
section.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section.bg-white {
    background-color: white;
}

section .text-3xl {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

section .max-w-2xl {
    max-width: 42rem;
}

section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

section .mb-16 {
    margin-bottom: 4rem;
}

section .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    section .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

section .p-8 {
    padding: 2rem;
}

section .bg-light {
    background-color: #f8fafc;
}

section .shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section .hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

section .transition-shadow {
    transition: box-shadow 0.3s ease;
}

section .w-16 {
    width: 4rem;
}

section .h-16 {
    height: 4rem;
}

section .rounded-full {
    border-radius: 9999px;
}

section .bg-blue-100 {
    background-color: #dbeafe;
}

section .bg-green-100 {
    background-color: #d1fae5;
}

section .bg-purple-100 {
    background-color: #f3e8ff;
}

section .text-secondary {
    color: #10b981;
}

section .text-purple-600 {
    color: #9333ea;
}

section .text-2xl {
    font-size: 1.5rem;
}

section .font-semibold {
    font-weight: 600;
}

section .mb-6 {
    margin-bottom: 1.5rem;
}

section .mb-4 {
    margin-bottom: 1rem;
}

section .text-gray-600 {
    color: #64748b;
}

/* 联系我们 */
section.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

section .max-w-md {
    max-width: 28rem;
}

section .bg-white\/10 {
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

section .bg-white\/10:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

section .backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

section .flex {
    display: flex;
}

section .items-start {
    align-items: flex-start;
}

section .w-10 {
    width: 2.5rem;
}

section .h-10 {
    height: 2.5rem;
}

section .mr-4 {
    margin-right: 1rem;
}

section .bg-white\/20 {
    background-color: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

section .bg-white\/20:hover {
    background-color: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* 联系我们卡片 */
.contact-card {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.contact-card h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-card p:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
    }
    
    .contact-card p {
        font-size: 1rem;
    }
}

/* 页脚 */
footer {
    background-color: #1e293b;
    color: white;
    padding: 2rem 0;
}

footer .text-gray-400 {
    color: #94a3b8;
}

footer .mb-4 {
    margin-bottom: 1rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #3b82f6;
}

/* 回到顶部按钮 */
button.fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #3b82f6;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
    opacity: 0;
    visibility: hidden;
}

button.fixed:hover {
    background-color: #2563eb;
}

button.fixed.opacity-100 {
    opacity: 1;
}

button.fixed.visible {
    visibility: visible;
}

/* FontAwesome 字体 */
@font-face {
    font-family: 'FontAwesome';
    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');
    font-weight: normal;
    font-style: normal;
}

/* 图标 */
.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-cloud:before {
    content: "\f0c2";
}

.fa-mobile:before {
    content: "\f10b";
}

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

.fa-arrow-up:before {
    content: "\f062";
}

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