/* ===== Tailwind CSS 自定义样式 - 纯色主题 + 统一字体 ===== */

/* Google Fonts 导入 - 正规专业字体 */
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap');

/* Hero Block - 内页统一样式 */
.hero-block {
    background: linear-gradient(135deg, #007258 0%, #111827 50%, #000103 100%) !important;
    background-attachment: fixed !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden !important;
}

/* Hero Block 响应式高度 */
@media (max-width: 640px) {
    .hero-block {
        height: auto !important;
        max-height: 160px !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-block {
        height: auto !important;
        max-height: 300px !important;
    }
}

/* 品牌颜色 + 字体定义 */
:root {
    --primary-color: #47AD71;
    --primary-light: #9DC654;
    --primary-dark: #008D81;
    --dark-color: #2F4858;
    --text-dark: #333333;
    
    /* 字体堆栈 */
    --font-display: 'Dela Gothic One', serif;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 标题统一 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display), serif;
    line-height: 1.3;
    letter-spacing: -0.3px;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* 标签和小标题统一使用显示字体 */
label, .label, [class*="label"], span.uppercase {
    font-family: var(--font-display), serif;
}

/* 正文段落 */
p {
    font-family: var(--font-body), sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

/* 按钮文本 */
button, .btn-base, [class*="btn"], a[class*="btn"] {
    font-family: var(--font-display), serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* span和小文本 - 统一使用显示字体 */
span {
    font-family: var(--font-display), serif;
}

/* 确保标题内的span也使用相同字体 */
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
    font-family: var(--font-display), serif !important;
}

/* 链接样式 */
a {
    color: #47AD71;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #008D81;
}

/* Swiper 自定义样式 */
.swiper-pagination-bullet-active {
    background-color: #47AD71 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: #47AD71 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #008D81 !important;
}

/* 按钮通用样式 */
.btn-base {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-green {
    background-color: #47AD71;
    color: white;
}

.btn-green:hover {
    background-color: #008D81;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(71, 173, 113, 0.3);
}

/* 卡片通用样式 */
.card-base {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-base:hover {
    box-shadow: 0 12px 24px rgba(71, 173, 113, 0.15);
    transform: translateY(-8px);
}

/* 轻奢卡片 */
.luxury-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    transition: all 0.5s ease;
}

.luxury-card:hover {
    border-color: #47AD71;
    box-shadow: 0 16px 40px rgba(71, 173, 113, 0.15);
    transform: translateY(-8px);
}

.luxury-card-dark {
    background: #1F2937;
    border: 2px solid #374151;
    border-radius: 16px;
    transition: all 0.5s ease;
}

.luxury-card-dark:hover {
    border-color: #47AD71;
    box-shadow: 0 16px 40px rgba(71, 173, 113, 0.15);
    transform: translateY(-8px);
}

/* 绿色装饰线 */
.green-line-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #47AD71;
    border-radius: 3px;
}

/* 图片缩放效果 */
.img-zoom {
    transition: transform 0.3s ease;
}

.card-base:hover .img-zoom {
    transform: scale(1.1);
}

/* 标题样式 */
.section-title-line {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #47AD71;
    border-radius: 2px;
}

/* 分割线 */
.luxury-divider {
    height: 2px;
    background: #47AD71;
    border-radius: 1px;
}

/* 数字统计 */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #47AD71;
}

/* 内容文本 */
.content-text {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.content-text img,
.content-text iframe {
    max-width: 100% !important;
}

.content-text li {
    list-style: disc outside none;
    margin-left: 20px;
}

/* ===== Tailwind 颜色类全局映射 ===== */

/* 文本颜色 - 所有amber/red映射到绿色 */
.text-amber-300,
.text-amber-400,
.text-amber-500,
.text-amber-600,
.text-red-500,
.text-red-600 { 
    color: #47AD71 !important; 
}

.text-red-700 {
    color: #008D81 !important;
}

.group-hover\:text-amber-400:group-hover,
.hover\:text-amber-300:hover,
.hover\:text-amber-600:hover {
    color: #008D81 !important;
}

/* 背景颜色 */
.bg-amber-500,
.bg-amber-600,
.bg-red-500,
.bg-red-600 {
    background-color: #47AD71 !important;
}

.bg-red-700 {
    background-color: #008D81 !important;
}

.hover\:bg-amber-600:hover,
.hover\:bg-red-600:hover {
    background-color: #008D81 !important;
}

.hover\:bg-amber-700:hover,
.hover\:bg-red-700:hover {
    background-color: #056A78 !important;
}

/* 边框颜色 */
.border-amber-500,
.border-amber-600,
.border-red-600 {
    border-color: #47AD71 !important;
}

.hover\:border-amber-600:hover {
    border-color: #47AD71 !important;
}

/* 渐变色 */
.from-amber-400,
.from-amber-500,
.from-amber-600 {
    --tw-gradient-from: #47AD71 !important;
}

.via-amber-500,
.via-amber-600,
.via-yellow-500 {
    --tw-gradient-via: #47AD71 !important;
}

.to-amber-600,
.to-red-500,
.to-red-600 {
    --tw-gradient-to: #008D81 !important;
}

.to-red-700 {
    --tw-gradient-to: #056A78 !important;
}

.hover\:from-amber-600:hover,
.hover\:from-amber-700:hover {
    --tw-gradient-from: #008D81 !important;
}

.hover\:to-red-700:hover {
    --tw-gradient-to: #056A78 !important;
}

.hover\:to-red-800:hover {
    --tw-gradient-to: #2F4858 !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===== Logo 样式 - 最高优先级 ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

.logo-text {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -2px !important;
    display: inline !important;
}

.logo-text span {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -2px !important;
    display: inline !important;
}

/* ===== Montserrat 字体应用 ===== */
/* 为产品列表页面应用 Montserrat 字体（除 logo 外） */
#services .group,
#services p,
#services h3,
#services h4,
#services a,
section:not(.navbar) {
    font-family: 'Montserrat', sans-serif !important;
}

/* 产品列表页面特定样式 */
.grid h2,
.grid h3,
.grid h4,
.grid p,
.grid a,
.grid span,
.grid div {
    font-family: 'Montserrat', sans-serif !important;
}

/* Hero Section 除外 logo */
h1 {
    font-family: 'Roboto Condensed', sans-serif !important;
}

/* 面包屑和其他元素 */
.breadcrumb,
.breadcrumb a,
.breadcrumb span {
    font-family: 'Montserrat', sans-serif !important;
}

/* Hero按钮样式 */
.hero-btn-primary {
    background-color: #FFEB3B;
    color: #000000;
}

.hero-btn-primary:hover {
    background-color: #FDD835;
}

.hero-btn-secondary {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFEB3B;
    color: #FFEB3B;
}

