
:root{
	--lh-body: 1.75;
	--lh-compact: 1.5;
	--sp-xs: 0.625rem;
	--sp-sm: 0.875rem;
	--sp-md: 1.25rem;
	--sp-lg: 1.75rem;
	--radius: 0.625rem;
}

body, .entry-content {
	color: var(--wp--preset--color--sk-text);
	font-family: var(--wp--preset--font-family--noto-serif-sc);
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.wp-child-theme-gp-sain {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.wp-child-theme-gp-sain header,
body.wp-child-theme-gp-sain footer {
	flex-shrink: 0;
}

body.wp-child-theme-gp-sain #page.site {
	flex: 1;
	min-height: 0;
}

body.wp-child-theme-gp-sain .site-content .content-area {
    width: 100%;
}

body, .entry-content, .main-navigation a {
	font-family: var(--wp--preset--font-family--noto-serif-sc);
}
.site-content a { text-decoration: none; }

h1,h2,h3,h4,h5,h6,.site-title,.entry-title {
	font-family: var(--wp--preset--font-family--noto-serif-sc);
	letter-spacing: .2px;
}

code, pre {
	font-family: var(--wp--preset--font-family--mono);
}

.entry-title, h1 {
	font-size: var(--wp--preset--font-size--h-1);
	font-weight: 700;
	color: var(--wp--preset--color--sk-text);
	margin: 0 0 var(--sp-md);
}

h2 {
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 700;
	margin: var(--sp-lg) 0 var(--sp-sm);
	padding-bottom: 6px;
	border-bottom: 2px solid var(--wp--preset--color--sk-border);
}

h3 {
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 700;
	margin: var(--sp-md) 0 var(--sp-xs);
	color: var(--wp--preset--color--sk-text);
}

.entry-meta, .posted-on, .byline { color: var(--wp--preset--color--sk-muted); font-size: 90%; }

.entry-content p {
	margin: 0 0 var(--sp-md);
	line-height: var(--lh-body);
	text-indent: 0;
  }

  .entry-content p + h2, .entry-content p + h3 {
	margin-top: var(--sp-lg);
  }

  .entry-content ul, .entry-content ol {
	margin: 0 0 var(--sp-md) 1.2em;
	padding: 0;
	line-height: var(--lh-body);
  }

  .entry-content ul li {
	margin-bottom: 10px;
	line-height: 1.8;
  }
  .entry-content li::marker { color: #555; }

.entry-content table, .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--sp-sm) 0 var(--sp-md);
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--lh-compact);
	background: #fff;
	border: 1px solid var(--wp--preset--color--sk-border);
	border-radius: var(--radius);
}

.entry-content th, .entry-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--wp--preset--color--sk-border);
}

.entry-content thead th {
	background: var(--wp--preset--color--sk-soft);
	text-align: left;
	font-weight: 700;
}
.entry-content tbody tr:last-child td { border-bottom: 0; }

.entry-content blockquote {
	margin: var(--sp-md) 0;
	padding: 14px 18px;
	border-left: 4px solid var(--wp--preset--color--sk-accent);
	background: var(--wp--preset--color--sk-soft);
	color: var(--wp--preset--color--sk-text);
}
.entry-content blockquote p { margin: 0; }

.entry-content hr { border: 0; border-top: 1px solid var(--wp--preset--color--sk-border); margin: var(--sp-lg) 0; }
.entry-content code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 90%;
	background: #f6f8fa;
	padding: 2px 6px;
	border-radius: 6px;
}


.page .entry-title, .single .entry-title {
	font-size: var(--wp--preset--font-size--h-1);
	line-height: 1.25;
	margin-bottom: var(--sp-sm);
}

.blog .inside-article, .archive .inside-article {
	padding: 20px 15px;
	margin-bottom: 28px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
.blog .entry-title, .archive .entry-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
}
.blog .entry-title a { color: var(--wp--preset--color--sk-text); text-decoration: none; }
.blog .entry-title a:hover { color: var(--wp--preset--color--sk-accent);}
.blog .entry-meta { font-size: 14px; color: var(--wp--preset--color--sk-muted); margin-bottom: 8px; }
.blog .entry-summary {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
  }
