/* 主要样式 */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --dark-text: #111827;
    --text-color: #374151;
    --light-text: #6b7280;
    --white-color: #ffffff;
    --light-bg: #f8fafc;
    --dark-bg: #111827;
    --card-bg: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    --gradient-bg: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    --gradient-btn: linear-gradient(90deg, #3b82f6, #7c3aed);
    --font-family-base: 'HarmonyOS Sans SC', 'HarmonyOS Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'HarmonyOS Sans SC', 'HarmonyOS Sans', sans-serif;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-bg);
    overflow-x: hidden;
    padding-top: 76px; /* 添加与导航栏高度对应的顶部内边距 */
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

/* 段落文字 */
p {
    font-family: var(--font-family-base);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 首页标题 */
header {
    background: var(--gradient-bg);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* 抵消body的padding-top */
}

/* AI科技网格背景 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 25%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 20%);
    z-index: 1;
}

/* 添加流动线条效果 */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header .lead {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 域名卡片 */
.domain-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 40px 30px !important;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-btn);
}

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

/* 特色列表 */
.feature {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.feature:hover {
    transform: translateX(5px);
    background-color: rgba(59, 130, 246, 0.05);
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 3px rgba(59, 130, 246, 0.3));
}

.feature-text {
    font-family: var(--font-family-base);
    color: var(--text-color);
    font-weight: 500;
}

/* 联系信息 */
.contact-info {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 卡片样式 */
.card {
    font-family: var(--font-family-base);
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--card-bg);
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-bg);
    opacity: 0.1;
    z-index: 0;
}

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

.card-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: var(--font-family-heading);
    margin-bottom: 20px;
    color: var(--dark-text);
    font-weight: 700;
}

.card-title i {
    color: var(--primary-color);
}

.card-text {
    font-family: var(--font-family-base);
    color: var(--text-color);
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    background-color: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: var(--font-family-base);
}

.navbar-scrolled {
    padding: 10px 0;
    background-color: rgba(17, 24, 39, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* LOGO特效 */
@keyframes logoGlow {
    0% {
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        background-position: 0% 50%;
    }
    50% {
        text-shadow: 0 0 15px rgba(124, 58, 237, 0.8);
        background-position: 100% 50%;
    }
    100% {
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        background-position: 0% 50%;
    }
}

.navbar-brand {
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--white-color) !important;
    background: linear-gradient(to right, #3b82f6, #7c3aed, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 8s ease infinite;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(to right, rgba(59, 130, 246, 0), rgba(124, 58, 237, 0.8), rgba(59, 130, 246, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

/* 金刚区导航特效 */
.nav-link {
    font-family: var(--font-family-base);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
    top: 0;
    left: -100%;
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 4px;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #7c3aed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* 滚动指示器 */
.nav-active-indicator {
    position: absolute;
    height: 2px;
    bottom: 0;
    background: linear-gradient(to right, #3b82f6, #7c3aed);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 按钮样式 */
.btn {
    font-family: var(--font-family-base);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--gradient-btn);
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    color: var(--white-color);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--white-color);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.btn-outline-light {
    border-color: var(--white-color);
    color: var(--white-color);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white-color);
    color: var(--white-color);
}

/* 底部 */
footer {
    font-family: var(--font-family-base);
    background-color: var(--dark-bg);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0), 
        rgba(59, 130, 246, 0.5) 50%, 
        rgba(59, 130, 246, 0) 100%);
}

footer p {
    color: var(--white-color);
    opacity: 0.8;
}

/* 节间距 */
section {
    padding: 80px 0;
    position: relative;
}

#features {
    background-color: var(--white-color);
}

#use-cases {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

#use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#contact {
    background-color: var(--white-color);
}

/* 动画类 */
.animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* AI科技效果元素 */
.ai-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(124, 58, 237, 0) 70%);
    z-index: 0;
}

.ai-orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.ai-orb-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0) 70%);
}

/* AI粒子效果 */
.ai-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 1199.98px) {
    header h1 {
        font-size: 3.5rem;
    }
    
    section {
        padding: 70px 0;
    }
}

