/*
Theme Name: SUSHI X
Theme URI: https://sushix.it/
Author: SUSHI X
Description: SUSHI X sushi boutique 的深色品牌主题，包含菜单与地址页面。
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sushix-theme
*/

:root {
	--sx-black: #101112;
	--sx-white: #f8f8f8;
	--sx-muted: #818181;
	--sx-line: rgba(255, 255, 255, 0.18);
	--sx-max-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sx-black);
	color: var(--sx-white);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sx-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: 112px;
	background: rgba(16, 17, 18, 0);
	transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.sx-site-header.is-scrolled {
	background: rgba(16, 17, 18, .75);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
body.admin-bar .sx-site-header { top: 32px; }
.sx-header__inner {
	width: min(calc(100% - 72px), var(--sx-max-width)); height: 100%; margin: 0 auto;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px;
}
.sx-header__nav { display: flex; align-items: center; gap: clamp(42px, 7vw, 110px); }
.sx-header__nav--right { justify-content: flex-end; }
.sx-header__menu { display: flex; align-items: center; gap: clamp(42px, 7vw, 110px); list-style: none; margin: 0; padding: 0; }
.sx-header__menu > li { margin: 0; padding: 0; }
.sx-header__menu > li > a { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; font-size: 23px; line-height: 1.15; }
.sx-header__menu > li > a::before { content: attr(data-eyebrow); color: #9a9a9a; font-size: 17px; line-height: 1.1; }
.sx-header__menu > li.current-menu-item > a { text-decoration: underline; text-underline-offset: 5px; }
.sx-nav-link { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.sx-nav-link__eyebrow { color: #9a9a9a; font-size: 17px; line-height: 1.1; }
.sx-nav-link__label { font-size: 23px; line-height: 1.15; }
.sx-nav-link[aria-current="page"] .sx-nav-link__label { text-decoration: underline; text-underline-offset: 5px; }
.sx-brand-mark { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: -2px; font-size: 43px; line-height: 1; white-space: nowrap; }
.sx-brand-image { display: block; width: auto; height: auto; object-fit: contain; }
.sx-brand-image--header { width: 195px; max-height: 62px; }
.sx-brand-image--footer { width: 210px; max-height: 105px; }
.sx-brand-mark__x { position: relative; display: inline-block; width: 53px; height: 50px; margin-left: 3px; }
.sx-brand-mark__x::before, .sx-brand-mark__x::after { content: ""; position: absolute; width: 67px; height: 6px; left: -7px; top: 22px; background: #fff; transform: rotate(48deg); }
.sx-brand-mark__x::after { transform: rotate(-48deg); }
.sx-brand-mark--footer { position: relative; display: inline-flex; font-size: 40px; }
.sx-brand-mark--footer .sx-brand-mark__x { width: 46px; height: 43px; }

.sx-hero { position: relative; overflow: hidden; }
.sx-hero--menu { min-height: 853px; background: #171717 url('other-page-materials/首图.png') center center / cover no-repeat; }
.sx-hero--address { min-height: 900px; background: #171717 url('other-page-materials/店铺效果图.png') center center / cover no-repeat; }
.sx-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .24); }
.sx-hero__inner { position: relative; width: min(calc(100% - 72px), var(--sx-max-width)); min-height: inherit; margin: 0 auto; display: flex; align-items: center; }
.sx-hero--menu .sx-hero__inner { justify-content: flex-end; padding: 90px 90px 90px 0; }
.sx-hero--address .sx-hero__inner { justify-content: flex-start; padding: 70px 0 85px; }

.sx-card { position: relative; width: 530px; min-height: 655px; padding: 58px 67px 45px; border: 1px solid rgba(255,255,255,.72); border-radius: 5px; background: rgba(5, 5, 5, .82); box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset; }
.sx-card::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; pointer-events: none; }
.sx-card > * { position: relative; z-index: 1; }
.sx-card__eyebrow { margin: 0 0 44px; font-size: 18px; font-weight: 600; }
.sx-card__title { margin: 0; max-width: 420px; font-size: 48px; line-height: 1.12; letter-spacing: -.5px; }
.sx-card__text { margin: 70px 0 52px; color: #aaa; font-size: 16px; line-height: 1.45; }
.sx-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 999px; background: #fff; color: #111; font-size: 16px; font-weight: 500; transition: transform .2s ease, background .2s ease; }
.sx-button:hover, .sx-button:focus-visible { background: #e8e8e8; text-decoration: none; transform: translateY(-2px); }
.sx-button--outline { border-color: #aaa; background: transparent; color: #fff; }
.sx-button--outline:hover, .sx-button--outline:focus-visible { background: #fff; color: #111; }
.sx-button.is-disabled { opacity: .52; cursor: not-allowed; pointer-events: none; transform: none; }
.sx-card__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 70px; padding-top: 11px; border-top: 1px solid var(--sx-line); color: #777; font-size: 11px; }
.sx-card__features span:nth-child(2) { text-align: center; }
.sx-card__features span:last-child { text-align: right; }

.sx-address-card { width: 420px; min-height: 517px; padding: 43px 51px 37px; }
.sx-address-card .sx-card__eyebrow { margin-bottom: 35px; font-size: 16px; }
.sx-address-card .sx-card__title { font-size: 40px; max-width: 250px; }
.sx-address-card__details { display: grid; gap: 17px; margin-top: 34px; }
.sx-detail { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; font-size: 15px; line-height: 1.35; }
.sx-detail img { width: 25px; height: 25px; object-fit: contain; filter: brightness(0) invert(1); }
.sx-address-card .sx-card__features { margin-top: 44px; }

.sx-map-section { padding: 150px 0 160px; background: var(--sx-black); }
.sx-map-section__inner { width: min(calc(100% - 72px), 1440px); margin: 0 auto; }
.sx-map-image { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: center; }

.sx-site-footer { background: var(--sx-black); }
.sx-footer__inner { width: min(calc(100% - 72px), var(--sx-max-width)); margin: 0 auto; padding: 58px 0 39px; }
.sx-footer__grid { display: grid; grid-template-columns: 1.35fr 1.1fr 1fr; gap: 80px; min-height: 222px; }
.sx-footer__tagline { margin: 50px 0 0; color: #666; font-size: 16px; }
.sx-footer__social { display: inline-flex; gap: 10px; margin-left: 16px; vertical-align: middle; }
.sx-footer__social a { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; }
.sx-footer__social img { width: 100%; height: 100%; object-fit: contain; }
.sx-footer__heading { margin: 7px 0 15px; color: #777; font-size: 16px; font-weight: 600; }
.sx-footer__links { margin: 0; color: #777; font-size: 16px; }
.sx-footer__actions { display: flex; gap: 20px; margin-top: 18px; }
.sx-footer__contact p { margin: 0 0 22px; color: #777; font-size: 16px; line-height: 1.4; }
.sx-footer__bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); color: #666; font-size: 12px; }
.sx-footer__bottom p { margin: 0; }
.sx-footer__bottom p:nth-child(2) { text-align: center; }
.sx-footer__bottom p:last-child { text-align: right; }

@media (max-width: 900px) {
	.sx-site-header { height: auto; }
	.sx-header__inner { width: min(calc(100% - 36px), var(--sx-max-width)); min-height: 90px; grid-template-columns: 1fr auto; gap: 20px; }
	.sx-header__nav { gap: 24px; }
	.sx-header__nav--left { order: 2; grid-column: 1 / -1; justify-content: center; padding-bottom: 16px; }
	.sx-header__nav--right { order: 1; grid-column: 1; justify-content: flex-start; }
	.sx-brand-mark { order: 1; grid-column: 2; grid-row: 1; font-size: 32px; }
	.sx-header__nav--right .sx-nav-link__eyebrow { display: none; }
	.sx-nav-link__eyebrow { font-size: 12px; }
	.sx-nav-link__label { font-size: 17px; }
	.sx-hero__inner { width: min(calc(100% - 36px), var(--sx-max-width)); }
	.sx-hero--address { min-height: 675px; }
	.sx-hero--menu .sx-hero__inner, .sx-hero--address .sx-hero__inner { justify-content: center; padding: 48px 0; }
	.sx-card { width: min(100%, 530px); }
	.sx-map-section { padding: 60px 0 70px; }
	.sx-map-section__inner { width: min(calc(100% - 36px), 1440px); }
	.sx-footer__inner { width: min(calc(100% - 36px), var(--sx-max-width)); padding-top: 46px; }
	.sx-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
	.sx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	body.admin-bar .sx-site-header { top: 46px; }
}
@media (max-width: 560px) {
	.sx-header__inner { min-height: 78px; }
	.sx-header__nav--left { gap: 18px; }
	.sx-nav-link__eyebrow { font-size: 11px; }
	.sx-nav-link__label { font-size: 15px; }
	.sx-brand-image--header { width: 125px; max-height: 42px; }
	.sx-brand-mark__x { width: 35px; height: 34px; }
	.sx-brand-mark__x::before, .sx-brand-mark__x::after { width: 45px; height: 4px; top: 15px; left: -5px; }
	.sx-card { min-height: 0; padding: 43px 31px 35px; }
	.sx-card::after { inset: 8px; }
	.sx-card__eyebrow { margin-bottom: 28px; font-size: 15px; }
	.sx-card__title { font-size: 35px; }
	.sx-card__text { margin: 45px 0 35px; font-size: 14px; }
	.sx-card__features { margin-top: 48px; font-size: 9px; }
	.sx-address-card { padding: 37px 31px 30px; }
	.sx-address-card .sx-card__title { font-size: 34px; }
	.sx-address-card__details { gap: 14px; margin-top: 30px; }
	.sx-detail { grid-template-columns: 23px 1fr; font-size: 13px; }
	.sx-detail img { width: 21px; height: 21px; }
	.sx-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.sx-footer__actions { flex-wrap: wrap; }
	.sx-footer__bottom { grid-template-columns: 1fr; gap: 14px; padding-top: 28px; font-size: 10px; }
	.sx-footer__bottom p, .sx-footer__bottom p:nth-child(2), .sx-footer__bottom p:last-child { text-align: left; }
}
