@font-face {
    font-family: 'Uchen Sarchen';
    src: url('Uchen-Sarchen.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Uchen Sarchen', 'Noto Sans Tibetan', 'Jomolhari', 'DDC Uchen', 'Kokonor', 'Kailasa', -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 30px 20px;
    color: #2c3e50;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    text-align: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.4rem;
    opacity: 0.96;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.table-wrapper {
    overflow-x: auto;
    padding: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.comparison-table thead {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f7 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.comparison-table th {
    padding: 28px 24px;
    text-align: left;
    font-weight: 700;
    border-bottom: 4px solid #2563eb;
    position: relative;
    transition: all 0.3s ease;
}

.comparison-table th:hover {
    background: rgba(37, 99, 235, 0.05);
}

.th-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.system-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.system-desc {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.3px;
}

.col-ud {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
    width: 16%;
}

.col-ud .system-name {
    color: #1e40af;
}

.col-monlam {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    width: 18%;
}

.col-monlam .system-name {
    color: #1d4ed8;
}

.col-soas {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
    width: 40%;
}

.col-soas .system-name {
    color: #d97706;
}

.col-tibpos {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.04));
    width: 26%;
}

.col-tibpos .system-name {
    color: #0369a1;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.comparison-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.03) 0%, rgba(37, 99, 235, 0.05) 50%, rgba(37, 99, 235, 0.03) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.comparison-table tbody tr::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    transition: height 0.3s ease;
}

.comparison-table tbody tr:hover::after {
    height: 2px;
}

.comparison-table td {
    padding: 24px;
    vertical-align: top;
    line-height: 1.7;
}

.ud-cell {
    background: rgba(37, 99, 235, 0.02);
}

.monlam-cell {
    background: rgba(59, 130, 246, 0.03);
}

.soas-cell {
    background: rgba(245, 158, 11, 0.04);
}

.tibpos-cell {
    background: rgba(14, 165, 233, 0.02);
}

.ud-tag-name {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.ud-tag-name:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.ud-tag-text {
    display: block;
    color: #6c757d;
    font-size: 0.92rem;
    margin-top: 8px;
    font-style: italic;
    font-weight: 500;
}

.ud-chinese {
    display: block;
    color: #495057;
    font-size: 1.1rem;
    margin-top: 6px;
    font-weight: 600;
}

.tag-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 5px 6px 5px 0;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.monlam-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 1.18rem;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

.soas-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
}

.soas-tibetan {
    font-size: 0.8rem;
    opacity: 0.92;
    font-weight: 500;
}

.tibpos-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tibpos-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tibpos-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
    transition: all 0.3s ease;
}

.tibpos-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.45);
}

.tibpos-text {
    color: #333;
    font-size: 1.05rem;
    font-weight: 500;
}

.example-text {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-left: 5px solid #0ea5e9;
    border-radius: 8px;
    color: #5a5a5a;
    font-size: 1.08rem;
    line-height: 1.9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12);
}

.empty-cell {
    color: #adb5bd;
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 500;
}

footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 45px 50px;
    box-shadow: 0 -6px 24px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-stats {
    font-size: 1.4rem;
    color: white;
    font-weight: 500;
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-stats strong {
    color: #0ea5e9;
    font-size: 1.8rem;
    margin-left: 10px;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section {
    color: white;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #60a5fa;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.92;
    font-weight: 400;
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-list li {
    font-size: 0.95rem;
    line-height: 1.9;
    opacity: 0.92;
    font-weight: 400;
    padding-left: 20px;
    position: relative;
}

.source-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
    font-size: 1.2rem;
}

.purpose-tibetan {
    margin-bottom: 8px !important;
}

.purpose-english {
    font-style: italic;
    opacity: 0.85 !important;
}

.company-name {
    margin-bottom: 6px !important;
}

.company-english {
    font-style: italic;
}

.footer-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .system-name {
        font-size: 1.1rem;
    }

    .system-desc {
        font-size: 0.8rem;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    header {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
    }

    .system-name {
        font-size: 1rem;
    }

    .ud-tag-name {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .tag-badge {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .tibpos-main {
        flex-direction: column;
        align-items: flex-start;
    }

    footer {
        padding: 30px 25px;
    }

    .footer-info {
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.88rem;
    }
}
