html {
  color: #000;
  background: #fff;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset,
img {
  border: 0;
}
ol,
ul {
  list-style: none;
}
caption,
th {
  text-align: left;
}
q:before,
q:after {
  content: "";
}
abbr,
acronym {
  border: 0;
  font-variant: normal;
}
sup {
  vertical-align: text-top;
}
sub {
  vertical-align: text-bottom;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  *font-size: 100%;
}
legend {
  color: #000;
}

:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #f72585;
  --accent-color: #4cc9f0;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --text-color: #212529;
  --border-radius: 0;
  --box-shadow: none;
  --transition: all 0.3s ease;
}

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

body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: #fff;
}

button,
input {
  font-family: inherit;
}

img {
  vertical-align: middle;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.header {
  margin-bottom: 0;
  background-color: #fff;
  box-shadow: none;
  padding: 15px 0;
  border-bottom: 1px solid #c8c8c8;
  position: relative;
}

.header-content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--primary-color);
  line-height: 1.2;
}

.site-title a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.social-links {
  display: flex;
  align-items: center;
}

.social-links a {
  color: var(--dark-gray);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

/* Ensure header content aligns with main content */
.header-content,
main .container,
main .inner {
  padding-left: 15px;
  padding-right: 15px;
}

.inner {
  padding: 0 15px;
  margin: 0 auto;
}

/* Standardize module spacing */
main {
  padding-top: 20px;
  padding-bottom: 20px;
}

main > section,
main > .container > section,
main > .mod-panel,
main > .mod-app,
main > .ad-container,
main > .mod-foot {
  margin-bottom: 30px;
}

.mod-panel {
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  border: none;
}

.mod-panel .hd {
  float: none;
  width: 100%;
  padding: 20px;
  margin-top: 0;
  line-height: 1.6;
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
}

.mod-panel .hd h2 {
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
  font-size: 32px;
  color: #fff;
}

.mod-panel .hd p {
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.mod-panel .bd {
  margin-left: 0;
  background: #fff;
  box-shadow: none;
  border: none;
  padding: 20px 0;
}

.mod-panel .bd .c-hd {
  height: auto;
  border-bottom: 1px solid var(--medium-gray);
  margin-bottom: 20px;
  overflow: visible;
}

.mod-panel .bd .c-hd ul {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-between;
}

.mod-panel .bd .c-hd li {
  float: none;
  flex: 1;
  height: 50px;
  line-height: 50px;
  text-align: center;
}

.mod-panel .bd .c-hd li a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  color: var(--dark-gray);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
  padding: 0 5px;
}

.mod-panel .bd .c-hd li.active a {
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
}

.mod-panel .bd .c-hd li.active a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  content: "";
  width: 50%;
  height: 3px;
  margin-left: -25%;
  background: var(--primary-color);
  border-radius: 3px;
}

.mod-panel .bd .c-bd {
  height: auto;
  padding: 20px 0;
  clear: both;
}

