/* Kooxt Malaysia - Master Stylesheet 
   Design System: Modern Geometric Sans (Petronas Inspired)
   Updated: 2026 Full-Width Immersive Banner & Admin UI
*/

/* --- 0. 核心变量 --- */
:root {
    --primary-blue: #3b82f6;
    --primary-dark: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    /* 已修改：背景色从 #f8fafc 改为更明显的浅灰色 #f1f5f9 */
    --bg-light: #e5e5e5; 
    --border-color: #f1f5f9;
    
    /* 极致现代感字体栈 */
    --font-modern: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    /* 这里的变量指向了上面定义的 #f1f5f9 */
    background-color: var(--bg-light) !important;
    color: var(--text-main);
    font-family: var(--font-modern);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, button, input, select, textarea, span, a, p {
    font-family: var(--font-modern) !important;
}

/* --- 1. 首页沉浸式 Banner 增强 --- */

/* 背景缩放动画 */
@keyframes slow-zoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}
.animate-slow-zoom {
    animation: slow-zoom 20s linear infinite alternate;
}

/* 文字阴影确保在复杂背景下可读 */
.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 950 !important;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

:lang(cn) .hero-title {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 图片组浮动动画 */
@keyframes floatStack {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(5deg); } 
}

/* 图片容器整体位移控制 */
.hero-image-offset {
    position: relative;
    /* 已修改：从 -80px 改为 60px，让照片向右移动避开文字 */
    transform: translate(-60px, 220px) !important; 
    z-index: 20;
}

/* 后面那张辅助图（TRX）的微调 */
.hero-image-back {
    position: absolute;
    top: -40px;
    right: 30px; 
    opacity: 1;
    transform: scale(0.9) rotate(-4deg);
}

.animate-float-stack {
    animation: floatStack 6s ease-in-out infinite;
}

/* --- 2. 州属展示卡片 (State Cards) --- */
.state-card {
    height: 380px !important; /* 统一高度 */
    background-color: var(--primary-dark);
    border-radius: 2.5rem !important;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.state-card .text-shadow {
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.state-card:hover {
    box-shadow: 0 50px 80px -20px rgba(59, 130, 246, 0.25);
    transform: translateY(-12px);
}

/* --- 3. 后台管理 UI (Admin) --- */
.admin-card-form, .admin-card-table {
    background: white !important;
    padding: 2.5rem !important;
    border-radius: 2.5rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid white !important;
}

.field-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    margin: 0 0 0.6rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
}

.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    background-color: var(--bg-light) !important;
    border: 2px solid transparent !important;
    padding: 1.1rem 1.25rem !important;
    border-radius: 1.25rem !important;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.2s;
    outline: none !important;
    margin-bottom: 1.2rem;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    background-color: white !important;
    border-color: #dbeafe !important;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.08) !important;
}

/* 管理表格样式 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background-color: #fafbfc;
    padding: 1.5rem;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- 4. 按钮与交互 --- */
.btn-publish {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    font-weight: 900;
    padding: 1.25rem;
    border-radius: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-publish:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-edit { background: #eff6ff; color: var(--primary-blue); }
.btn-delete { background: #fff1f2; color: #f43f5e; }

/* 文件上传美化 */
input[type="file"]::file-selector-button {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    cursor: pointer;
    margin-right: 15px;
}

/* --- 5. 布局补丁 (Tailwind Grid Extend) --- */
@media (min-width: 1024px) {
    .lg\:grid-cols-10 {
        display: grid !important;
        grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
        gap: 2.5rem !important;
    }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
}