:root {
    --hk-red: #C8102E;
    --hk-red-dark: #A00D24;
    --hk-red-light: #E8354D;
    --hk-gold: #D4A843;
    --hk-gold-light: #F0D68A;
    --hk-dark: #1A1A2E;
    --hk-dark-light: #2D2D44;
    --hk-gray: #6C757D;
    --hk-gray-light: #F8F9FA;
    --hk-white: #FFFFFF;
    --hk-gradient: linear-gradient(135deg, var(--hk-red) 0%, var(--hk-red-dark) 100%);
    --hk-gradient-hero: linear-gradient(135deg, var(--hk-dark) 0%, #16213E 50%, var(--hk-red-dark) 100%);
    --hk-shadow: 0 4px 20px rgba(200, 16, 46, 0.15);
    --hk-shadow-hover: 0 8px 30px rgba(200, 16, 46, 0.25);
    --hk-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--hk-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.hk-navbar {
    background: var(--hk-gradient) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: var(--hk-transition);
}

.hk-navbar.scrolled {
    padding: 0.3rem 0;
    background: rgba(168, 13, 36, 0.97) !important;
    backdrop-filter: blur(10px);
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--hk-white) !important;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--hk-gold-light) !important;
    letter-spacing: 2px;
    margin-top: -2px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--hk-transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--hk-white) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--hk-gold);
    border-radius: 1px;
}

.btn-hk-primary {
    background: var(--hk-gold);
    color: var(--hk-dark) !important;
    border: none;
    font-weight: 600;
    transition: var(--hk-transition);
}

.btn-hk-primary:hover {
    background: var(--hk-gold-light);
    color: var(--hk-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.btn-hk-red {
    background: var(--hk-red);
    color: var(--hk-white) !important;
    border: none;
    font-weight: 600;
    transition: var(--hk-transition);
}

.btn-hk-red:hover {
    background: var(--hk-red-dark);
    color: var(--hk-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--hk-shadow-hover);
}

.btn-outline-hk-red {
    border: 2px solid var(--hk-red);
    color: var(--hk-red);
    font-weight: 600;
    transition: var(--hk-transition);
}

.btn-outline-hk-red:hover {
    background: var(--hk-red);
    color: var(--hk-white);
    transform: translateY(-1px);
}

.main-content {
    padding-top: 76px;
}

.hero-section {
    background: var(--hk-gradient-hero);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hk-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, var(--hk-gold) 0%, var(--hk-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 560px;
}

.hero-search .input-group {
    background: var(--hk-white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-search .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    background: transparent;
}

.hero-search .form-control:focus {
    box-shadow: none;
    outline: none;
}

.hero-search .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
}

.hero-bauhinia {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.06;
    font-size: 20rem;
    color: var(--hk-white);
    pointer-events: none;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--hk-dark);
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--hk-red);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--hk-gray);
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--hk-white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--hk-transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hk-shadow-hover);
    border-color: rgba(200, 16, 46, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(200, 16, 46, 0.02) 100%);
    color: var(--hk-red);
    transition: var(--hk-transition);
}

.feature-card:hover .feature-icon {
    background: var(--hk-red);
    color: var(--hk-white);
    transform: scale(1.1);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--hk-dark);
}

.feature-card p {
    color: var(--hk-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.stats-section {
    background: var(--hk-gradient);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--hk-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
}

.cta-section {
    background: linear-gradient(135deg, var(--hk-dark) 0%, var(--hk-dark-light) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--hk-white);
    margin-bottom: 1rem;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.page-header {
    background: var(--hk-gradient-hero);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hk-white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
}

.about-card {
    background: var(--hk-white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--hk-red);
    transition: var(--hk-transition);
}

.about-card:hover {
    box-shadow: var(--hk-shadow);
    transform: translateY(-2px);
}

.about-card h3 {
    color: var(--hk-red);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.about-card p {
    color: #555;
    line-height: 1.8;
}

.query-section {
    min-height: 500px;
}

.query-box {
    background: var(--hk-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.query-input-group {
    display: flex;
    gap: 0.75rem;
}

.query-input-group .form-control {
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    border: 2px solid #e9ecef;
    transition: var(--hk-transition);
}

.query-input-group .form-control:focus {
    border-color: var(--hk-red);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15);
}

.query-input-group .btn {
    border-radius: 12px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    white-space: nowrap;
}

.query-result {
    margin-top: 2rem;
    display: none;
}

.query-result.show {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.result-available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.result-taken {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-available .result-icon {
    color: #28a745;
}

.result-taken .result-icon {
    color: #dc3545;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-domain {
    font-size: 1.1rem;
    color: var(--hk-gray);
    margin-bottom: 1.5rem;
}

.suggest-list {
    margin-top: 1.5rem;
}

.suggest-item {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.4rem 1rem;
    background: rgba(200, 16, 46, 0.06);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--hk-red);
    cursor: pointer;
    transition: var(--hk-transition);
}

.suggest-item:hover {
    background: var(--hk-red);
    color: var(--hk-white);
}

.type-card {
    background: var(--hk-white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--hk-transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}

.type-card:hover {
    box-shadow: var(--hk-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(200, 16, 46, 0.15);
}

.type-badge {
    display: inline-block;
    background: var(--hk-gradient);
    color: var(--hk-white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.type-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--hk-dark);
}

.type-card p {
    color: var(--hk-gray);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.type-scene {
    color: var(--hk-red) !important;
    font-weight: 500;
    font-size: 0.9rem !important;
}

.hk-footer {
    background: var(--hk-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.footer-title {
    color: var(--hk-white);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--hk-transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--hk-gold);
    padding-left: 4px;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--hk-gold);
    text-decoration: none;
    transition: var(--hk-transition);
}

.footer-contact a:hover {
    color: var(--hk-gold-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand a {
    color: var(--hk-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--hk-transition);
}

.footer-brand a:hover {
    color: var(--hk-gold-light);
}

.query-loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

.query-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--hk-red);
}

.query-loading p {
    margin-top: 1rem;
    color: var(--hk-gray);
}

.lang-switch .dropdown-item.active {
    background: var(--hk-red);
    color: var(--hk-white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-bauhinia {
        display: none;
    }
    .nav-right {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .query-box {
        padding: 1.5rem;
    }
    .query-input-group {
        flex-direction: column;
    }
    .query-input-group .btn {
        width: 100%;
    }
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 500px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
}