.mod-panel .bd .c-panel {
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mod-panel .bd .c-panel .intro {
  padding: 15px 20px;
  margin-bottom: 25px;
  background: #f8f9fa;
  line-height: 1.6;
  color: #333;
  border-radius: 0;
  border-left: none;
}

.mod-panel .bd .c-panel .intro h3 {
  line-height: 1.4;
  font-weight: bold;
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.mod-panel .bd .c-panel .intro p.q {
  font-weight: 500;
  margin-bottom: 8px;
}

.mod-panel .bd .c-panel .row {
  margin-bottom: 15px;
  margin-top: 15px;
}

.mod-panel .bd .c-panel .field {
  line-height: 1.6;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mod-panel .bd .field > span:first-child,
.mod-panel .bd .field > label:first-of-type {
  margin-right: 10px;
  font-weight: 600;
  min-width: 80px;
}

.mod-panel .bd label {
  display: inline-block;
  min-width: 100px;
  margin-right: 15px;
  font-weight: 500;
  cursor: pointer;
}

.mod-panel .bd label span,
.mod-panel .bd label input {
  vertical-align: middle;
}

.mod-panel .bd label:hover span {
  color: var(--primary-color);
}

.mod-panel .bd input[type="radio"],
.mod-panel .bd input[type="checkbox"] {
  margin-right: 5px;
  cursor: pointer;
}

.mod-panel .bd .input-text {
  display: inline-block;
  width: 100%;
  height: 42px;
  background: #fff;
  border: 1px solid var(--medium-gray);
  padding: 8px 12px;
  box-sizing: border-box;
  line-height: 1.5;
  border-radius: 0;
  outline: none;
  transition: var(--transition);
  box-shadow: none;
}

.mod-panel .bd .input-text:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.mod-panel .bd .text-right {
  text-align: right;
}

/* Buttons */
.mod-panel .bd .btn {
  height: 42px;
  min-width: 100px;
  background: var(--medium-gray);
  border: none;
  line-height: 42px;
  vertical-align: middle;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  outline: none;
  border-radius: 0;
  box-sizing: border-box;
  transition: var(--transition);
  padding: 0 20px;
  text-align: center;
}

.mod-panel .bd .btn:hover {
  background: #dee2e6;
}

.mod-panel .bd .btn-green {
  background: var(--primary-color);
  color: #fff;
}

.mod-panel .bd .btn-green:hover {
  background: var(--primary-hover);
}

.mod-panel .bd .btn-red {
  background: var(--secondary-color);
  color: #fff;
}

.mod-panel .bd .btn-red:hover {
  background: #e91979;
}

.mod-panel .bd .btn-orange {
  background: #fd7e14;
  color: #fff;
}

.mod-panel .bd .btn-orange:hover {
  background: #e96e0d;
}

.mod-panel .bd .btn-small {
  min-width: 42px;
  height: 36px;
  line-height: 36px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 14px;
  padding: 0 15px;
  cursor: pointer;
  background-color: #e9ecef;
  transition: var(--transition);
}

.mod-panel .bd .btn-small:hover {
  background-color: #dee2e6;
}

.mod-panel .bd .btn[disabled] {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
}

.mod-panel .bd textarea {
  display: block;
  width: 100%;
  height: 120px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--medium-gray);
  box-sizing: border-box;
  border-radius: 0;
  resize: none;
  outline: none;
  font-size: 16px;
  line-height: 1.5;
  transition: var(--transition);
  box-shadow: none;
}

.mod-panel .bd textarea:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.mod-panel .bd p {
  line-height: 1.6;
  margin-bottom: 8px;
}

.mod-panel .bd p span {
  margin-right: 10px;
  display: inline-block;
}

/* Action buttons */
.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.action-buttons .btn {
  flex: 1;
}

/* 关系快捷按钮布局 */
.operation .row p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 15px;
}

.operation .row p span {
  display: flex;
  margin: 0;
  gap: 5px;
}

.operation .row p .btn-small {
  font-weight: bold;
  min-width: 55px;
  text-align: center;
  margin: 0;
}

/* Relationship plus sign */
.relationship-plus {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -15px;
}

.relationship-plus span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  line-height: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-gray);
  background-color: transparent;
  border: none;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
}

/* SEO Content Section */
.seo-content {
  margin: 30px 0;
  background-color: #fff;
  border: none;
  max-width: 1300px;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.seo-content h2 {
  text-align: center;
  color: var(--text-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  width: 100%;
}

.seo-content .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
  margin-bottom: 20px;
  width: 100%;
}

.seo-content .col-md-6 {
  padding: 0 10px;
  width: 50%;
  box-sizing: border-box;
}

.seo-content .card {
  border: none;
  box-shadow: none;
  border-radius: 0;
  height: 100%;
  transition: var(--transition);
  margin-bottom: 20px;
  background-color: #f8f9fa;
}

.seo-content .card:hover {
  transform: none;
}

.seo-content .card-body {
  padding: 20px;
}

.seo-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.seo-content p {
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.6;
}

.seo-content ul,
.seo-content ol {
  padding-left: 20px;
  margin-bottom: 15px;
}

.seo-content ul li,
.seo-content ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.seo-content ul {
  list-style-type: disc;
}

.seo-content ol {
  list-style-type: decimal;
}

.seo-content strong {
  font-weight: 600;
  color: var(--text-color);
}

/* App Module Styling */
.mod-app {
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 0;
  border: none;
}

.mod-app .hd {
  margin: 0 0 20px;
  line-height: 1.4;
  text-align: center;
  padding-bottom: 15px;
}

.mod-app .hd span {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color);
}