.blog .read-more {
	display: inline-block;
	padding: 6px 12px;
	font-size: 14px;
	background: var(--wp--preset--color--sk-accent);
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
}
.blog .read-more:hover { background: #09498a; }

.sidebar .widget {
	border-top: 1px solid var(--wp--preset--color--sk-border);
	border-bottom: 1px solid var(--wp--preset--color--sk-border);
	padding: 15px;
	margin-bottom: 20px;
	background: var(--wp--preset--color--sk-soft);
	font-size: 90%;
	color: #555;
}
  .sidebar .widget-title {
	font-size: 16px;
	font-weight: 700;
	border-bottom: 1px solid #ddd;
	padding-bottom: 6px;
	margin-bottom: 12px;
  }

header.site-header {background: #ffbf69;}

.sk-header-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	position: relative;
}

.sk-header-left {
	justify-self: start;
}

.sk-site-branding {
	display: flex;
	flex: 1;
	align-items: center;
	gap: var(--sp-xs);
	padding-right: 1rem;
}

.sk-site-branding .site-title {
	font-size: 1.25rem;
}

.sk-header-center.menu-toggle {
	justify-self: end;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	z-index: 1001;
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
	fill: #555;
}

.menu-toggle svg:first-of-type {
  display: block;
}
.menu-toggle svg:last-of-type {
  display: none;
}
.sk-header-inner.is-open .menu-toggle svg:first-of-type {
  display: none;
}
.sk-header-inner.is-open .menu-toggle svg:last-of-type {
  display: block;
}

.sk-header-inner.is-open .search-form .search-submit {
  display: none;
}

.menu-toggle .mobile-menu {display: none;}

.sk-header-right {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80vw;
	max-width: 400px;
	height: 100vh;
	background: #fff;
	box-shadow: -2px 0 10px rgba(0,0,0,0.1);
	z-index: 1000;

	display: grid;
	grid-template-rows: 1fr auto;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 80px 1.5rem 1.5rem;

	transition: right 0.3s ease-in-out;
	box-sizing: border-box;
}

.sk-header-right > nav {
	display: block;
	min-height: 0;
	height: 100%;
	min-width: 0;
	width: 100%;
	overflow-y: auto;
}

.sk-header-right .inside-navigation.grid-container {
	min-height: 0;
	height: 100%;
	display: block;
	overflow-y: auto;
}


/*=====*/
.sk-header-right > * {
  min-width: 0;
  width: 100%;
}

.sk-header-right .main-navigation,
.sk-header-right .sk-main-nav,
.sk-header-right .menu {
	width: 100%;
	min-width: 0;
}
.menu-item {
	min-width: 0;
}
 /* 移动端：二级菜单直接展开（缩进） */
  @media (max-width: 767px) {
        .sub-menu {
                position: static;
                display: block !important;
                visibility: visible !important;
                height: auto;
                width: 100%;
                padding-left: 1rem;
                box-sizing: border-box;
                opacity: 1 !important;
                transform: none !important;
        }
  }

  /* PC端：二级菜单悬停显示 */
  @media (min-width: 768px) {
	header.site-header nav.main-navigation {background: #ffbf69;}
	header.site-header .search-fieldx {background: #ffbf69;}
        .sk-main-nav .sub-menu {
                position: absolute;
                top: 100%;
                left: 0;
                z-index: 1000;
                min-width: 220px;
                background: #fff;
                border: 1px solid var(--wp--preset--color--sk-border);
                border-radius: 6px;
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
                padding: 0.5rem 0;
                display: none;
                visibility: hidden;
                opacity: 0;
                transform: translateY(10px);
                transition: all 0.2s ease;
                width: auto;
        }

        .sk-main-nav li:hover > .sub-menu {
                display: block;
                visibility: visible;
                opacity: 1;
                transform: translateY(0);
        }

        .sk-main-nav .sub-menu a {
                padding: 0.5rem 1rem;
                font-size: 0.95rem;
                border: 0;
                white-space: nowrap;
        }

        .sk-main-nav .sub-menu li {
                margin: 0;
        }

        .sk-main-nav .sub-menu .sub-menu {
                top: 0;
                left: 100%;
        }
  }


/*==================*/


.sk-header-inner.is-open .sk-header-right {
  right: 0;
}

.drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;

	opacity: 0;
	visibility: hidden;

	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sk-header-inner.is-open .drawer-overlay {
	opacity: 1;
	visibility: visible;
}




.sk-header-right .main-navigation {
	position: relative;
	z-index: 200;
}

.sk-header-right .inside-navigation.grid-container {
	width: auto;
	max-width: none;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--sp-sm);
}

.sk-header-right .main-navigation::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(15,23,42,.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
	pointer-events: none;
}

.sk-main-nav {
      position: static;
      transform: none;
      width: 100%;
      height: auto;
      background: transparent;
      box-shadow: none;
      padding: 0;
      overflow: visible;
      pointer-events: auto;
}

.sk-main-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-xs);
}

.sk-main-nav li {
	position: relative;
}

.sk-main-nav a {
	display: block;
	padding: 0.1rem 2.5rem 0.1rem 0;
	color: var(--wp--preset--color--sk-text);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--sk-border);
	font-size: 1rem;
}

