* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    background: #f6f4ff;
    color: #3a3157;
    line-height: 1.7;
    min-height: 100%;
}
a { color: #7c5cff; text-decoration: none; }
a:hover { color: #ff9f43; }
img { max-width: 100%; display: block; }

/* 顶部导航 */
.nav {
    background: linear-gradient(90deg, #7c5cff 0%, #b47cff 60%, #ff9f43 100%);
    box-shadow: 0 2px 12px rgba(124, 92, 255, .25);
    position: sticky; top: 0; z-index: 99;
}
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.logo { color: #fff; font-size: 21px; font-weight: bold; letter-spacing: 1px; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.logo span { background: rgba(255,255,255,.22); padding: 2px 9px; border-radius: 20px; font-size: 12px; margin-left: 8px; vertical-align: middle; }
.nav-links a { color: #fff; margin-left: 22px; font-size: 15px; opacity: .92; }
.nav-links a:hover { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 3px; }

/* 主视觉 */
.hero { position: relative; height: 340px; overflow: hidden; }
.hero img { width: 100%; height: 340px; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,49,87,.85) 0%, rgba(58,49,87,.35) 55%, rgba(58,49,87,0) 100%); }
.hero-text { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); color: #fff; max-width: 480px; }
.hero-text h1 { font-size: 40px; margin-bottom: 14px; text-shadow: 0 3px 12px rgba(0,0,0,.5); letter-spacing: 2px; }
.hero-text p { font-size: 16px; opacity: .95; margin-bottom: 22px; }
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 30px; font-size: 16px;
    background: linear-gradient(90deg, #ff9f43, #ff6b6b); color: #fff; font-weight: bold;
    box-shadow: 0 6px 18px rgba(255, 107, 107, .35); transition: .2s;
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 22px rgba(255,107,107,.45); }
.btn-ghost { background: rgba(255,255,255,.18); border: 1px solid #fff; margin-left: 12px; box-shadow: none; }

/* 容器与卡片 */
.wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }
.cards { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.card {
    flex: 1 1 240px; background: #fff; border-radius: 14px; padding: 22px;
    box-shadow: 0 4px 16px rgba(124,92,255,.10); border-top: 3px solid #b47cff;
}
.card h3 { color: #7c5cff; margin-bottom: 10px; font-size: 17px; }
.card p { font-size: 14px; color: #6b6390; }

.status-box {
    background: #fff; border-radius: 14px; padding: 18px 22px; margin-bottom: 26px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(124,92,255,.10);
}
.status-box .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #2ecc71; margin-right: 8px; box-shadow: 0 0 0 4px rgba(46,204,113,.18); }
.status-box .off { background: #e74c3c; box-shadow: 0 0 0 4px rgba(231,76,60,.18); }
.status-box .info { font-size: 14px; color: #6b6390; }

.sec-title { font-size: 22px; margin: 8px 0 18px; color: #3a3157; border-left: 5px solid #ff9f43; padding-left: 12px; }
.news-list { background: #fff; border-radius: 14px; padding: 8px 22px; box-shadow: 0 4px 16px rgba(124,92,255,.10); }
.news-item { padding: 14px 0; border-bottom: 1px dashed #ece8ff; }
.news-item:last-child { border-bottom: none; }
.news-item .t { font-weight: bold; font-size: 15px; }
.news-item .d { font-size: 12px; color: #9a93b8; margin-right: 10px; }
.news-item p { font-size: 14px; color: #6b6390; margin-top: 4px; }

/* 表单 */
.form-box { background: #fff; border-radius: 14px; padding: 30px; max-width: 520px; margin: 0 auto; box-shadow: 0 4px 16px rgba(124,92,255,.10); }
.form-box h2 { text-align: center; margin-bottom: 22px; color: #7c5cff; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: #6b6390; }
.field input { width: 100%; padding: 11px 14px; border: 1px solid #ded8ff; border-radius: 8px; font-size: 15px; outline: none; }
.field input:focus { border-color: #7c5cff; box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.submit { width: 100%; padding: 12px; border: none; border-radius: 30px; background: linear-gradient(90deg, #7c5cff, #b47cff); color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; }
.msg { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; text-align: center; }
.msg.ok { background: #e8fbf1; color: #1e9e62; }
.msg.err { background: #fdecea; color: #d94c3d; }
.tip { text-align: center; font-size: 13px; color: #9a93b8; margin-top: 14px; }

/* 页脚 */
.footer { background: #3a3157; color: #cfc9e8; padding: 26px 20px; text-align: center; font-size: 13px; margin-top: 30px; }
.footer a { color: #ffc9a0; }
