:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-primary { border: 2px solid rgba(255,255,255,0.5); }
.badge-success { background: rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.3); }

/* Section */
.section {
    padding: 3rem 2rem;
}

.bg-light {
    background: var(--gray-50);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.insight-card.primary { border-left-color: var(--primary); }
.insight-card.success { border-left-color: var(--success); }
.insight-card.warning { border-left-color: var(--warning); }
.insight-card.info { border-left-color: var(--info); }

.insight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.insight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

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

/* Architecture Comparison */
.architecture-comparison {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.arch-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.arch-need, .arch-solution {
    flex: 1;
    min-width: 250px;
}

.arch-need h3 {
    color: var(--danger);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.arch-solution h3 {
    color: var(--success);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.need-list, .solution-list {
    list-style: none;
}

.need-list li, .solution-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.need-icon {
    font-size: 1.5rem;
}

.solution-list li {
    flex-direction: column;
    align-items: flex-start;
}

.solution-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.solution-desc {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.arch-arrow {
    font-size: 3rem;
    color: var(--primary);
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-marker {
    position: absolute;
    left: -2.44rem;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.priority-high { background: var(--danger); }
.priority-medium { background: var(--warning); }

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content > p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    margin: 1rem 0;
}

.detail-list li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    padding-left: 1.5rem;
    position: relative;
}

.detail-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.timeline-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.opportunity-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.opportunity-card.star {
    border: 2px solid var(--warning);
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.opportunity-card.ambitious {
    background: linear-gradient(135deg, #ede9fe 0%, white 100%);
}

.opportunity-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.opportunity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.opportunity-desc {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.opportunity-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-tag {
    padding: 0.3rem 0.8rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Signals */
.signals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.signal-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.signal-card.green { border-left-color: var(--success); }
.signal-card.yellow { border-left-color: var(--warning); }
.signal-card.red { border-left-color: var(--danger); }

.signal-status {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.signal-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.signal-card p {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.signal-note {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-style: italic;
    background: var(--gray-50);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Competitive Landscape */
.competitive-landscape {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Action Phases */
.action-phases {
    display: grid;
    gap: 2rem;
}

.phase-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.phase-card.short-term { border-left-color: var(--danger); }
.phase-card.mid-term { border-left-color: var(--warning); }
.phase-card.long-term { border-left-color: var(--success); }

.phase-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-900);
}

.phase-icon {
    font-size: 1.8rem;
}

.action-list {
    list-style: none;
}

.action-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.action-list li:last-child {
    border-bottom: none;
}

.action-list input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.action-list label {
    cursor: pointer;
    color: var(--gray-700);
    font-size: 1rem;
}

/* Risk Card */
.risk-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.risk-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.risk-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.risk-point {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.risk-point strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.risk-point p {
    color: var(--gray-700);
}

.strategy-list {
    list-style: none;
    margin-top: 0.5rem;
}

.strategy-list li {
    padding: 0.3rem 0;
    color: var(--gray-700);
}

/* Summary */
.summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.summary-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.summary-highlight h3 {
    font-size: 1.5rem;
    line-height: 1.6;
}

.summary-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.point-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--gray-900);
    color: white;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        border-radius: 12px;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .arch-item {
        flex-direction: column;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }

    .insights-grid,
    .opportunities-grid,
    .signals-container {
        grid-template-columns: 1fr;
    }
}
