/* 统一子页面样式 - 基于项目动态和任务管理页面风格 */

/* 基础样式 - 与主页面保持一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #fee2e2;
    --blue: #2563eb;
    --blue-light: #dbeafe;
    --green: #059669;
    --green-light: #d1fae5;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --orange: #d97706;
    --orange-light: #fef3c7;
    --teal: #0d9488;
    --teal-light: #ccfbf1;
    --indigo: #4f46e5;
    --indigo-light: #e0e7ff;
    --pink: #db2777;
    --pink-light: #fce7f3;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #1f2937;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* 按钮样式 - 与主页面一致 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-outline:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
}

/* 子页面头部 */
.subpage-header {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    overflow: hidden;
}

.subpage-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--blue-light) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.subpage-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--green-light) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.subpage-badge {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.subpage-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.subpage-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 800px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* 返回按钮 */
.back-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 功能卡片 */
.feature-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-icon::after {
    opacity: 0.5;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-icon.red {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.feature-icon.red svg {
    color: var(--red);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.feature-icon.blue svg {
    color: var(--blue);
}

.feature-icon.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.feature-icon.green svg {
    color: var(--green);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.feature-icon.purple svg {
    color: var(--purple);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.feature-icon.orange svg {
    color: var(--orange);
}

.feature-icon.teal {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.feature-icon.teal svg {
    color: #0d9488;
}

.feature-icon.indigo {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.feature-icon.indigo svg {
    color: #4f46e5;
}

.feature-icon.pink {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.2);
}

.feature-icon.pink svg {
    color: #db2777;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.feature-tag.red {
    background: var(--red-light);
    color: var(--red);
}

.feature-tag.blue {
    background: var(--blue-light);
    color: var(--blue);
}

.feature-tag.green {
    background: var(--green-light);
    color: var(--green);
}

.feature-tag.purple {
    background: var(--purple-light);
    color: var(--purple);
}

.feature-tag.orange {
    background: var(--orange-light);
    color: var(--orange);
}

/* 流程展示 */
.process-section {
    padding: 80px 0;
    background: white;
    border-radius: 24px;
    margin: 40px 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 18%;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue-light);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.3; }
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* 价值展示 */
.value-section {
    padding: 80px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--blue);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-card h3::before {
    content: '✓';
    color: var(--blue);
    font-weight: bold;
}

.value-card p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* 对比表格 */
.comparison-section {
    padding: 60px 0;
    background: white;
    border-radius: 24px;
    margin: 40px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-200);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.comparison-table tr:hover {
    background: var(--gray-50);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--green-light);
    color: var(--green);
}

.badge-warning {
    background: var(--orange-light);
    color: var(--orange);
}

/* 对比卡片 */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 2px solid;
}

.comparison-card.traditional {
    border-color: var(--red-light);
}

.comparison-card.redhat {
    border-color: var(--green-light);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid;
}

.comparison-card.traditional .comparison-header {
    border-bottom-color: var(--red);
}

.comparison-card.redhat .comparison-header {
    border-bottom-color: var(--green);
}

.comparison-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.comparison-icon svg {
    width: 28px;
    height: 28px;
}

.comparison-card.traditional .comparison-icon {
    background: var(--red-light);
    color: var(--red);
}

.comparison-card.redhat .comparison-icon {
    background: var(--green-light);
    color: var(--green);
}

.comparison-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.comparison-card.traditional .comparison-list li:before {
    content: "❌";
    position: absolute;
    left: 0;
    color: var(--red);
}

.comparison-card.redhat .comparison-list li:before {
    content: "✅";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* 页脚 */
.subpage-footer {
    padding: 3rem 0;
    background: var(--gray-900);
    color: white;
    text-align: center;
    margin-top: 4rem;
}

.subpage-footer p {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .subpage-title {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        width: 45%;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .subpage-header {
        padding: 100px 0 60px;
    }

    .subpage-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        width: 100%;
    }

    .back-nav {
        top: 10px;
        left: 10px;
    }

    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* 内联图标样式 - 由图标替换脚本添加 */
.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.3em;
}

.inline-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* 确保替换后的图标颜色正确 */
.feature-icon svg,
.value-card h3::before {
    color: inherit;
}
