/* 
 * 学海智联 - 组件CSS文件
 * 包含首页和特色页面的组件样式
 */

/* ===== 英雄区域样式 ===== */
.hero {
    padding: 180px 0 100px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content .subtitle {
    color: #333333;
    font-weight: normal;
    display: block;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero-content .gradient-text {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    font-size: 3.6rem;
    font-weight: 700;
    display: block;
}

.hero-content .typewriter,
.typewriter {
    position: relative;
    white-space: nowrap;
}

.typewriter-container {
    display: inline-block;
    position: relative;
}

.typewriter {
    font-size: 3.6rem;
    font-weight: 700;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
    visibility: hidden;
}

#typing-text {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3.6rem;
    font-weight: 700;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

#cursor {
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--gray-color);
    line-height: 1.7;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin-left: 30px;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.hero-device {
    transform-origin: center center;
    transition: transform 0.5s ease-in-out;
}

.hero-device:hover {
    transform: scale(1.02) translateY(-5px);
}

/* 粒子背景 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 浮动形状装饰 */
.floating-shape {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.shape1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2) 0%, rgba(66, 133, 244, 0.05) 100%);
    top: -20px;
    right: 10%;
    animation-delay: 1s;
}

.shape2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.2) 0%, rgba(234, 67, 53, 0.05) 100%);
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

/* 动画文字效果 */
.animated-heading {
    position: relative;
}

.gradient-text {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

/* 统计数据 */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.stat-item {
    flex: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--gray-color);
    border-radius: 2px;
    margin-top: 10px;
    animation: scroll 1.5s infinite;
}

.arrow {
    font-size: 1.2rem;
    color: var(--gray-color);
    animation: bounce 2s infinite;
}

