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

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #1a2a6c;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body * {
  box-sizing: border-box;
  word-break: break-all;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #333333;
  text-decoration: none;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
          appearance: none;
}
.js-pageTransition::before, .js-pageTransition::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  pointer-events: none;
  position: fixed;
  top: 0;
}
.js-pageTransition::before {
  right: 100%;
  transition: right 0.5s cubic-bezier(1, -0.01, 0.64, 0.99);
}
.js-pageTransition::after {
  left: 100%;
  transition: left 0.5s cubic-bezier(1, -0.01, 0.64, 0.99);
}
.js-pageTransition.is-slideIn::before {
  right: 0;
}
.js-pageTransition.is-slideOut::after {
  left: 0;
}
/* ==================================================================

    Project

================================================================== */
.p-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
  padding: 40px 100px 0;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 12;
}
@media screen and (max-width: 767.98px) {
  .p-header {
    margin: 0;
    padding: 5.3333333333vw 5.3333333333vw 4vw;
    background-color: #1a2a6c;
  }
}
@media (width >= 1420px) {
  .p-header.is-vertical {
    align-items: flex-start;
  }
}
.p-header__logo {
  width: 133px;
  height: 38px;
}
@media screen and (max-width: 767.98px) {
  .p-header__logo {
    width: 24.5vw;
    height: 7vw;
  }
}
.p-header__nav {
  position: absolute;
  top: 40px;
  right: 100px;
}
@media (width < 1510px) {
  .p-header__nav {
    right: 50px;
  }
}
@media (width < 1420px) {
  .p-header__nav {
    display: none !important;
  }
}
.p-header__navList {
  display: flex;
  column-gap: 40px;
  transition: all 0.3s;
}
.p-header.is-vertical .p-header__navList {
  flex-direction: column;
  row-gap: 12px;
  margin-top: 8px;
  width: 135px;
}
@media (width > 1650px) {
  .p-header.is-vertical .p-header__navList {
    width: 150px;
  }
}
.p-header__navLink {
  display: inline-block;
  color: #FFFFFF;
  letter-spacing: 0.05rem;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  transform: scale(1);
  transition: transform 0.3s;
}
.p-header__navLink:hover {
  transform: scale(1.15);
}
.p-header.is-vertical .p-header__navLink {
  font-size: 20px;
  transition: font-size 0.3s;
}
.p-header.is-vertical .p-header__navLink:hover {
  font-size: 24px;
  transform: scale(1);
}
.p-header__menu {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4a6bdf;
  position: relative;
  z-index: 15;
  transition: background-color 0.3s;
}
@media screen and (max-width: 767.98px) {
  .p-header__menu {
    width: 9.3333333333vw;
    height: 9.3333333333vw;
  }
}
@media (width < 1420px) {
  .p-header__menu {
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .p-header__menu:hover {
    background-color: #FFFFFF;
  }
}
.p-header__menu.is-open {
  background-color: #FFFFFF;
}
@media screen and (min-width: 768px) {
  .p-header__menu.is-open {
    margin-right: 15px;
  }
}
.p-header__menuInner {
  display: inline-block;
  width: 12px;
  height: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media screen and (max-width: 767.98px) {
  .p-header__menuInner {
    width: 3.2vw;
    height: 1.8666666667vw;
  }
}
.p-header__menuLine {
  display: inline-block;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 9999px;
  position: absolute;
  left: 0;
  transition: background-color 0.3s, transform 0.3s, width 0.3s;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuLine {
    height: 0.5333333333vw;
  }
}
@media screen and (min-width: 768px) {
  .p-header__menu:hover .p-header__menuLine {
    background-color: #000000;
  }
}
.p-header__menuLine:first-of-type {
  width: 12px;
  top: 0;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuLine:first-of-type {
    width: 3.2vw;
  }
}
.p-header__menuLine:last-of-type {
  width: 8px;
  bottom: 0;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuLine:last-of-type {
    width: 2.1333333333vw;
  }
}
.p-header__menu.is-open .p-header__menuLine {
  background-color: #000000;
  width: 12px;
  top: 50%;
  left: 50%;
  position: absolute;
  transform-origin: 0 0;
}
@media screen and (max-width: 767.98px) {
  .p-header__menu.is-open .p-header__menuLine {
    width: 3.2vw;
  }
}
.p-header__menu.is-open .p-header__menuLine:first-of-type {
  transform: rotate(-30deg) translate(-50%, -50%);
}
.p-header__menu.is-open .p-header__menuLine:last-of-type {
  transform: rotate(30deg) translate(-50%, -50%);
  bottom: auto;
}
.p-header__menuPanel {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #4a6bdf;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 13;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
  scrollbar-gutter: stable;
}
.p-header__menuPanel.is-open {
  visibility: visible;
  opacity: 1;
}
.p-header__menuPanelNav {
  width: 1100px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
@media (width < 1515px) {
  .p-header__menuPanelNav {
    width: 73.3vw;
  }
}
@media screen and (max-width: 767.98px) {
  .p-header__menuPanelNav {
    width: 100%;
    padding: 0 10.6666666667vw;
  }
}
.p-header__menuPanelNavItem + .p-header__menuPanelNavItem {
  margin-top: 25px;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuPanelNavItem + .p-header__menuPanelNavItem {
    margin-top: 4vw;
  }
}
.p-header__menuPanelNavLink {
  font-style: italic;
  font-weight: 500;
  color: #FFFFFF;
  font-size: 32px;
  letter-spacing: 0.08rem;
  transition: font-size 0.3s;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuPanelNavLink {
    font-size: 7.2vw;
  }
}
@media screen and (min-width: 768px) {
  .p-header__menuPanelNavLink:hover {
    font-size: 38px;
  }
}
.p-header__menuPanelNavTextItem {
  margin-top: 65px;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuPanelNavTextItem {
    margin-top: 10.6666666667vw;
  }
}
.p-header__menuPanelNavTextLink {
  color: #FFFFFF;
  font-size: 12px;
  text-decoration: underline;
}
@media screen and (max-width: 767.98px) {
  .p-header__menuPanelNavTextLink {
    font-size: 5.2vw;
  }
}
@media screen and (min-width: 768px) {
  .p-header__menuPanelNavTextLink:hover {
    text-decoration: none;
  }
}

.p-footer {
  background-color: #000000;
  background-image: url("../images/bg_footer.jpg");
  background-repeat: repeat;
  background-size: contain;
  background-position: 50%;
}
@media screen and (min-width: 768px) {
  .p-footer {
    min-width: 1200px;
  }
}
.p-footer__inner {
  padding: 54px 0;
}
@media screen and (min-width: 768px) {
  .p-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1100px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 767.98px) {
  .p-footer__inner {
    padding: 10.6666666667vw 0 12vw;
  }
}
.p-footer__logo {
  width: 175px;
  height: 50px;
}
@media screen and (max-width: 767.98px) {
  .p-footer__logo {
    width: 28vw;
    height: 8vw;
    margin: 0 auto 5.3333333333vw;
  }
}
@media screen and (min-width: 768px) {
  .p-footer__textWrap {
    display: flex;
    align-items: baseline;
    column-gap: 20px;
  }
}
.p-footer__list {
  display: flex;
  align-items: baseline;
  line-height: 1;
  column-gap: 20px;
}
@media screen and (max-width: 767.98px) {
  .p-footer__list {
    column-gap: 5.3333333333vw;
    justify-content: center;
    margin-bottom: 6.6666666667vw;
  }
}
.p-footer__link {
  color: #FFFFFF;
  font-size: 12px;
  text-decoration: underline;
}
@media screen and (max-width: 767.98px) {
  .p-footer__link {
    font-size: 3.2vw;
  }
}
@media screen and (min-width: 768px) {
  .p-footer__link:hover {
    text-decoration: none;
  }
}
.p-footer__copyright, .p-footer__icp a {
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02rem;
}
@media screen and (max-width: 767.98px) {
  .p-footer__copyright, .p-footer__icp {
    font-size: 3.2vw;
    text-align: center;
  }
  .p-footer__icp {
    margin-top: 2vw;
  }
}

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

    烧七计算器

================================================================== */
.container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    padding: 218px 20px 75px;
}

@media screen and (max-width: 767.98px) {
    .container {
        padding: 30.3333333333vw 20px 9.8666666667vw;
    }
}

.header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
    font-size: 16px;
}

input[type="text"], input[type="date"] {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="text"]:focus, input[type="date"]:focus {
    border-color: #4a6bdf;
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.1);
    outline: none;
}

