/* ===================================
   style.css - Pure CSS (Tailwind directives compiled)
   =================================== */

/* Tailwind Base Reset (compiled from @tailwind base) */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent mobile horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Components (compiled from @layer components + @apply) */
.btn-primary {
    background-color: #1ABC9C;
    color: #ffffff;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.5;
}
.btn-primary:hover {
    background-color: #16A085;
    transform: scale(0.98);
}
.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    display: inline-block;
    text-align: center;
    cursor: pointer;
    background: transparent;
    text-decoration: none;
    line-height: 1.5;
}
.btn-secondary:hover {
    background-color: #ffffff;
    color: #1ABC9C;
}

.card {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-0.5rem);
    border-color: #1ABC9C;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 600;
    font-family: "Noto Serif SC", ui-serif, Georgia, serif;
    color: #0E7C6D;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #4b5563;
    margin-bottom: 3rem;
}

/* Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-overlay {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slideRight {
    animation: slideRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slideLeft {
    animation: slideLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hover-scale-98:hover {
    transform: scale(0.98);
}

.hover-scale-95:active {
    transform: scale(0.95);
}

/* Hero Carousel Styles */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.8s ease-out forwards;
}

/* 新增：卡片轮播样式 */
.carousel-cards {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-cards.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

/* 旧的圆形指示器（保留兼容性） */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background-color: rgba(26, 188, 156, 0.8);
    border-color: #1ABC9C;
}

.carousel-indicator.active {
    background-color: #1ABC9C;
    border-color: #1ABC9C;
    width: 32px;
    border-radius: 6px;
}

/* 新增：简洁线条指示器 */
.carousel-indicator-simple {
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-indicator-simple:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicator-simple.active {
    background-color: rgba(255, 255, 255, 1);
    width: 60px;
}

/* Business Accordion Styles */
.business-accordion-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-accordion-item.collapsed {
    flex: 1;
}

.business-accordion-item:not(.collapsed) {
    flex: 3;
}

.business-accordion-item .business-content {
    opacity: 1;
    max-height: 24rem;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.business-accordion-item.collapsed .business-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.business-accordion-item h3 {
    transition: margin-bottom 0.3s ease;
}

.business-accordion-item.collapsed h3 {
    margin-bottom: 0;
}

.business-accordion-item:not(.collapsed) h3 {
    margin-bottom: 1rem;
}

/* Hover effects for business accordion */
.business-accordion-item:hover {
    transform: translateY(-2px);
}

.business-accordion-item img {
    transition: transform 0.7s ease;
}

.business-accordion-item:hover img {
    transform: scale(1.05);
}

/* Sidebar Menu Styles */
#sidebar-menu {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar-menu.open {
    transform: translateX(0);
}

#sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar-dropdown-btn svg {
    transition: transform 0.2s ease;
}

.sidebar-dropdown.open .sidebar-dropdown-btn svg {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-dropdown.open .sidebar-dropdown-menu {
    display: block;
    max-height: 500px;
}

/* Header Scroll Effect */
#main-header {
    background-color: transparent;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 滚动后汉堡按钮保持品牌青色 */
#main-header.scrolled #sidebar-toggle {
    background-color: #1ABC9C;
}

/* 滚动后导航链接变为黑色 */
#main-header.scrolled nav a,
#main-header.scrolled nav button {
    color: #0f172a !important;
}

/* 滚动后语言切换链接变为黑色 */
#main-header.scrolled .ml-8 a,
#main-header.scrolled .ml-8 span {
    color: #0f172a !important;
}

/* 滚动后hover效果保持金色 */
#main-header.scrolled nav a:hover,
#main-header.scrolled nav button:hover {
    color: #D4AF37 !important;
}

/* 导航栏文字阴影，确保在透明背景上可见 */
/* 只给顶层导航添加阴影，不包括下拉菜单 */
#main-header:not(.scrolled) > div > div > nav > a,
#main-header:not(.scrolled) > div > div > nav > div > button,
#main-header:not(.scrolled) .ml-8 a,
#main-header:not(.scrolled) .ml-8 span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 滚动后移除文字阴影 */
#main-header.scrolled nav a,
#main-header.scrolled nav button,
#main-header.scrolled nav span,
#main-header.scrolled .ml-8 a,
#main-header.scrolled .ml-8 span {
    text-shadow: none;
}
