/* 自定义样式 - 木林韩科技工作室 */

/* 全局变量 */
:root {
    --primary-color: #1de9b6;
    --secondary-color: #000000;
    --accent-color: #3d5afe;
    --text-dark: #212529;
    --text-light: #868e96;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1de9b6 0%, #00e676 100%);
    --gradient-secondary: linear-gradient(135deg, #3d5afe 0%, #1de9b6 100%);
    --shadow-light: 0 2px 10px rgba(29, 233, 182, 0.1);
    --shadow-medium: 0 5px 25px rgba(29, 233, 182, 0.15);
    --shadow-heavy: 0 10px 40px rgba(29, 233, 182, 0.2);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 0;
    /* 移动端优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许文本选择 */
p, span, div, h1, h2, h3, h4, h5, h6, li, td, th {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 移动端滚动优化 */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 防止移动端意外缩放 */
input, textarea, select {
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 确保容器正确显示 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

@media (max-width: 991.98px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(29, 233, 182, 0.1);
    transition: var(--transition-fast);
    padding: 1rem 0;
    min-height: 80px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-light);
    padding: 0.5rem 0;
    min-height: 70px;
}

/* 导航栏容器 */
.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧品牌区域 */
.navbar-brand-wrapper {
    flex: 0 0 auto;
}

/* 右侧导航区域 */
.navbar-nav-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: scale(1.02);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 导航链接样式 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 30px;
    transition: var(--transition-fast);
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(29, 233, 182, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 233, 182, 0.15);
}

.nav-link.active {
    color: white !important;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(29, 233, 182, 0.3);
}

.nav-link.active:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 233, 182, 0.4);
}

/* 导航栏切换按钮样式 */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 233, 182, 0.25);
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(29, 233, 182, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* 移动端导航样式 - 全面优化 */

/* 平板和大屏手机导航 (768px-991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.2rem;
        box-shadow: var(--shadow-light);
        border: 1px solid rgba(29, 233, 182, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 0;
    }
    
    .nav-link {
        text-align: center;
        margin: 0.25rem 0;
        padding: 0.9rem 1.2rem !important;
        border-radius: 12px;
        width: 100%;
        font-size: 1rem;
    }
    
    .navbar-toggler {
        margin-left: auto;
        padding: 0.4rem 0.6rem;
    }
}

/* 标准手机导航 (480px-767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 0.8rem;
        padding: 1rem;
        box-shadow: var(--shadow-light);
        border: 1px solid rgba(29, 233, 182, 0.1);
        backdrop-filter: blur(8px);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.6rem;
        padding-top: 0;
    }
    
    .nav-link {
        text-align: center;
        margin: 0.2rem 0;
        padding: 0.8rem 1rem !important;
        border-radius: 10px;
        width: 100%;
        font-size: 0.95rem;
    }
    
    .navbar-toggler {
        margin-left: auto;
        padding: 0.3rem 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 1.3em;
        height: 1.3em;
    }
}

/* 小屏手机导航 (360px-479px) */
@media (max-width: 479px) and (min-width: 360px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 0.6rem;
        padding: 0.8rem;
        box-shadow: var(--shadow-light);
        border: 1px solid rgba(29, 233, 182, 0.1);
        backdrop-filter: blur(6px);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.4rem;
        padding-top: 0;
    }
    
    .nav-link {
        text-align: center;
        margin: 0.15rem 0;
        padding: 0.7rem 0.8rem !important;
        border-radius: 8px;
        width: 100%;
        font-size: 0.9rem;
    }
    
    .navbar-toggler {
        margin-left: auto;
        padding: 0.25rem 0.4rem;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

/* 超小屏手机导航 (≤359px) */
@media (max-width: 359px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.6rem;
        box-shadow: var(--shadow-light);
        border: 1px solid rgba(29, 233, 182, 0.1);
        backdrop-filter: blur(4px);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.3rem;
        padding-top: 0;
    }
    
    .nav-link {
        text-align: center;
        margin: 0.1rem 0;
        padding: 0.6rem 0.6rem !important;
        border-radius: 6px;
        width: 100%;
        font-size: 0.85rem;
    }
    
    .navbar-toggler {
        margin-left: auto;
        padding: 0.2rem 0.3rem;
    }
    
    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
    }
}

