/* 广州掌恒云计算有限公司 官网样式 */
:root {
  --primary: #0b6bcb;
  --accent: #12b5a6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-alt: #f5f7fb;
  --dark: #0f172a;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
input[type="hidden"] { display: none !important; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; }
.center { text-align: center; }

/* 顶部导航 */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--dark); letter-spacing: 1px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 15px; transition: .2s; }
.nav a:hover { color: var(--primary); background: var(--bg-alt); }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--dark); }

/* 首屏 */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b1e3a 0%, #0b4f9c 55%, #0e9fb3 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; }
.hero::before { width: 460px; height: 460px; right: -90px; top: -140px; background: radial-gradient(circle, rgba(18, 181, 166, .35), transparent 70%); }
.hero::after { width: 380px; height: 380px; left: -110px; bottom: -170px; background: radial-gradient(circle, rgba(56, 189, 248, .3), transparent 70%); }
.hero-inner { position: relative; z-index: 1; padding: 120px 20px 110px; text-align: center; }
.hero h1 { font-size: 44px; letter-spacing: 2px; margin-bottom: .4em; }
.hero-sub { font-size: 20px; opacity: .88; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 30px; border-radius: 999px; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0e9a8d; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* 区块 */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 30px; text-align: center; position: relative; padding-bottom: 14px; margin-bottom: 18px; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 3px; margin-left: -22px; background: var(--accent); border-radius: 2px; }
.section-title.left { text-align: left; font-size: 26px; }
.section-title.left::after { left: 0; margin-left: 0; }
.section-title.mt { margin-top: 48px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.rich { color: #374151; }
.link-more { display: inline-block; margin-top: 12px; font-weight: 600; }
.link-back { display: inline-block; margin-bottom: 20px; color: var(--muted); }
.link-back:hover { color: var(--primary); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 首页：关于我们 */
.about-brief { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.info-list { list-style: none; padding: 20px 24px; margin: 0; background: var(--bg-alt); border-radius: var(--radius); }
.info-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.info-list li + li { border-top: 1px dashed var(--line); }
.icon { width: 22px; height: 22px; flex: none; }
.info-list .icon { color: var(--primary); margin-top: 3px; }

/* 卡片 */
.grid { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); color: var(--text); transition: .25s; border: 1px solid transparent; }
.card:hover { transform: translateY(-4px); border-color: rgba(11, 107, 203, .25); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), #12b5a6); margin-bottom: 18px; }
.card-icon .icon { width: 28px; height: 28px; }

/* 新闻 */
.news-list { display: grid; gap: 16px; margin-bottom: 24px; }
.news-item { display: flex; gap: 24px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: .2s; background: #fff; }
.news-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.news-item time { flex: none; color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 18px; margin-bottom: 6px; }
.news-item p { color: var(--muted); margin: 0; font-size: 14.5px; }
.article h1 { font-size: 30px; }
.article time { display: block; color: var(--muted); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* 内页标题 */
.page-head { background: linear-gradient(135deg, #0b1e3a, #0b4f9c 60%, #0e9fb3); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-head h1 { font-size: 34px; margin-bottom: .3em; }
.page-head p { opacity: .85; margin: 0; }

/* 关于我们 */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.info-table th { width: 170px; white-space: nowrap; color: var(--muted); font-weight: 500; background: var(--bg-alt); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tag-list a { display: block; padding: 8px 18px; border-radius: 999px; background: var(--bg-alt); font-weight: 600; }

/* 业务服务 */
.service-list { display: grid; gap: 24px; }
.service-item { display: flex; gap: 24px; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.service-item .card-icon { margin: 0; flex: none; }
.service-item h3 { font-size: 21px; }
.service-item p { color: #4b5563; margin: 0; }

/* 表单（前台 + 后台通用） */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.contact-form label, .stack label { display: block; margin-bottom: 16px; font-size: 14px; color: #374151; }
.contact-form em { color: #e11d48; font-style: normal; }
.contact-form input, .contact-form textarea,
.stack input, .stack textarea,
.login-card input,
.service-edit input, .service-edit select, .service-edit textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid #d1d5db; border-radius: 8px; outline: none; transition: .2s; background: #fff; color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus, .stack input:focus, .stack textarea:focus,
.login-card input:focus, .service-edit input:focus, .service-edit select:focus, .service-edit textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 107, 203, .12);
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-tip { color: var(--muted); font-size: 13px; }
.form-status { margin: 14px 0 0; min-height: 1.5em; }
.form-status.ok { color: #059669; }
.form-status.err { color: #e11d48; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 行动召唤 */
.cta { background: linear-gradient(135deg, var(--primary), #12b5a6); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 20px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; opacity: .9; }

/* 页脚 */
.footer { background: var(--dark); color: #cbd5e1; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr; gap: 40px; padding: 56px 0 36px; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer p { margin: 0 0 8px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; }

.big-404 { font-size: 96px; color: var(--primary); margin: 0; }

/* 后台 */
.admin-body { background: var(--bg-alt); min-height: 100vh; }
.login-card { width: 380px; max-width: calc(100% - 40px); margin: 12vh auto 0; background: #fff; padding: 40px 32px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 14px; justify-items: center; }
.login-card h1 { font-size: 22px; margin: 0; }
.login-card input, .login-card .btn { width: 100%; margin-top: 0; }
.alert { background: #fef2f2; color: #b91c1c; padding: 10px; border-radius: 8px; margin: 0; width: 100%; }
.admin-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.admin-header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 60px; gap: 16px; }
.admin-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.admin-header a { color: #cbd5e1; font-size: 14px; }
.admin-header a:hover { color: #fff; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: #e11d48; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.admin-main { padding-top: 24px; padding-bottom: 60px; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); scroll-margin-top: 76px; }
.panel h2 { font-size: 20px; }
.panel h2 small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--bg-alt); color: var(--muted); font-weight: 500; }
.table tr.unread td { background: #fffbeb; }
.table .msg { min-width: 260px; word-break: break-all; }
.nowrap { white-space: nowrap; }
form.inline { display: inline; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; color: var(--text); }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.danger { color: #e11d48; }
.btn-sm.danger:hover { border-color: #e11d48; }
.stack { display: grid; gap: 4px; }
.stack input, .stack textarea { margin-bottom: 8px; }
.stack .btn { justify-self: start; }
.service-edit { display: grid; grid-template-columns: 190px 150px 1fr auto auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.service-edit input, .service-edit select, .service-edit textarea { margin-top: 0; }
.service-edit .btn-sm { height: 42px; }
.service-edit.add { border-bottom: 0; }
.flash { background: #ecfdf5; color: #047857; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; }
.flash p { margin: 0; }

/* 响应式 */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .about-brief, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .service-edit { grid-template-columns: 1fr 1fr; }
  .service-edit textarea { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .hero-inner { padding: 80px 20px 72px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .cards-4, .form-row, .footer-cols { grid-template-columns: 1fr; }
  .news-item, .service-item { flex-direction: column; gap: 10px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .admin-header-inner { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
}
