/* ===================================
   Base Styles - 基础样式
   支持 LTR 和 RTL 布局
   =================================== */

/* CSS 变量系统 */
:root {
	/* 颜色系统 */
	--color-primary: #32A0DB;
	--color-primary-light: #08BEF8;
	--color-accent: #FFD1A0;

	--color-text-primary: #3D3D3D;
	--color-text-light: #9E9E9E;
	--color-text-inverse: #FFFFFF;

	/* 背景 */
	--card-bg-light: #EEFBFF;
	--card-bg-dark: #D7EEF4;
	--btn-bg: #335569;
	--bg-gradient: linear-gradient(90deg, #08BEF8 0%, #FFDF76 100%);

	/* 阴影 */
	--shadow-light: 0px 0px 19px 0px rgba(168, 225, 255, .5);
	--shadow-dark: 0px 0px 19px 0px rgba(168, 225, 255, 1);
	--text-shadow1: 0px 4px 10px #32A0DB;
	--text-shadow2: 0px 4px 10px #FFD1A0;

	/* 间距系统 */
	--spacing-xs: 0.25rem;
	/* 4px */
	--spacing-sm: 0.5rem;
	/* 8px */
	--spacing-md: 1rem;
	/* 16px */
	--spacing-lg: 1.5rem;
	/* 24px */
	--spacing-xl: 2rem;
	/* 32px */
	--spacing-2xl: 3rem;
	/* 48px */
	--spacing-3xl: 4rem;
	/* 64px */
	--spacing-4xl: 6rem;
	/* 96px */

	/* 字体系统 */
	--font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-family-arabic: 'Noto Sans Arabic', 'Arial', sans-serif;
	--font-family-heading: 'Poppins', -apple-system, sans-serif;

	--font-size-xs: 0.75rem;
	/* 12px */
	--font-size-sm: 0.875rem;
	/* 14px */
	--font-size-base: 1rem;
	/* 16px */
	--font-size-lg: 1.125rem;
	/* 18px */
	--font-size-xl: 1.25rem;
	/* 20px */
	--font-size-2xl: 1.5rem;
	/* 24px */
	--font-size-3xl: 1.875rem;
	/* 30px */
	--font-size-4xl: 2.25rem;
	/* 36px */
	--font-size-5xl: 3rem;
	/* 48px */

	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.75;

	/* 圆角 */
	--radius-sm: 0.25rem;
	/* 4px */
	--radius-md: 0.5rem;
	/* 8px */
	--radius-lg: 0.75rem;
	/* 12px */
	--radius-xl: 1rem;
	/* 16px */
	--radius-full: 9999px;

	/* 过渡 */
	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
	--transition-slow: 350ms ease;

	/* Z-index 层级 */
	--z-dropdown: 1000;
	--z-sticky: 1020;
	--z-fixed: 1030;
	--z-modal-backdrop: 1040;
	--z-modal: 1050;
	--z-popover: 1060;
	--z-tooltip: 1070;
}

/* 重置样式 */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	color: var(--color-text-primary);
	min-height: 100vh;
}

/* 阿拉伯语字体 */
html[lang="ar"] body {
	font-family: var(--font-family-arabic);
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
	padding: 0;
}

/* 链接 */
a {
	text-decoration: none;
	transition: color var(--transition-fast);
}

/* 列表 */
ul,
ol {
	padding-inline-start: var(--spacing-xl);
	margin-block-end: var(--spacing-sm);
}

/* 图片 */
img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* 按钮重置 */
button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
}

/* 表单元素 */
input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* 可访问性 */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* 滚动条样式 */
/* ::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #ECECEC;
}

::-webkit-scrollbar-thumb {
	background: var(--color-primary);
	border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-primary-light);
} */