@media (max-width: 991.98px) {
    header h1 {
        font-size: 3rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar-collapse {
        background-color: rgba(17, 24, 39, 0.98);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-link {
        text-align: center;
        margin: 5px 0;
    }
    
    .dropdown-menu {
        background-color: rgba(17, 24, 39, 0.8);
        border: none;
        text-align: center;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 60px; /* 调整小屏幕导航栏的高度 */
    }
    
    header {
        padding: 80px 0 60px;
        margin-top: -60px; /* 调整小屏幕导航栏的高度 */
    }
    
    header h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    header .lead {
        font-size: 1.2rem;
    }
    
    .domain-card {
        margin-top: 40px;
        padding: 30px 20px !important;
    }
    
    section {
        padding: 50px 0;
    }
    
    .card-body {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    /* 调整移动端按钮组 */
    header .btn-lg {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    /* 改进移动端导航 */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* 改进移动端的卡片样式 */
    .card {
        margin-bottom: 25px;
    }
    
    .card:hover {
        transform: translateY(-5px); /* 减小在移动设备上的悬停动画幅度 */
    }
    
    /* 减少移动端的间距 */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, 
    .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, 
    .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, 
    .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, 
    .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, 
    .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, 
    .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, 
    .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, 
    .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, 
    .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, 
    .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, 
    .col-xl-auto {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 56px; /* 进一步减小导航栏高度 */
    }
    
    header {
        padding: 60px 0 40px;
        margin-top: -56px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header .lead {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    /* 调整按钮在小屏幕上的布局 */
    header .btn-group-lg > .btn, 
    header .btn-lg {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* 减小section标题字体大小 */
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    /* 改进卡片和特性布局 */
    .card-title {
        font-size: 1.25rem;
    }
    
    .feature {
        padding: 10px;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    /* 调整小屏幕上的区域间距 */
    section {
        padding: 40px 0;
    }
    
    /* 缩小按钮大小 */
    #use-cases .btn-lg {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    /* 优化小屏幕文字大小 */
    .lead {
        font-size: 1rem !important;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* 优化底部在小屏幕上的显示 */
    footer {
        padding: 20px 0;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    /* 调整联系卡片样式 */
    .domain-card {
        padding: 25px 15px !important;
    }
    
    .domain-card .fa-3x {
        font-size: 2.5em;
    }
    
    .domain-card h4 {
        font-size: 1.25rem;
    }
    
    .domain-card .fs-5 {
        font-size: 1rem !important;
    }
}

/* 特别小的屏幕尺寸优化 */
@media (max-width: 359.98px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    header .lead {
        font-size: 1rem;
    }
    
    /* 调整超小屏幕上的布局 */
    header .btn {
        display: block;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    /* 进一步简化卡片显示 */
    .card-body {
        padding: 20px 15px;
    }
    
    /* 减少超小屏幕上的间距 */
    section {
        padding: 30px 0;
    }
    
    /* 调整小屏幕上的文字大小 */
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    p {
        font-size: 0.9rem;
    }
}

/* 移动设备上的触摸反馈 */
.touch-active {
    transition: transform 0.15s ease !important;
    transform: scale(0.97) !important;
}

/* 优化移动设备上的表单元素 */
@media (max-width: 767.98px) {
    input, select, textarea, button {
        font-size: 16px !important; /* 避免iOS上自动缩放 */
    }
    
    /* 改进按钮的可点击区域 */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 确保所有元素的可点击区域足够大 */
    .navbar-toggler {
        padding: 8px 10px;
        margin-right: -5px;
    }
    
    /* 改进滚动体验 */
    html, body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 禁用长按选择文本 */
    p, h1, h2, h3, h4, h5, h6, .btn, .card, .feature, .navbar, .domain-card {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 可选择的文本元素 */
    a[href^="mailto:"], .fs-5 {
        -webkit-touch-callout: default;
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* 优化导航栏位置 */
    .navbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    /* 改进下拉菜单触摸体验 */
    .dropdown-menu {
        min-width: 10rem;
        padding: 0.75rem 0;
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
    }
    
    /* 为移动端优化的卡片样式 */
    .card, .domain-card {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* 处理iPhone上的安全区域 */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: calc(76px + env(safe-area-inset-top));
    }
    
    .navbar {
        padding-top: calc(15px + env(safe-area-inset-top));
    }

    @media (max-width: 767.98px) {
        body {
            padding-top: calc(60px + env(safe-area-inset-top));
        }
        
        .navbar {
            padding-top: calc(10px + env(safe-area-inset-top));
        }
    }
    
    @media (max-width: 575.98px) {
        body {
            padding-top: calc(56px + env(safe-area-inset-top));
        }
        
        header {
            margin-top: calc(-56px - env(safe-area-inset-top));
        }
    }
}

/* 增强移动端导航体验 */
@media (max-width: 767.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    /* 增强移动端的点击区域 */
    .feature, .card-title, .card-body {
        position: relative;
    }
    
    .feature::after, .card-title::after, .card-body::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
}

/* 下拉菜单 */
.dropdown-menu {
    font-family: var(--font-family-base);
}

.dropdown-item {
    font-family: var(--font-family-base);
} 