/* 全局样式变量 */
:root {
    /* 主色调 */
    --primary-blue: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #64b5f6;
    
    /* 辅助色 */
    --secondary-blue: #283593;
    --secondary-light: #5c6bc0;
    
    /* 状态色 */
    --success-green: #2ecc71;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    
    /* 中性色 */
    --background-white: #ffffff;
    --background-light: #f8f9fc;
    --border-light: #e0e0e0;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    
    /* 阴影 */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-dark: 0 12px 36px rgba(0, 0, 0, 0.16);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* 过渡 */
    --transition: all 0.3s ease;
    
    /* SaaS主题色 */
    --saas-primary: #4361ee;
    --saas-primary-dark: #3a56d4;
    --saas-secondary: #3f37c9;
    --saas-accent: #4895ef;
    --saas-success: #06d6a0;
    --saas-warning: #ffd166;
    --saas-danger: #ef476f;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 20px;
    color: var(--primary-blue);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.7;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 内容区域 */
.content-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 700;
    border-left: 6px solid var(--primary-blue);
    padding-left: 15px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--background-white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-text {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 页脚 */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* 平板适配 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .content-section {
        padding: 35px;
    }
    
    .screenshot-content {
        flex-direction: column;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-dark);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-link {
        padding: 15px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        min-width: 44px;
        min-height: 44px;
        padding: 12px 24px;
    }
}

/* 菜单滑入动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特性列表美化 */
.feature-list {
    list-style-type: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.9;
    font-size: 17px;
    color: var(--text-gray);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
}

/* FAQ页面美化 */
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.faq-question {
    background: linear-gradient(135deg, #f8f9fc, #e3f2fd);
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.faq-toggle {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 1000px;
}

.faq-answer p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.faq-answer ul {
    margin: 15px 0 15px 20px;
    list-style-type: disc;
}

.faq-answer li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 8px;
    padding-left: 5px;
}

.faq-answer code {
    background-color: #f1f3f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #333;
    border: 1px solid #ddd;
}

/* 大段文字优化 */
.content-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: justify;
}

.content-section h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.content-section h3 i {
    margin-right: 10px;
    color: var(--primary-blue);
}



/* 系统介绍页面 - 截图卡片样式 */
.screenshot-card {
    background-color: var(--background-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    overflow: hidden;
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition);
}

.screenshot-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.screenshot-header {
    background: linear-gradient(135deg, #f8f9fc, #e9f5ff);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-light);
}

.screenshot-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.screenshot-title:hover {
    color: var(--primary-blue);
}

.screenshot-title i {
    font-size: 24px;
}

.screenshot-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

.screenshot-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .screenshot-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .screenshot-image {
        flex: 0 0 55%;
    }
    
    .screenshot-description {
        flex: 1;
    }
}

.screenshot-image {
    background-color: #f8f9fa;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

.screenshot-description p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.screenshot-description ul {
    padding-left: 22px;
    margin: 15px 0;
    list-style-type: disc;
}

.screenshot-description li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.screenshot-description code {
    background-color: #f1f3f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #333;
    border: 1px solid #ddd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .screenshot-header {
        padding: 20px;
    }
    
    .screenshot-title {
        font-size: 20px;
    }
    
    .screenshot-content {
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .screenshot-card {
        margin-bottom: 30px;
    }
    
    .screenshot-header {
        padding: 18px;
    }
    
    .screenshot-title {
        font-size: 18px;
    }
    
    .screenshot-subtitle {
        font-size: 15px;
    }
    
    .screenshot-content {
        padding: 18px;
    }
}

/* 图片模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-image {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    z-index: 10000;
}

.modal-close:hover {
    color: #42a5f5;
}

.modal-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.modal-overlay.active .modal-caption {
    opacity: 1;
    bottom: -60px;
}

/* 点击图片的指针样式 */
.screenshot-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.03);
}

/* 试用按钮样式 */
.btn-trial {
    background: var(--success-green);
    color: white;
    border: none;
}

.btn-trial:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 英雄区域按钮布局优化 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* 表单验证样式 */
input:required:focus,
textarea:required:focus,
select:required:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: var(--danger-red);
    background-color: #fff5f5;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: var(--success-green);
}

/* 表单验证动画 */
input,
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* 焦点可见性增强 */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid var(--saas-accent);
    outline-offset: 2px;
}

/* 增强按钮可访问性 */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--saas-primary);
    outline-offset: 2px;
}

/* 链接增强 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:focus {
    outline: 2px solid var(--saas-accent);
    outline-offset: 2px;
}

/* 确保最小触摸目标 */
.nav-link,
.btn,
.card,
.mobile-menu-btn,
.screenshot-img,
.faq-question,
.guide-title {
    position: relative;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .card:hover {
        transform: none;
    }
    
    .screenshot-img:hover {
        transform: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0044cc;
        --primary-dark: #003399;
        --success-green: #00cc00;
        --danger-red: #cc0000;
        --text-gray: #444444;
    }
    
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    :root {
        --background-white: #1e1e1e;
        --background-light: #2d2d2d;
        --text-dark: #e0e0e0;
        --text-gray: #b0b0b0;
        --border-light: #404040;
    }
    
    .content-section {
        background: var(--background-white);
    }
    
    .card {
        background: var(--background-light);
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 打印样式优化 */
@media print {
    .main-header,
    .mobile-menu-btn,
    .hero-buttons,
    .footer-container,
    .modal-overlay,
    .pricing-hero {
        display: none !important;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    .content-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}