/* ============================================
   YQT Official Website - Page Specific Styles
   Version: 1.0.0
   ============================================ */

/* Page Hero Section */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

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

/* Feature Detail Grid */
.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-detail-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
}

.feature-detail-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-detail-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.detail-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.workflow-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Architecture Diagram */
.architecture-diagram {
    max-width: 800px;
    margin: 3rem auto 0;
}

.arch-layer {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.arch-layer h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.arch-components {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.arch-component {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.arch-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.use-case-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.use-case-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tech Features Grid */
.tech-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.tech-feature-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tech-feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Permission Flow */
.permission-flow {
    margin-top: 3rem;
}

.flow-diagram {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.flow-node {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: inline-block;
    min-width: 180px;
    margin: 0.5rem;
}

.flow-node h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.flow-node p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-node { border-top: 4px solid #667eea; }
.role-node { border-top: 4px solid #764ba2; }
.menu-node { border-top: 4px solid #f093fb; }
.data-node { border-top: 4px solid #4facfe; }
.url-node { border-top: 4px solid #fa709a; }

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.flow-arrows-horizontal {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 1rem 0;
}

.flow-arrow-side {
    font-size: 2rem;
    color: var(--primary-color);
}

.flow-nodes-horizontal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features Detail List */
.features-detail-list {
    margin-top: 3rem;
}

.feature-detail-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.feature-detail-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.feature-points {
    list-style: none;
    padding-left: 0;
}

.feature-points li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.security-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.security-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Installation Timeline */
.installation-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.installation-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.step-details {
    list-style: none;
    padding-left: 0;
}

.step-details li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Config Cards */
.config-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.config-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.config-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.config-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.config-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.config-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.requirement-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.req-table {
    width: 100%;
    border-collapse: collapse;
}

.req-table tr {
    border-bottom: 1px solid var(--border-color);
}

.req-table tr:last-child {
    border-bottom: none;
}

.req-table td {
    padding: 0.75rem 0;
}

.req-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
}

.req-table td:last-child {
    color: var(--text-secondary);
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 404 Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .workflow-steps {
        flex-direction: column;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .feature-detail-grid,
    .use-cases-grid,
    .tech-features-grid,
    .security-grid,
    .config-cards {
        grid-template-columns: 1fr;
    }
    
    .flow-nodes-horizontal {
        flex-direction: column;
    }
    
    .installation-timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
}