/* 主页横幅样式 */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-title .subtitle {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

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

.hero-buttons {
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    filter: drop-shadow(0 10px 30px rgba(29, 233, 182, 0.2));
    transition: var(--transition-medium);
}

.hero-image:hover img {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 15px 40px rgba(29, 233, 182, 0.3));
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* 按钮样式 */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* 特色功能区域 */
.features-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(29, 233, 182, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.05;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(29, 233, 182, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon .icon {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon .icon {
    stroke: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 关于我们区域 */
.about-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.about-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    max-width: 100%;
    height: auto;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* 联系我们区域 */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(29, 233, 182, 0.1);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

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

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 页脚样式 */
.footer {
    background: var(--text-dark);
    color: var(--bg-light);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-text {
    color: #adb5bd;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -10px;
}

.contact-info p {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-color: #495057;
    margin: 2rem 0;
}

.copyright,
.icp {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.copyright {
    text-align: left;
}

.icp {
    text-align: right;
}

@media (max-width: 768px) {
    .copyright,
    .icp {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

.icp a {
    color: #6c757d;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(29, 233, 182, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(29, 233, 182, 0.8);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* 响应式设计 - 全面优化移动端适配 */

/* 超大屏幕 (≥1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* 大屏幕 (1200px-1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* 中等屏幕 (992px-1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* 平板横屏 (768px-991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-description {
        text-align: center;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 2rem;
        padding: 2.5rem 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
}

/* 平板竖屏和大手机 (576px-767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .hero-section {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-title .subtitle {
        font-size: 1.6rem;
        display: block;
        margin-top: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .feature-card,
    .contact-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        min-width: 140px;
    }
    
    .btn-lg {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 25px;
        right: 25px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* 标准手机 (480px-575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .hero-section {
        padding-top: 90px;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.4;
    }
    
    .hero-title .subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .contact-card {
        padding: 1.8rem 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* 小屏手机 (360px-479px) */
@media (max-width: 479px) and (min-width: 360px) {
    .hero-section {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.4;
    }
    
    .hero-title .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .contact-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .btn-lg {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* 超小屏手机 (≤359px) */
@media (max-width: 359px) {
    .hero-section {
        padding-top: 70px;
        min-height: 75vh;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-title .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.8;
        padding: 0;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .feature-card,
    .contact-card {
        padding: 1.2rem 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .btn {
        padding: 6px 16px;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .btn-lg {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 15px;
        right: 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e676;
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 移动端优化 - 触摸友好和性能优化 */

/* 触摸目标最小尺寸 */
@media (max-width: 991px) {
    .btn,
    .nav-link,
    .navbar-toggler,
    .back-to-top {
        min-height: 44px; /* Apple推荐的最小触摸目标 */
        min-width: 44px;
    }
    
    /* 优化触摸反馈 */
    .btn:active,
    .nav-link:active,
    .navbar-toggler:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 移动端文本优化 */
@media (max-width: 767px) {
    /* 防止文本过小 */
    body {
        font-size: 16px; /* 防止iOS缩放 */
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* 优化行高和字间距 */
    p, .hero-description {
        line-height: 1.6;
        letter-spacing: 0.3px;
    }
    
    /* 优化标题层次 */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
}

/* 移动端布局优化 */
@media (max-width: 575px) {
    /* 优化间距 */
    section {
        padding: 3rem 0;
    }
    
    .container {
        width: 100%;
    }
    
    /* 优化卡片布局 */
    .row {
        margin: 0 -8px;
    }
    
    .col-md-4,
    .col-md-6,
    .col-lg-4,
    .col-lg-6 {
        padding: 0 8px;
        margin-bottom: 1rem;
    }
    
    /* 优化图片响应式 */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* 移动端性能优化 */
@media (max-width: 991px) {
    /* 减少动画复杂度 */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* 优化滚动性能 */
    .hero-section,
    .navbar {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    /* 减少重绘 */
    .feature-card,
    .contact-card {
        will-change: transform;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .navbar {
        min-height: 50px;
    }
}

/* 可访问性优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        border-color: currentColor;
    }
}

/* 暗色模式基础支持 - 已禁用以保持一致的浅色主题 */
/* 
@media (prefers-color-scheme: dark) {
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        border-color: rgba(29, 233, 182, 0.2);
    }
    
    .nav-link {
        color: #f8f9fa;
    }
}
*/