/* ===== 关于部分 ===== */
.about {
    background-color: #fff;
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-image-slice: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.about-card:hover .icon {
    transform: scale(1.1);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* ===== 特性部分 ===== */
.features {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/pattern-bg.svg') no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(52, 168, 83, 0.1);
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(52, 168, 83, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    min-height: 70px;
}

.feature-card .btn {
    margin-top: 10px;
}

/* 更新按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

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

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3367d6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.btn.primary:hover {
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6);
    transform: translateY(-2px);
}

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

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 定义动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

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

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* 媒体查询优化 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content .subtitle {
        font-size: 2rem;
    }
    
    .hero-content .gradient-text {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 160px 0 80px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.8rem;
    }
    
    .hero-content .gradient-text {
        font-size: 2.6rem;
    }
    
    .hero-description {
        max-width: 100%;
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
        margin-left: 0;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-card,
    .feature-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.6rem;
    }
    
    .hero-content .gradient-text {
        font-size: 2.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .typewriter {
        font-size: 2rem;
        animation-duration: 2.5s;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.4rem;
    }
    
    .hero-content .gradient-text {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* ===== 产品生态 ===== */
.ecosystem {
    background-color: #fff;
    padding: 100px 0;
}

.ecosystem-diagram {
    max-width: 900px;
    margin: 50px auto;
    position: relative;
    text-align: center;
}

.ecosystem-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.ecosystem-image:hover {
    transform: scale(1.02);
}

.ecosystem-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pillar {
    background-color: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.pillar:hover::before {
    transform: scaleX(1);
}

.pillar:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    font-size: 3rem;
    width: 100px;
    height: 100px;
    line-height: 100px;
    margin: 0 auto 25px;
    color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pillar:hover .pillar-icon {
    transform: scale(1.1);
    background-color: rgba(66, 133, 244, 0.2);
}

.pillar h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.pillar p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* ===== 平台截图展示 ===== */
.screenshots {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.screenshots::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/pattern-bg.svg') no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.screenshots-slider {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
    z-index: 1;
}

.screenshot-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-10px);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #f0f0f0;
}

.screenshot-caption {
    padding: 25px;
    text-align: center;
}

.screenshot-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.screenshot-caption p {
    color: var(--gray-color);
}

.screenshot-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.screenshot-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.screenshot-nav:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.screenshot-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.dot:hover {
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* 深色模式适配 */
body.dark-mode .screenshots {
    background-color: #1a1a1a;
}

body.dark-mode .screenshot-item {
    background-color: #2a2a2a;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .screenshot-caption h3 {
    color: #fff;
}

body.dark-mode .screenshot-caption p {
    color: #bbb;
}

body.dark-mode .screenshot-nav {
    background-color: #333;
    color: #fff;
}

body.dark-mode .dot {
    background-color: #555;
}

body.dark-mode .pillar {
    background-color: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .pillar h3 {
    color: #fff;
}

body.dark-mode .pillar p {
    color: #bbb;
}

/* 媒体查询调整 */
@media (max-width: 992px) {
    .ecosystem-pillars {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .pillar-icon {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
        line-height: 80px;
    }
    
    .pillar {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .ecosystem-pillars {
        grid-template-columns: 1fr;
    }
    
    .screenshot-caption {
        padding: 20px;
    }
    
    .screenshot-caption h3 {
        font-size: 1.3rem;
    }
}

/* ===== 技术架构 ===== */
.technology {
    background-color: #f8f9fa;
}

.tech-stack, .tech-risks {
    margin-bottom: 60px;
}

.tech-stack h3, .tech-risks h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.tech-grid, .risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tech-card, .risk-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.tech-card:hover, .risk-card:hover {
    transform: translateY(-5px);
}

.tech-icon, .risk-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.tech-card h4, .risk-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-card p, .risk-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== 联系表单 ===== */
.contact {
    background-color: #fff;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent-color);
}

.form-group input.filled,
.form-group textarea.filled {
    border-color: var(--secondary-color);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.success-message {
    text-align: center;
    display: none;
}

.success-message i {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--gray-color);
}

/* ===== 特色页面样式 ===== */
.feature-hero {
    background-color: #f5f8ff;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/pattern-bg.svg') no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.feature-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.feature-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* 功能详情部分 */
.section-padding {
    padding: 80px 0;
}

.section-light {
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 20px auto 0;
}

/* 功能卡片网格 */
.feature-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-detail-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-detail-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-detail-icon i {
    font-size: 30px;
    color: white;
}

.feature-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-detail-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 技术原理部分 */
.tech-principles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-principle {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tech-principle h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tech-principle p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 用户体验部分 */
.ux-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.ux-text {
    flex: 1;
}

.ux-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.ux-text p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.ux-image {
    flex: 1;
    text-align: center;
}

.ux-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* CTA部分 */
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 字体回退和错误防护样式 */
body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, span {
    visibility: visible !important;
    opacity: 1 !important;
}

img {
    min-height: 50px;
    background-color: #f5f5f5;
    max-width: 100%;
    height: auto;
}

img[src=""], img:not([src]) {
    visibility: hidden;
}

a[href=""], a:not([href]) {
    pointer-events: none;
}

/* 区域最小高度保证内容可见 */
section {
    min-height: 100px;
    display: block !important;
}

.container {
    min-height: 50px;
    display: block !important;
}

/* 图标防护样式 */
.feature-detail-icon i,
[class^="fas"],
[class^="fab"],
[class^="far"],
.fa,
.fas,
.fab,
.far {
    display: inline-block;
    width: 1em;
    height: 1em;
    font-style: normal;
}

/* 深色模式适配 */
body.dark-mode .feature-hero {
    background-color: #1a1a1a;
}

body.dark-mode .feature-hero h1 {
    color: #5f9efa;
}

body.dark-mode .feature-hero p {
    color: #bbb;
}

body.dark-mode .section-light {
    background-color: #222;
}

body.dark-mode .section-header h2 {
    color: #fff;
}

body.dark-mode .feature-detail-card,
body.dark-mode .tech-principle {
    background-color: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .feature-detail-card h3,
body.dark-mode .tech-principle h3 {
    color: #5f9efa;
}

body.dark-mode .feature-detail-card p,
body.dark-mode .tech-principle p,
body.dark-mode .ux-text p {
    color: #bbb;
}

body.dark-mode .ux-text h3 {
    color: #5f9efa;
}

body.dark-mode .cta-content h2 {
    color: #fff;
}

body.dark-mode .cta-content p {
    color: #bbb;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .ux-content {
        flex-direction: column;
    }
    
    .ux-text, .ux-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .feature-hero {
        padding: 120px 0 60px;
    }
    
    .feature-hero h1 {
        font-size: 2rem;
    }
    
    .feature-hero p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-details-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-principles-container {
        grid-template-columns: 1fr;
    }
    
    .ux-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.tech-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.tech-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
}

.tech-card p {
    color: var(--gray-color);
    line-height: 1.7;
    text-align: justify;
    flex: 1;
}

/* 打字机效果优化 */
.gradient-text.typewriter {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.hero-content .typewriter,
.typewriter {
    position: relative;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    display: inline-block;
    width: fit-content;
    animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .typewriter {
        font-size: 2rem;
        animation-duration: 2.5s;
    }
} 