/* ===============================
   样式定义: 安卓APP风格界面与体验
   =============================== */

/* 色彩及主题定义：Material Design色彩系统 (Only Light Theme Variables) */
:root {
	/* 主色调 */
	--primary-color: #4361ee;
	--primary-light: #738aec;
	--primary-dark: #2f40af;
	--primary-rgb: 67, 97, 238;

	/* 次要色调 */
	--secondary-color: #4cc9f0;
	--accent-color: #4ade80;
	--accent-hover: #22c55e;
	--accent-rgb: 74, 222, 128;

	/* 背景色 */
	--background-color: #f8fafc;
	--surface-color: #ffffff;
	--card-background: #ffffff;
	--card-hover-bg: #ffffff;

	/* 文本色 */
	--text-color: #1e293b;
	--text-light: #475569;
	--text-muted: #64748b;
	--on-primary: #ffffff;

	/* 导航栏 */
	--header-background: rgba(255, 255, 255, 0.95);
	--header-text: #1e293b;
	--nav-active: #4361ee;
	--nav-inactive: #64748b;

	/* 其他样式 */
	--border-color: #e2e8f0;
	--divider-color: rgba(0, 0, 0, 0.12);
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
	--shadow-md: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	--shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
	--shadow-card: 0 2px 4px rgba(0,0,0,0.08);
	--shadow-elevated: 0 6px 10px rgba(0,0,0,0.08), 0 0 6px rgba(0,0,0,0.05);
	--focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.5);

	/* 动画 */
	--transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

	/* 渐变 */
	--gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	--gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));

	/* 布局 */
	--featured-border: var(--accent-color);
	--featured-shadow: 0 6px 12px rgba(74, 222, 128, 0.15);
	--back-to-top-size: 46px;
	--max-content-width: 1200px;
	--header-height: 56px;
	--bottom-nav-height: 56px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);

	/* 圆角 */
	--card-radius: 12px;
	--button-radius: 8px;
	--rounded-full: 9999px;

	/* 间距 */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;

	/* 安卓特性 */
	--ripple-color: rgba(0, 0, 0, 0.1);
	--ripple-color-light: rgba(255, 255, 255, 0.3);
	--tap-highlight: rgba(0, 0, 0, 0);
  }

  /* 深色模式 - 已移除 */
  /* [data-theme="dark"] { ... } */

  /* 当用户偏好减少动态时，禁用或缩短动画与过渡 */
  @media (prefers-reduced-motion: reduce) {
	* {
	  animation-duration: 0.01s !important;
	  transition-duration: 0.01s !important;
	  scroll-behavior: auto !important;
	}
  }

  * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: var(--tap-highlight);
  }

  html {
	scroll-behavior: smooth;
	font-size: 16px;
	height: 100%;
  }

  body {
	font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	transition: background var(--transition-normal), color var(--transition-normal); /* Keep transition? Optional */
	min-height: 100%;
	position: relative;
	overscroll-behavior-y: contain; /* 防止iOS橡皮筋效果 */
	overflow-y: auto;
	overflow-x: hidden;
  }

  /* 页面载入动画 */
  .page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--background-color);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 0.5s ease-out, visibility 0.5s;
	will-change: opacity, visibility;
  }

  .loader-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--primary-light);
	border-top: 3px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	will-change: transform;
  }

  .page-loader.fade-out {
	opacity: 0;
	visibility: hidden;
  }

  /* 确保内容填充底部导航栏的高度 */
  body {
	padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  }

  /* 避免内容被顶部导航栏遮挡 */
  main {
	padding-top: var(--header-height);
  }

  /* 标题栏样式 - 安卓风格 */
  .app-header {
	background-color: var(--header-background);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0 16px;
	box-shadow: var(--shadow-sm);
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all var(--transition-normal);
	will-change: transform, box-shadow;
  }

  .app-header.scrolled {
	box-shadow: var(--shadow-md);
  }

  .app-header .logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	height: 100%;
  }

  .app-header .site-logo {
	height: 32px;
	width: auto;
  }

  .app-header .site-title {
	color: var(--header-text);
	font-size: 1.2rem;
	font-weight: 500;
  }

  /* 菜单按钮 - Material风格 */
  .menu-button {
	background: transparent;
	border: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--rounded-full);
	position: relative;
	overflow: hidden;
  }

  .menu-button .material-icons-round {
	color: var(--header-text);
	font-size: 24px;
  }

  /* 涟漪效果 */
  .ripple {
	position: relative;
	overflow: hidden;
  }

  .ripple::after { /* Fallback/Alternative Ripple - Keep or remove if JS ripple is primary */
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: var(--ripple-color);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%, -50%);
	transform-origin: 50% 50%;
  }

  .ripple:focus:not(:active)::after {
	animation: ripple-effect 0.5s ease-out;
  }

  .ripple-light::after {
	background: var(--ripple-color-light);
  }

  /* 移动端底部导航 - Material Bottom Navigation */
  .bottom-nav {
	display: flex;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--surface-color);
	box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
	z-index: 1000;
	height: var(--bottom-nav-height);
	justify-content: space-around;
	align-items: center;
	padding-bottom: var(--safe-bottom);
	transition: all var(--transition-normal);
	will-change: transform;
  }

  .bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	height: 100%;
	text-decoration: none;
	color: var(--nav-inactive);
	font-size: 0.75rem;
	font-weight: 500;
	transition: color var(--transition-fast);
	position: relative;
	overflow: hidden;
  }

  .bottom-nav a.active {
	color: var(--nav-active);
  }

  .bottom-nav a .material-icons-round {
	font-size: 24px;
	margin-bottom: 2px;
  }

  .bottom-nav a::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 25%;
	width: 50%;
	height: 3px;
	background: var(--primary-color);
	transform: scaleX(0);
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 3px 3px 0 0;
	will-change: transform;
  }

  .bottom-nav a.active::before {
	transform: scaleX(1);
  }

  /* Material设计风格卡片 */
  .card {
	background-color: var(--card-background);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-card);
	padding: 16px;
	position: relative;
	overflow: hidden;
	transition: box-shadow var(--transition-normal),
				transform var(--transition-normal),
				background-color var(--transition-normal);
	margin-bottom: 16px;
	-webkit-tap-highlight-color: transparent;
	will-change: transform, box-shadow;
  }

  .card:active {
	transform: scale(0.98);
  }

  .card-header {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
  }

  .card-header .icon-container {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--background-color);
	border-radius: 12px;
	margin-right: 16px;
	color: var(--primary-color);
	transition: all var(--transition-normal);
  }

  .card-header .material-icons-round {
	font-size: 24px;
  }

  .card-header h3 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--text-color);
  }

  .card-content {
	margin-bottom: 16px;
  }

  .card-content p {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 4px;
  }

  .card-content a {
	color: var(--primary-color);
	text-decoration: none;
  }

  .card-footer {
	display: flex;
  }

  .card-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 16px;
	background: var(--primary-color);
	color: var(--on-primary);
	border-radius: var(--button-radius);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background var(--transition-fast);
	position: relative;
	overflow: hidden;
	will-change: transform;
  }

  .card-button .material-icons-round {
	font-size: 18px;
	margin-right: 8px;
  }

  /* 分类标题 - 安卓风格 */
  .category-section {
	margin-bottom: 32px;
	padding: 0 16px;
  }

  .category-header {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--divider-color);
  }

  .category-header .material-icons-round {
	color: var(--primary-color);
	margin-right: 12px;
	font-size: 24px;
  }

  .category-header h2 {
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--text-color);
	margin: 0;
  }

  /* 特色卡片 */
  .featured-card {
	padding: 20px;
	margin-bottom: 24px;
	border-left: 4px solid var(--accent-color);
  }

  .featured-card .card-header .icon-container {
	background: transparent;
	color: var(--text-color);
  }

  /* 湖院&湖师万事通logo放大50% */
  #content .featured-card .card-header .icon-container img {
    width: 72px !important; /* 48px * 1.5 = 72px */
    height: 72px !important;
  }

  .featured-card .card-button {
	background: var(--accent-color);
  }

  /* 主题切换按钮 - 已移除 */
  /* .theme-toggle { ... } */

  /* 全屏切换按钮 - 安卓风格 (Adjusted position) */
  .fullscreen-toggle {
	position: fixed;
	right: 16px;
	/* Adjusted bottom position */
	bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
	background: var(--primary-color);
	color: var(--on-primary);
	border: none;
	width: 56px;
	height: 56px;
	border-radius: 28px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-normal);
	z-index: 99;
	cursor: pointer;
	will-change: transform;
  }

  .fullscreen-toggle .material-icons-round {
	font-size: 24px;
  }

  .fullscreen-toggle:active {
	transform: scale(0.95);
  }

  /* 状态栏空间 - 用于PWA全屏模式 */
  .status-bar-spacer {
	height: env(safe-area-inset-top, 0);
	background-color: var(--primary-dark); /* Keep or change? Reflects light theme primary? */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
  }

  /* 抽屉菜单 - 安卓风格 */
  .drawer {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 80%;
	max-width: 320px;
	background: var(--surface-color);
	z-index: 1001;
	transform: translateX(-100%);
	transition: transform var(--transition-normal);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	will-change: transform;
  }

  .drawer.open {
	transform: translateX(0);
  }

  .drawer-header {
	padding: 16px;
	background: var(--primary-color);
	color: var(--on-primary);
	display: flex;
	align-items: center;
	min-height: 120px;
	box-sizing: border-box;
  }

  .drawer-header .logo {
	display: flex;
	flex-direction: column;
  }

  .drawer-header .site-logo {
	height: 48px;
	width: 48px;
	object-fit: contain;
	margin-bottom: 8px;
  }

  .drawer-header .site-title {
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--on-primary);
  }

  .drawer-header .subtitle {
	font-size: 0.9rem;
	opacity: 0.8;
  }

  .drawer-content {
	flex: 1;
	padding: 8px 0;
  }

  .drawer-nav-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	text-decoration: none;
	color: var(--text-color);
	position: relative;
	transition: background-color var(--transition-fast);
  }

  .drawer-nav-item:active {
	background-color: rgba(0, 0, 0, 0.05);
  }

  .drawer-nav-item .material-icons-round {
	margin-right: 16px;
	color: var(--text-muted);
  }

  .drawer-nav-item span {
	font-size: 1rem;
  }

  .drawer-divider {
	height: 1px;
	background: var(--divider-color);
	margin: 8px 0;
  }

  .drawer-footer {
	padding: 16px;
	border-top: 1px solid var(--divider-color);
  }

  .drawer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-normal), visibility var(--transition-normal);
	will-change: opacity, visibility;
  }

  .drawer-backdrop.visible {
	opacity: 1;
	visibility: visible;
  }

  /* 动画 */
  @keyframes ripple-effect {
	0% {
	  transform: scale(0, 0);
	  opacity: 1;
	}
	20% {
	  transform: scale(25, 25);
	  opacity: 1;
	}
	100% {
	  opacity: 0;
	  transform: scale(40, 40);
	}
  }

  @keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
  }

  @keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
  }

  /* 标题栏底部阴影线 - 安卓特性 */
  .app-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--divider-color);
  }

  /* 状态栏通知 */
  .status-toast {
	position: fixed;
	top: calc(var(--header-height) + 8px);
	left: 16px;
	right: 16px;
	padding: 12px 16px;
	background: var(--surface-color);
	border-radius: 8px;
	box-shadow: var(--shadow-md);
	z-index: 1000;
	display: flex;
	align-items: center;
	transform: translateY(-100px);
	opacity: 0;
	transition: transform var(--transition-normal), opacity var(--transition-normal);
	will-change: transform, opacity;
  }

  .status-toast.visible {
	transform: translateY(0);
	opacity: 1;
  }

  .status-toast .material-icons-round {
	margin-right: 12px;
	color: var(--primary-color);
  }

  .status-toast .message {
	flex: 1;
	font-size: 0.9rem;
  }

  .status-toast .close {
	background: transparent;
	border: none;
	color: var(--text-muted);
	padding: 4px;
  }

  /* 卡片网格 - 移动端基础样式 */
  .card-container {
	display: flex;
	flex-direction: column;
  }

  /* 内容服务区域特殊布局 - 移动端默认为垂直堆叠 */
  #content .card-container .featured-card,
  #content .card-container .card {
    width: 100%;
  }

  /* =============================
   桌面版专用样式
   ============================= */
  @media (min-width: 768px) {
	/* 隐藏移动版元素 */
	.bottom-nav,
	.menu-button,
	.status-toast { /* Keep status toast on desktop? Optional */
	  display: none;
	}

	/* 移除底部填充 */
	body {
	  padding-bottom: 0;
	  background: var(--background-color);
	}

	/* 主题切换按钮 - 已移除 */
	/* .theme-toggle { ... } */

	/* 全屏切换按钮 (Adjusted position) */
	.fullscreen-toggle {
	  position: fixed;
	  right: 24px;
      /* Adjusted bottom position */
	  bottom: 24px;
	  width: 50px;
	  height: 50px;
	  background: var(--surface-color);
	  color: var(--text-color);
	  box-shadow: var(--shadow-md);
	  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	  z-index: 100;
	}

	.fullscreen-toggle:hover {
	  transform: rotate(30deg);
	  background: var(--primary-color);
	  color: var(--on-primary);
	}

	/* 返回顶部按钮 (Adjusted position) */
	.back-to-top {
	  display: flex;
	  position: fixed;
      /* Adjusted bottom position */
	  bottom: 84px;
	  right: 24px;
	  width: 50px;
	  height: 50px;
	  background: var(--surface-color);
	  color: var(--text-color);
	  border: none;
	  border-radius: 50%;
	  align-items: center;
	  justify-content: center;
	  box-shadow: var(--shadow-md);
	  cursor: pointer;
	  opacity: 0;
	  visibility: hidden;
	  transform: translateY(20px);
	  transition: all 0.3s;
	  z-index: 99;
	  will-change: transform, opacity, visibility;
	}

	.back-to-top.show {
	  opacity: 1;
	  visibility: visible;
	  transform: translateY(0);
	}

	.back-to-top:hover {
	  background: var(--primary-color);
	  color: var(--on-primary);
	  transform: translateY(-3px);
	}

	/* 桌面版标题栏 */
	.app-header {
	  height: 70px;
	  padding: 0 5%;
	  backdrop-filter: blur(10px);
	  -webkit-backdrop-filter: blur(10px);
	  border-bottom: 1px solid var(--divider-color);
	  max-width: 100%;
	  margin: 0 auto;
	}

	.app-header .site-logo {
	  height: 42px;
	}

	.app-header .site-title {
	  font-size: 1.5rem;
	  font-weight: 600;
	}

	/* 内容区域 */
	main {
	  max-width: var(--max-content-width);
	  margin: 0 auto;
	  padding-top: 90px;
	  padding-bottom: 60px;
	  width: 90%;
	}

	/* 分类区域 */
	.category-section {
	  padding: 0;
	  margin-bottom: 60px;
	}

	.category-header {
	  margin-bottom: 30px;
	  padding-bottom: 15px;
	  border-bottom: 2px solid var(--divider-color);
	}

	.category-header h2 {
	  font-size: 1.8rem;
	  position: relative;
	  display: inline-block;
	}

	.category-header h2::after {
	  content: '';
	  position: absolute;
	  left: 0;
	  bottom: -16px;
	  width: 60px;
	  height: 3px;
	  background: var(--primary-color);
	  transition: width 0.3s;
	  will-change: width;
	}

	.category-header:hover h2::after {
	  width: 100%;
	}

	/* 卡片容器 - 改进的网格布局 */
	.card-container {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	  gap: 25px;
	  margin-top: 20px;
	}

	/* 内容服务区域特殊布局 - 湖院&湖师万事通和CloudCast TV在一行 */
	#content .card-container {
	  display: grid;
	  grid-template-columns: repeat(3, 1fr);
	  gap: 25px;
	}

	/* 湖院&湖师万事通占两列 */
	#content .card-container .featured-card {
	  grid-column: span 2;
	  margin-bottom: 0;
	  display: flex;
	  flex-direction: column;
	}

	/* CloudCast TV占一列 */
	#content .card-container .card:not(.featured-card) {
	  grid-column: span 1;
	  margin-bottom: 0;
	  height: 100%;
	  display: flex;
	  flex-direction: column;
	}

	/* 卡片样式增强 */
	.card {
	  margin-bottom: 0;
	  border-radius: 16px;
	  padding: 25px;
	  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	  border: 1px solid transparent;
	  overflow: hidden;
	  height: 100%;
	  display: flex;
	  flex-direction: column;
	}

	.card:hover {
	  transform: translateY(-6px);
	  box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.05);
	  border-color: var(--border-color);
	}

	.card:active {
	  transform: translateY(-4px);
	}

	.card-header {
	  margin-bottom: 20px;
	}

	.card-header .icon-container {
	  width: 56px;
	  height: 56px;
	  border-radius: 16px;
	  margin-right: 20px;
	  transition: all 0.3s;
	}

	.card:hover .card-header .icon-container {
	  transform: scale(1.1) rotate(10deg);
	  background: transparent;
	  color: var(--text-color);
	}

	.card-header h3 {
	  font-size: 1.3rem;
	  font-weight: 600;
	}

	.card-content {
	  margin-bottom: 25px;
	  flex: 1;
	}

	.card-content p {
	  font-size: 1rem;
	  line-height: 1.6;
	  margin-bottom: 10px;
	}

	.card-button {
	  padding: 12px 20px;
	  font-size: 1rem;
	  transition: all 0.3s;
	  overflow: hidden;
	  position: relative;
	}

	.card-button::before {
	  content: '';
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	  opacity: 0;
	  transition: opacity 0.3s;
	  z-index: -1;
	  will-change: opacity;
	}

	.card-button:hover::before {
	  opacity: 1;
	}

	.card-button:hover {
	  transform: translateY(-3px);
	  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	}

	/* 特色卡片改进 */
	.featured-card {
	  padding: 30px;
	  border-left-width: 5px;
	}

	.featured-card .card-header .icon-container {
	  width: 80px;
	  height: 80px;
	  margin-right: 20px;
	  font-size: 1.6rem;
	}

	.featured-card .card-header h3 {
	  font-size: 1.5rem;
	}

	/* 桌面版动画效果 */
	main {
	  animation: fadeIn 0.6s ease-out;
	}

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

  /* 桌面版导航 - 增强版 */
  .desktop-nav {
	display: none;
  }

  @media (min-width: 768px) {
	.desktop-nav {
	  display: flex;
	  margin-left: auto;
	}

	.desktop-nav ul {
	  list-style: none;
	  display: flex;
	  align-items: center;
	}

	.desktop-nav li {
	  margin-left: 20px;
	}

	.desktop-nav a {
	  color: var(--header-text);
	  text-decoration: none;
	  font-size: 1rem;
	  font-weight: 500;
	  padding: 8px 12px;
	  border-radius: var(--button-radius);
	  transition: all 0.2s ease;
	  position: relative;
	}

	.desktop-nav a:hover {
	  color: var(--primary-color);
	  background-color: rgba(var(--primary-rgb), 0.1);
	  transform: translateY(-2px);
	}

	.desktop-nav a.github-link {
	  background: var(--primary-color);
	  color: var(--on-primary);
	  padding: 10px 20px;
	  border-radius: 30px;
	  margin-left: 10px;
	  display: flex;
	  align-items: center;
	}

	.desktop-nav a.github-link i {
	  margin-right: 8px;
	}

	.desktop-nav a.github-link:hover {
	  background: var(--primary-dark);
	  transform: translateY(-2px);
	  box-shadow: var(--shadow-md);
	}

	.desktop-nav a.github-link::after {
	  display: none;
	}

	/* 隐藏移动版菜单按钮 */
	.menu-button {
	  display: none;
	}
  }

  /* 更大屏幕的优化 */
  @media (min-width: 1200px) {
    main {
      width: 85%;
      max-width: 1400px;
    }

    .category-section {
      margin-bottom: 80px;
    }

    .card-container {
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 30px;
    }

    /* 保持内容服务区域特殊布局 */
    #content .card-container {
      grid-template-columns: repeat(3, 1fr);
    }

    .app-header {
      padding: 0 8%;
    }

    .desktop-nav a {
      font-size: 1.1rem;
    }
  }

  /* 超大屏幕优化 */
  @media (min-width: 1600px) {
    main {
      width: 80%;
      max-width: 1600px;
    }

    .card-container {
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 35px;
    }

    /* 内容服务区域保持特殊布局 */
    #content .card-container {
      grid-template-columns: repeat(3, 1fr);
      gap: 35px;
    }

    .category-header h2 {
      font-size: 2rem;
    }

    .card {
      padding: 30px;
    }

    .card-header h3 {
      font-size: 1.4rem;
    }

    .card-content p {
      font-size: 1.05rem;
    }
  }

  /* 适应中等屏幕的特殊处理 */
  @media (min-width: 768px) and (max-width: 991px) {
    /* 中等屏幕上内容服务区域的特殊网格布局 */
    #content .card-container {
      display: grid;
      grid-template-columns: 2fr 1fr;
    }
  }

  /* 平板竖屏下优化内容服务布局 */
  @media (min-width: 600px) and (max-width: 767px) {
    #content .card-container {
      display: grid;
      grid-template-columns: 1fr;
    }

    #content .featured-card {
      margin-bottom: 25px;
    }
  }

  /* 打印样式优化 */
  @media print {
    .app-header,
    .bottom-nav,
    /* .theme-toggle, */ /* Already removed */
    .fullscreen-toggle,
    .back-to-top,
    .drawer,
    .drawer-backdrop {
      display: none;
    }

    body {
      padding: 0;
      background: white;
      color: black;
    }

    main {
      padding: 20px;
      max-width: 100%;
    }

    .card {
      break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ddd;
    }

    .card-button {
      display: none;
    }
  }

  /* 移动端视图（小屏幕）重置内容服务区域布局为垂直堆叠 */
  @media (max-width: 599px) {
    #content .card-container {
      display: flex;
      flex-direction: column;
    }

    #content .featured-card,
    #content .card:not(.featured-card) {
      width: 100%;
    }
  }

/* 性能优化 - 优化渲染路径 */
/* Use CSS variable for ripple background color */
.ripple-element {
  position: absolute;
  background: var(--ripple-bg, rgba(0, 0, 0, 0.1)); /* Default fallback */
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  will-change: transform, opacity;
  pointer-events: none; /* Ensure ripple doesn't interfere with clicks */
}

/* 预加载字体优化 */
@font-face {
  font-family: 'Material Icons Round';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/materialiconsround/v108/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmP.woff2) format('woff2');
}

/* 图片加载优化 */
img {
  content-visibility: auto;
}