.btn {
    background: linear-gradient(135deg, #4a6bdf, #6a8bff);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 223, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.result-container {
    display: none;
}

.result-title {
    text-align: center;
    margin-bottom: 25px;
    color: #4a6bdf;
    font-size: 20px;
    font-weight: bold;
}

.result-title span {
    font-size: 22px;
	margin-right: 10px;
}

.result-item {
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #4a6bdf;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

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

.item-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #495057;
    font-size: 18px;
}

.day-count {
    display: inline-block;
    background: rgba(74, 107, 223, 0.1);
    color: #4a6bdf;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

.date-display {
    font-size: 16px;
    margin-bottom: 5px;
    color: #4a6bdf;
}

.lunar-date {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 5px;
}

.hidden {
    display: none;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.success-message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #28a745;
    display: none;
}

.save-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* 专门为图片生成设计的样式 */
.image-container {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 500px;
    padding: 20px;
    background: linear-gradient(135deg, #1a2a6c, #2a3a7c);
    font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
    z-index: 10000;
}

.image-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.image-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.image-title {
    display: flex;
	gap: 10px;
	line-height: 1.2;
	justify-content: center;
	align-items: flex-end;
    font-size: 32px;
    color: white;
    margin-bottom: 10px;
}

.logo {
	width: 175px;
	height: 50px;
	display: block;
}

.image-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
}

.image-result-title {
    text-align: center;
    margin-bottom: 25px;
    color: #4a6bdf;
    font-size: 24px;
    font-weight: bold;
}

.image-result-title span {
    font-size: 28px;
	margin-right: 10px;
}

.image-result-item {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #4a6bdf;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.image-item-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #495057;
    font-size: 24px;
}

.image-day-count {
    display: inline-block;
    background: rgba(74, 107, 223, 0.1);
    color: #4a6bdf;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 16px;
    margin-left: 10px;
}

.image-date-display {
    font-size: 23px;
    margin-bottom: 5px;
    color: #4a6bdf;
}

.image-lunar-date {
    font-size: 22px;
    color: #6c757d;
    margin-bottom: 5px;
}

.image-watermark {
    text-align: center;
	line-height: 2;
    margin-top: 20px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 22px;
}

.qrcode {
    width: 140px;
    height: 140px;
}

.image-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
}

.tip {
    position: relative;
    display: table;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    padding: 5px 15px;
    border: 1px solid #ffffff;
    border-radius: 30px;
    margin: 30px auto 20px;
}

.tip:before {
    border-color: #ffffff transparent transparent;
    border-style: solid;
    border-width: 12px 8px 0;
    bottom: -12px;
    content: "";
    height: 0;
    width: 0;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    
}
.tip:after {
    border-color: #1a2a6c transparent transparent;
    border-style: solid;
    border-width: 12px 8px 0;
    bottom: -10px;
    content: "";
    height: 0;
    width: 0;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}
.pop {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}