.sk-main-nav li:last-child > a {
	border-bottom: none;
}

.sk-main-nav ul ul {
	margin: 0 0 var(--sp-xs) var(--sp-sm);
	padding-left: var(--sp-sm);
	border-left: 2px solid var(--wp--preset--color--sk-border);
}

.sk-main-nav ul ul a {
	border: 0;
	padding: 0.5rem 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.main-navigation .dropdown-toggle {
	position: absolute;
	top: 0.5rem;
	right: 0;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--sk-border);
	background: transparent;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background .2s ease, border-color .2s ease;
}

.main-navigation .dropdown-toggle:hover,
.main-navigation .dropdown-toggle:focus {
	background: var(--wp--preset--color--sk-soft);
	border-color: rgba(11,92,171,0.35);
}

.main-navigation.toggled .menu-toggle {
	position: fixed;
	top: var(--sp-sm);
	right: var(--sp-sm);
	z-index: 1002;
	background: #fff;
	color: var(--wp--preset--color--sk-accent);
	transform: none;
}

.main-navigation.toggled .menu-toggle .gp-icon svg:first-of-type {
	display: none;
}

.main-navigation.toggled .menu-toggle .gp-icon svg + svg {
	display: inline;
}

.main-navigation.toggled::before {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 998;
}

.site-footer {
    container: footer / inline-size;
}

@container footer (max-width: 599px) {
    .inside-site-info {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
    }

    .inside-site-info > * {
        text-align: center;
    }
}

@media (min-width: 768px) {
	body.wp-child-theme-gp-sain .site-content .content-area {
    	width: 70%;
	}
	.sk-header-inner {
		grid-template-columns: auto 1fr;
	}

	.sk-header-center.menu-toggle {
		display: none;
	}
	.sk-header-right {
		position: static;
		right: auto;
		width: auto;
		max-width: none;
		height: auto;
		box-shadow: none;
		z-index: auto;

		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto;
		justify-content: end;
		align-items: center;
		gap: 2rem;
		padding: 0;
		background: transparent;

		container: container-header-right / inline-size;
	}

	.sk-header-right.is-open::before {
		display: none;
	}


	.sk-header-right .search-form {
		order: -1;
	}

	@container container-header-right (max-width: 920px) {
		.sk-header-right .search-form .search-submit {display: none;}
	}

	/*======*/
	.sk-header-center .search-field {
		padding: 0.375rem 0.625rem;
	}

	.sk-header-center .search-submit {
		padding: 0.375rem 0.75rem;
	}

	.sk-header-right .main-navigation {
		position: static;
	}

	.sk-header-right .main-navigation::before {
		display: none;
	}

	.sk-header-right .menu-toggle {
		display: none;
		box-shadow: none;
	}

	.sk-main-nav {
		position: static;
		transform: none;
		height: auto;
		width: auto;
		background: transparent;
		box-shadow: none;
		padding: 0;
		overflow: visible;
		pointer-events: auto;
	}

	.sk-main-nav > ul {
		flex-direction: row;
		align-items: center;
		gap: 0.625rem;
	}

	.sk-main-nav a {
		padding: 0;
		border: 0;
		font-size: 1rem;
	}

	.sk-main-nav ul ul {
		border: 0;
		margin: 0;
		padding: 0;
	}
  .sk-main-nav .sub-menu {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 1000;
      min-width: 220px;
      background: #fff;
      border: 1px solid var(--wp--preset--color--sk-border);
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 0.5rem 0;
      /* 用display:none隐藏替代left:-99999px */
      display: none;
      visibility: hidden;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.2s ease;
  }

  .sk-main-nav li:hover > .sub-menu {
	position: absolute !important;
      display: block;
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
  }

  .sk-main-nav .sub-menu a {
      padding: 0.5rem 1rem;
      font-size: 0.95rem;
      border: 0;
      white-space: nowrap;
  }

  .sk-main-nav .sub-menu li {
      margin: 0;
  }

  .sk-main-nav .sub-menu .sub-menu {
      top: 0;
      left: 100%;
  }
	.blog .inside-article, .archive .inside-article {
		border: 1px solid var(--wp--preset--color--sk-border);
		border-radius: 8px;
		padding: 20px 24px;
	}

	.sidebar .widget {
		border: 1px solid var(--wp--preset--color--sk-border);
		border-radius: 6px;
	}
}

@media (max-width: 767px) {
	.sk-header-right .main-navigation:not(.slideout-navigation):not(.toggled) .main-nav > ul {
		display: block;
	}
}

@keyframes sk-slide-in-right {
	from {
		transform: translateX(100%);
	}

	to {
		transform: translateX(0);
	}
}
