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

:root {
    --primary-color: #4285f4;
    --primary-hover: #3367d6;
    --secondary-color: #ea4335;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dfe1e5;
    --bg-gray: #f8f9fa;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Uchen Sarchen', KaiTi, STKaiti, 'Kaiti SC', 'Kaiti TC', serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Google Style */
.header {
    text-align: center;
    padding-top: 180px;
    padding-bottom: 30px;
}

.logo {
    font-size: 3rem;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.logo-tibetan {
    font-size: 3.5rem;
    font-weight: 400;
    font-family: 'Uchen Sarchen', sans-serif;
    color: #4285f4;
    letter-spacing: -1px;
}

.logo-chinese {
    font-size: 1.1rem;
    color: #5f6368;
    font-weight: 400;
    margin-top: 5px;
}

.subtitle {
    color: #5f6368;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 8px;
}

/* Search Container - Google Style */
.search-container {
    margin-bottom: 30px;
    padding: 0 20px;
}

.search-box {
    max-width: 584px;
    margin: 0 auto 20px;
    position: relative;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: none;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 44px;
}

.search-box:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 10px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
}

.search-input::placeholder {
    color: #9aa0a6;
    font-size: 14px;
}

.search-button {
    background: transparent;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9aa0a6;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: #5f6368;
}

.search-tips {
    text-align: center;
    color: #5f6368;
    font-size: 13px;
    margin-top: 8px;
}

.search-hint {
    text-align: center;
    color: #5f6368;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Stats - Google Style */
.stats {
    text-align: center;
    color: #70757a;
    font-size: 13px;
    margin-bottom: 30px;
    font-weight: 400;
}

.stats span {
    font-weight: 400;
    font-size: 13px;
    color: #202124;
}

/* Results Container */
.results-container {
    flex: 1;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-gray);
}

.icd-code {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.disease-name {
    margin: 10px 0;
}

.disease-name-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disease-name-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 5px;
}

.tibetan-text {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: 'Uchen Sarchen', sans-serif;
}

.chinese-text {
    color: var(--primary-color);
    font-family: KaiTi, STKaiti, 'Kaiti SC', 'Kaiti TC', serif;
}

/* External Links */
.external-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.links-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.link-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.external-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.link-icon {
    width: 16px;
    height: 16px;
}

/* Empty State - Google Style */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #202124;
}

.empty-text {
    font-size: 0.875rem;
    color: #5f6368;
    line-height: 1.6;
}

/* No Results */
.no-results {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-results-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-results-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer - Google Style */
.footer {
    text-align: center;
    padding: 20px;
    background: #f2f2f2;
    color: #70757a;
    font-size: 12px;
    margin-top: auto;
    border-top: 1px solid #dadce0;
}

.footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding-top: 80px;
        padding-bottom: 20px;
    }

    .logo-tibetan {
        font-size: 2.5rem;
    }

    .logo-chinese {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .search-box {
        max-width: 100%;
        height: 42px;
    }

    .search-input {
        font-size: 16px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-card {
        padding: 20px;
    }

    .disease-name-text {
        font-size: 1.1rem;
    }

    .tibetan-text {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #5f6368;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Highlight Search Term */
.highlight {
    background: linear-gradient(transparent 50%, #ffeb3b 50%);
    font-weight: 600;
}

