/* Reset and Base Styles */
:root {
    --primary-color: #00a2ea;
    --secondary-color: #333;
    --text-color: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --container-width: 1350px;
}

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.page-main-container {
    margin-top: 160px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .page-main-container {
        margin-top: 120px;
    }
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn:hover {
    background-color: #008ac7;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bottom {
    background-color: var(--primary-color);
    padding: 15px 0;
}

.header-bottom .container {
    display: flex;
    justify-content: flex-start;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links > li > a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    white-space: nowrap;
}

/* Reset general a link style for nav-links to avoid conflicts if needed, 
   but since we use > li > a it should be specific enough for top level.
   However, the original .nav-links a covered everything. 
   We should redefine .nav-links a to only apply to direct children if we want to separate dropdowns.
   Or just override for dropdowns.
*/

/* Search Box */
.search-box form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    background-color: #f9f9f9;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    font-size: 14px;
    width: 200px;
}

.search-box select {
    display: none;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    margin-right: 10px;
    border-right: 1px solid #eee;
    padding-right: 10px;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    min-width: 90px;
    transition: color 0.3s;
}

.custom-select__trigger:hover {
    color: var(--primary-color);
}

.custom-select__trigger i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.custom-select.open .custom-select__trigger i {
    transform: rotate(180deg);
}

.custom-select__options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #eee;
    border-top: 0;
    background: #fff;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    margin-top: 10px;
}

.custom-select.open .custom-select__options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 10px; /* Adjust as needed based on design */
}

.custom-option {
    position: relative;
    display: block;
    padding: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-option:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.custom-option.selected {
    color: var(--primary-color);
    background-color: #f0f9ff;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.search-box button:hover {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-search-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    margin-right: 15px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.nav-links > li > a.active {
    color: #fff; /* Ensure active link is visible on primary color bg */
    font-weight: 700;
    /* border-bottom: 2px solid #fff;  Removed border to avoid layout shift, maybe add underline via pseudo element */
}

.nav-links > li > a {
    position: relative;
    padding-bottom: 5px;
    font-size: 16px;
}

.nav-links > li > a:hover, .nav-links > li > a.active {
    color: #fff;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after, .nav-links > li > a.active::after {
    width: 100%;
}

.nav-links li {
    position: relative;
    padding: 10px 0;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-links li:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    color: #555;
    padding: 10px 20px;
    font-size: 14px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

.dropdown-menu li a::after {
    display: none;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 130px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-bg, url('https://source.unsplash.com/random/1920x1080?concert,stage')) no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
}

/* Section Common */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.section-title p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 162, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 32px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: #777;
    font-size: 14px;
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.case-info p {
    color: #888;
    font-size: 14px;
}

/* Tabs */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 10px 25px;
    border: none;
    background-color: #f0f0f0;
    color: #666;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Star Grid (in Tabs) */
.star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.star-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.star-card:hover {
    transform: translateY(-5px);
}

.star-img {
    height: 280px;
    background-size: cover;
    background-position: top center;
}

.star-info {
    padding: 15px;
    text-align: center;
}

.star-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.star-title {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.price-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-links > li > a {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        display: none; /* Hide default search box on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .search-box.active {
        display: block;
    }

    .search-box form {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }

    .mobile-menu-btn, .mobile-search-btn {
        display: block;
    }
    
    .header-bottom {
        display: none;
        position: fixed;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #fff; /* Changed to white for mobile menu */
        padding: 20px;
        overflow-y: auto;
        z-index: 998;
    }
    
    .header-bottom.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-links > li > a {
        color: #333;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links > li > a::after {
        display: none;
    }

    .hero {
        margin-top: 70px;
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    
    .nav-links li:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu::before {
        display: none;
    }
}

/* Custom Banner Styles */
.hero.custom-banner::before {
    background-image: none !important;
}

/* Brand Cooperation / Schedule List */
.schedule-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    transition: background-color 0.2s;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background-color: #fafafa;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
}

.schedule-date {
    color: #999;
    width: 60px;
    white-space: nowrap;
}

.schedule-name {
    font-weight: bold;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.schedule-location {
    width: 60px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-event {
    color: var(--primary-color);
    width: 100px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-left {
    flex: 0 0 320px;
}

.contact-right {
    flex: 1;
    min-width: 0;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.qr-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.qr-box {
    background: #fafafa;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
}

.qr-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-tip {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

.qr-subtip {
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

.contact-info {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.contact-info h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.contact-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-page .form-row {
    margin-bottom: 15px;
}

.contact-page .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,162,234,0.12);
}

.contact-page textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-page .captcha-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: center;
}

.contact-page .captcha-row .form-control {
    flex: 1;
}

.contact-page .captcha-img {
    width: 110px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    object-fit: cover;
}

.contact-page .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-page .radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-page .radio-group label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.contact-page .radio-group input[type="radio"]:checked + label {
    background: rgba(0,162,234,0.12);
    border-color: rgba(0,162,234,0.55);
    color: var(--primary-color);
    font-weight: 600;
}

.contact-page .radio-group label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .contact-layout {
        flex-direction: column;
    }

    .contact-left {
        width: 100%;
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .contact-left .contact-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact-left {
        grid-template-columns: 1fr;
    }

    .contact-page .form-grid {
        grid-template-columns: 1fr;
    }
}