.mod-app .bd ul {
  padding: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.mod-app .bd li {
  display: inline-block;
  margin-bottom: 20px;
  transition: var(--transition);
  width: calc(50% - 20px);
  max-width: 250px;
}

.mod-app .bd li:hover {
  transform: translateY(-5px);
}

.mod-app .bd .app {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 0;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
}

.mod-app .bd .app:hover {
  background-color: var(--light-gray);
}

.mod-app .bd .app span {
  display: block;
  margin: 0 15px;
  text-align: center;
}

.mod-app .bd .app span.icon {
  margin-bottom: 10px;
}

.mod-app .bd .app span.icon img {
  border-radius: 0;
}

.mod-app .bd .app span.name {
  font-weight: 500;
  line-height: 1.5;
}

/* Footer Module Styling */
.mod-foot {
  margin-top: 30px;
  margin-bottom: 0;
  background-color: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
  border-top: none;
}

.mod-foot .bd {
  padding: 10px 0;
  margin-bottom: 0;
  text-align: center;
}

.mod-foot .bd p {
  line-height: 1.6;
  color: var(--dark-gray);
}

/* Ad spacing */
.ad-container {
  margin: 30px 0;
  text-align: center;
  border: none;
  background: none;
  padding: 0;
}

/* Responsive styles */
@media screen and (max-width: 1140px) {
  .header-content {
    max-width: 960px;
  }

  .inner {
    max-width: 960px;
  }

  .seo-content {
    max-width: 960px;
  }
}

@media screen and (max-width: 992px) {
  .header-content {
    max-width: 720px;
  }

  .inner {
    max-width: 720px;
  }

  .mod-panel .hd {
    padding: 20px;
  }

  .mod-panel .hd h2 {
    font-size: 28px;
  }

  .seo-content {
    max-width: 720px;
  }
}

@media screen and (max-width: 768px) {
  .header-content {
    max-width: 540px;
  }

  .inner {
    max-width: 540px;
  }

  .mod-panel .hd h2 {
    font-size: 24px;
  }

  .mod-panel .bd .c-hd {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .mod-panel .bd .c-hd::-webkit-scrollbar {
    height: 5px;
  }

  .mod-panel .bd .c-hd::-webkit-scrollbar-thumb {
    background-color: var(--medium-gray);
    border-radius: 5px;
  }

  .mod-panel .bd .c-hd ul {
    width: max-content;
    min-width: 100%;
    padding-bottom: 5px;
  }

  .mod-panel .bd .c-hd li {
    flex: 0 0 auto;
    min-width: 110px;
  }

  .mod-panel .bd .c-hd li a {
    padding: 0 15px;
    font-size: 14px;
  }

  .mod-panel .bd .field {
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
  }

  .mod-panel .bd .field > span:first-child,
  .mod-panel .bd .field > label:first-of-type {
    min-width: 80px;
    margin-bottom: 0;
  }

  .action-buttons {
    flex-direction: row;
  }

  .mod-app .bd li {
    width: 45%;
  }

  .seo-content {
    max-width: 540px;
    padding: 0 10px;
  }

  .seo-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .seo-content .col-md-6 {
    width: 100%;
    padding: 0 5px;
  }

  .seo-content .card {
    margin-bottom: 15px;
  }

  .seo-content .card-body {
    padding: 15px;
  }

  .seo-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 576px) {
  .mod-panel .hd {
    padding: 15px;
  }

  .mod-panel .hd h2 {
    font-size: 22px;
  }

  .mod-panel .bd .c-hd li {
    min-width: 90px;
  }

  .mod-panel .bd .c-hd ul {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }

  .mod-panel .bd textarea {
    height: 100px;
  }

  .mod-app .bd li {
    width: 100%;
  }

  .seo-content {
    padding: 0 10px;
  }

  .seo-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .seo-content .row {
    margin-right: 0;
    margin-left: 0;
  }

  .seo-content .col-md-6 {
    padding: 0;
  }

  .seo-content .card-body {
    padding: 15px 12px;
  }

  .seo-content ul,
  .seo-content ol {
    padding-left: 15px;
  }

  .seo-content ul li,
  .seo-content ol li {
    margin-bottom: 6px;
  }

  /* Improved field layout for small screens */
  .mod-panel .bd .c-panel .field {
    margin-bottom: 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  .mod-panel .bd .c-panel .field > span:first-child,
  .mod-panel .bd .c-panel .field:before {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 600;
  }

  /* Radio button layout improvements */
  .mod-panel .bd .c-panel label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 8px;
    white-space: nowrap;
  }

  .mod-panel .bd .c-panel label input[type="radio"] {
    margin-right: 4px;
  }

  /* Radio button container */
  .mod-panel .bd .c-panel .field label span {
    display: inline-block;
  }

  /* First panel with multiple radio groups */
  .c-panel:first-child .field {
    display: flex;
    flex-direction: column;
  }

  .c-panel:first-child .field:after {
    content: attr(data-label);
    display: none;
  }

  /* Radio button groups container */
  .c-panel:first-child .field .radio-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
  }
}

/* Smallest screens need tighter spacing */
@media screen and (max-width: 360px) {
  .mod-panel .bd .c-panel label {
    margin-right: 10px;
    font-size: 14px;
  }

  .mod-panel .bd .c-panel label input[type="radio"] {
    margin-right: 3px;
  }
}

/* 隐藏广告空缺的广告单元 */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Special handling for first panel with 3 buttons */
.btn-3 {
  min-width: auto !important;
}

/* Mobile optimizations for SEO cards */
@media (max-width: 768px) {
  .seo-content,
  .seo-content-mobile {
    max-width: 540px;
    padding: 0 10px;
  }

  .seo-content h2,
  .seo-content-mobile h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .seo-content .col-md-6,
  .seo-content-mobile .col-md-6 {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .seo-content .card,
  .seo-content-mobile .card {
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
  }

  .seo-content .card-body,
  .seo-content-mobile .card-body {
    padding: 18px 15px;
  }

  .seo-content h3,
  .seo-content-mobile h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .seo-content p,
  .seo-content-mobile p {
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .seo-content,
  .seo-content-mobile {
    padding: 0 15px;
  }

  .seo-content .row,
  .seo-content-mobile .row {
    margin: 0 -5px 15px -5px;
  }

  .seo-content .col-md-6,
  .seo-content-mobile .col-md-6 {
    padding: 0 5px;
    margin-bottom: 10px;
  }

  .seo-content .card-body,
  .seo-content-mobile .card-body {
    padding: 15px 12px;
  }

  .seo-content h2,
  .seo-content-mobile h2 {
    font-size: 22px;
    margin-bottom: 15px;
    padding: 0 5px;
  }

  .seo-content ul,
  .seo-content ol,
  .seo-content-mobile ul,
  .seo-content-mobile ol {
    padding-left: 18px;
  }

  .seo-content ul li,
  .seo-content ol li,
  .seo-content-mobile ul li,
  .seo-content-mobile ol li {
    margin-bottom: 6px;
  }

  .seo-content p,
  .seo-content-mobile p {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .seo-content,
  .seo-content-mobile {
    padding: 0 10px;
  }

  .seo-content .row,
  .seo-content-mobile .row {
    margin: 0 -5px 10px -5px;
  }

  .seo-content .card,
  .seo-content-mobile .card {
    margin-bottom: 12px;
  }

  .seo-content .card-body,
  .seo-content-mobile .card-body {
    padding: 14px 12px;
  }
}

@media (max-width: 360px) {
  .seo-content h2,
  .seo-content-mobile h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .seo-content h3,
  .seo-content-mobile h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .seo-content p,
  .seo-content li,
  .seo-content-mobile p,
  .seo-content-mobile li {
    font-size: 14px;
  }

  .seo-content ul,
  .seo-content ol,
  .seo-content-mobile ul,
  .seo-content-mobile ol {
    padding-left: 15px;
  }

  .seo-content .card-body,
  .seo-content-mobile .card-body {
    padding: 12px 10px;
  }
}
