/* 重置一些基础样式 */
* {
    box-sizing: border-box;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-pattern.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    margin-right: 8px;
    font-size: 16px;
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight-text {
    background: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: white !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    color: white !important;
}

.btn-primary.large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-secondary {
    background: transparent;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
}

.btn-secondary.large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-primary .iconfont,
.btn-secondary .iconfont {
    margin-left: 8px;
    font-size: 14px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -15%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 20px;
}

.card-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 功能区域 */
.features-section {
    padding: 100px 0;
    background: #f8fafc;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.feature-card.featured {
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 32px;
}

.feature-icon .iconfont {
    font-size: 60px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    background: #e0e7ff;
    color: #5b21b6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 使用场景区域 */
.scenarios-section {
    padding: 100px 0;
    background: white;
}

.scenarios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.scenario-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.scenario-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.scenario-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.scenario-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.scenario-card p {
    color: #64748b;
    line-height: 1.6;
}

/* 产品优势区域 */
.advantages-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-content p {
    opacity: 0.9;
    line-height: 1.6;
}

.advantage-chart {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffd89b, #19547b);
    border-radius: 6px;
    width: 0;
    transition: width 2s ease;
}

.chart-label {
    font-size: 16px;
    font-weight: 500;
}

/* 下载区域 */
.download-section {
    padding: 100px 0;
    background: #f8fafc;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.download-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-card.recommended {
    border: 2px solid #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon img {
    width: 60px;
    height: 60px;
}

.download-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.download-card p {
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-btn:hover {
    background: #667eea;
    color: white !important;
    border-color: #667eea;
}

.download-btn img {
    width: 24px;
    height: 24px;
}

/* CTA区域 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .scenarios-grid,
    .download-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card,
    .download-card,
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-primary.large,
    .btn-secondary.large {
        padding: 16px 32px;
        font-size: 16px;
    }
}

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

/* 图表动画 */
.chart-bar[data-percentage="95"]::before {
    width: 95%;
}

.chart-bar[data-percentage="99"]::before {
    width: 99%;
}

.chart-bar[data-percentage="90"]::before {
    width: 90%;
}

/* 滚动动画 */
.section-header,
.feature-card,
.scenario-card,
.testimonial-card {
    transition: all 0.6s ease;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 修复可能的样式冲突 */
.hero-image {
    max-width: 100%;
    height: auto;
}

/* 确保按钮样式正确 */
button.download-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    font-family: inherit;
}

button.download-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 确保链接颜色正确 */
a.btn-primary,
a.btn-secondary {
    text-decoration: none;
}

a.btn-primary:visited,
a.btn-secondary:visited {
    color: inherit;
}

/* 修复可能的图标问题 */
.iconfont {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* 确保图片不会溢出 */
img {
    max-width: 100%;
    height: auto;
}

/* 修复可能的z-index问题 */
.floating-card {
    z-index: 3;
}

/* 确保渐变文字在所有浏览器中正常显示 */
.highlight-text {
    background: linear-gradient(90deg, #ffd89b 0%, #dd8e13 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 备用颜色 */
    color: #ffd89b;
}

/* 修复可能的backdrop-filter兼容性问题 */
.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 确保所有动画都能正常工作 */
@supports not (backdrop-filter: blur(10px)) {
    .hero-badge {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* 英雄区域视觉展示 */
.hero-demo-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* 浏览器模拟窗口 */
.browser-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.browser-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.browser-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red {
    background: #ff5f57;
}

.control-dot.yellow {
    background: #ffbd2e;
}

.control-dot.green {
    background: #28ca42;
}

.browser-url {
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    flex: 1;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.browser-content {
    background: #ffffff;
    min-height: 300px;
    position: relative;
    padding: 20px;
}

/* 聊天界面 */
.chat-interface {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid #eeeeee;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.4;
}

.user-message .message-content {
    background: #ecf4fe;
    color: #262626;
    margin-left: auto;
}

/* 打字动画 */
.typing-animation {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.typing-animation span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(1) {
    animation-delay: 0s;
}

.typing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.message-text {
    color: #374151;
    animation: fadeInText 2s ease-in-out 1s both;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 插件覆盖层 */
.plugin-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    animation: slideInRight 1s ease-out 2s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.plugin-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 16px;
    border: 2px solid #667eea;
    min-width: 200px;
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.plugin-logo {
    font-size: 18px;
}

.plugin-header span {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.plugin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(2px);
}

.action-btn .icon {
    font-size: 14px;
}

/* 功能特性展示 */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.showcase-item[data-delay="0"] {
    animation-delay: 3s;
}

.showcase-item[data-delay="1"] {
    animation-delay: 3.5s;
}

.showcase-item[data-delay="2"] {
    animation-delay: 4s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.showcase-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.showcase-text {
    flex: 1;
    font-weight: 500;
    color: white;
}

.showcase-progress {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd89b, #19547b);
    border-radius: 2px;
    width: 0;
    animation: fillProgress 2s ease-out forwards;
}

.showcase-item[data-delay="0"] .progress-bar {
    animation-delay: 3.5s;
}

.showcase-item[data-delay="1"] .progress-bar {
    animation-delay: 4s;
}

.showcase-item[data-delay="2"] .progress-bar {
    animation-delay: 4.5s;
}

@keyframes fillProgress {
    to {
        width: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .browser-mockup {
        transform: none;
        margin: 0 auto;
    }
    
    .browser-mockup:hover {
        transform: none;
    }
    
    .plugin-overlay {
        position: static;
        margin-top: 20px;
    }
    
    .plugin-panel {
        margin: 0 auto;
    }
    
    .feature-showcase {
        margin-top: 30px;
    }
    
    .showcase-item {
        padding: 12px 16px;
    }
}

/* DS随心转首页插件按钮组样式 */
.dsxzt-toolbar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-left: 48px; /* 让按钮与官方按钮对齐，可根据实际情况微调 */
    align-items: center;
}

.dsxzt-btn {
    color: #7ea6f6;
    background: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
}

.dsxzt-btn i {  
    font-size: 24px;
}

.dsxzt-btn:hover {
    background: #e6f0ff;
    border-color: #b3d4fc;
}

.dsxzt-btn img {
    width: 22px;
    height: 22px;
    display: block;
}
