/* ================= 全局样式 ================= */
* {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    min-width: 1100px;
    background-color: #f5f5f5;
    color: #111111;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
body {
    cursor: default;
}
a,
input[type="button"] {
    cursor: pointer;
}
.card {
    cursor: pointer;
}
/* ================= 网站顶部 ================= */
.header {
    height: 80px;
    padding-left: 80px;
    padding-right: 80px;
    background-color: #111111;
    color: white;
    /* flex用于让Logo和导航栏左右排列 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #00e866;
}
.logo {
    color: #00e866;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}
.nav a {
    margin-left: 35px;
    color: #dddddd;
    font-size: 15px;
    text-decoration: none;
}
.nav a:hover {
    color: #00e866;
}
.nav a.active {
    color: #00e866;
    border-bottom: 2px solid #00e866;
}
/* ================= 首页区域 ================= */
.hero {
    height: 430px;
    padding-top: 120px;
    padding-left: 80px;
    background-color: #111111;
    color: white;
    border-bottom: 1px solid #333333;
}
.small-title {
    margin-bottom: 22px;
    color: #00e866;
    font-size: 15px;
    letter-spacing: 2px;
}
.hero h1 {
    margin-bottom: 25px;
    font-size: 58px;
    line-height: 1.3;
    letter-spacing: 2px;
}
.hero-text {
    margin-bottom: 38px;
    color: #bbbbbb;
    font-size: 18px;
}
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #00e866;
    color: #111111;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #00e866;
    transition: 0.3s;
}
.button:hover {
    background-color: #111111;
    color: #00e866;
}
.section {
    width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 90px;
    padding-bottom: 90px;
}
.section h2 {
    margin-bottom: 40px;
    padding-bottom: 15px;
    font-size: 28px;
    border-bottom: 2px solid #111111;
}
/* ================= 个人简介 ================= */
.about-table {
    width: 100%;
    margin-bottom: 35px;
    background-color: white;
    border-collapse: collapse;
}
.about-table td {
    width: 25%;
    padding: 28px;
    border: 1px solid #cccccc;
    vertical-align: top;
    font-size: 18px;
    font-weight: bold;
}
.about-table td:hover {
    background-color: #ebfff3;
}
.label {
    margin-bottom: 8px;

    color: #777777;

    font-size: 14px;
    font-weight: normal;
}
.introduction {
    padding: 25px 30px;
    background-color: #eeeeee;
    border-left: 5px solid #00c95a;
    color: #444444;
    font-size: 16px;
    line-height: 2;
}
#skills {
    border-top: 1px solid #cccccc;
}
.card-list {
    display: flex;
    justify-content: space-between;
}
.card {
    width: 280px;
    min-height: 210px;
    padding: 30px;
    background-color: white;
    border: 1px solid #cccccc;
    transition: 0.3s;
}
.card:hover {
    border-color: #00c95a;
    box-shadow: 0 5px 15px #cccccc;
}
.card span {
    color: #00b950;
    font-size: 14px;
}
.card h3 {
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: 24px;
}
.card p {
    color: #666666;
    font-size: 15px;
}
.footer {
    padding: 35px 80px;
    background-color: #111111;
    color: #999999;
    border-top: 3px solid #00e866;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
/* ================= 留言板页面 ================= */
/* 留言板标题区域 */
.message-title {
    padding-top: 70px;
    padding-bottom: 70px;
    padding-left: 80px;
    background-color: #111111;
    color: white;
    border-bottom: 1px solid #333333;
}
.message-title h1 {
    margin-bottom: 15px;
    font-size: 42px;
}
.message-title p {
    color: #bbbbbb;
}
.message-title .small-title {
    color: #00e866;
}
/* ================= 留言板主要内容 ================= */
.message-main {
    width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 70px;
    padding-bottom: 90px;
    /* 让左右两个区域横向排列 */
    display: flex;
    justify-content: space-between;
}
/* 左侧填写留言和右侧留言记录 */
.message-form,
.message-show {
    width: 470px;
    min-height: 360px;
    padding: 30px;
    background-color: white;
    border: 1px solid #cccccc;
}
/* 两个区域的标题 */
.message-form h2,
.message-show h2 {
    margin-bottom: 25px;
    padding-bottom: 12px;
    font-size: 24px;
    border-bottom: 2px solid #111111;
}
/* 表单文字 */
.message-form p {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: bold;
}
/* 姓名输入框 */
#userName {
    width: 410px;
    padding: 10px;
    border: 1px solid #bbbbbb;
    font-family: "Microsoft YaHei";
    font-size: 15px;
}
/* 留言输入框 */
#messageContent {
    width: 410px;
    padding: 10px;
    border: 1px solid #bbbbbb;
    font-family: "Microsoft YaHei";
    font-size: 15px;
}
/* 提交按钮 */
#submitButton {
    padding: 11px 28px;
    background-color: #00e866;
    color: #111111;
    border: 2px solid #00e866;
    font-size: 15px;
    font-weight: bold;
}
/* 鼠标移动到按钮上产生的效果 */
#submitButton:hover {
    background-color: white;
    color: #00b950;
}
/* ================= 留言记录 ================= */
#messageList {
    padding: 20px;
    background-color: #f5f5f5;
    color: #666666;
    border-left: 4px solid #00e866;
}
.message-show p {
    line-height: 1.8;
}
.detail-title {
    padding: 70px 80px;
    background-color: #111111;
    color: white;
    border-bottom: 1px solid #333333;
}
.detail-title h1 {
    margin-bottom: 15px;
    font-size: 42px;
}
.detail-title p {
    color: #bbbbbb;
}
.detail-title .small-title {
    color: #00e866;
}
.detail-main {
    width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 70px;
    padding-bottom: 90px;
}
.detail-main h2 {
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    font-size: 26px;
    border-bottom: 2px solid #111111;
}
.detail-box {
    padding: 25px 30px;
    background-color: white;
    border-left: 5px solid #00e866;
}
.detail-box h3 {
    margin-bottom: 10px;
    font-size: 21px;
}
.detail-box p {
    color: #555555;
    line-height: 2;
}
.detail-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}
.detail-table td {
    padding: 20px;
    border: 1px solid #cccccc;
}
.skill-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}
.skill-table th,
.skill-table td {
    padding: 18px;
    border: 1px solid #cccccc;
    text-align: left;
}
.skill-table th {
    background-color: #eeeeee;
}
.simple-list {
    padding: 25px 45px;
    background-color: white;
    line-height: 2.2;
}
/* 查看详细内容按钮 */
.detail-button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: white;
    color: #111111;
    border: 2px solid #111111;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}
.detail-button span {
    margin-left: 12px;
    color: #00e866;
    display: inline-block;
    transition: 0.3s;
}
.detail-button:hover {
    background-color: #00e866;
    border-color: #00e866;
    color: #111111;
}
.detail-button:hover span {
    color: #111111;
    transform: translateX(6px);
}
.back-button {
    display: inline-block;
    margin-top: 45px;
    padding-bottom: 5px;
    color: #111111;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #00e866;
    transition: 0.3s;
}
.back-button:hover {
    color: #00b950;
    padding-left: 8px;
}
#mouseDot {
    width: 12px;
    height: 12px;
    background-color: #00e866;
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
}
#mouseDot.big {
    width: 24px;
    height: 24px;
}

/* ================= 用户注册与登录 ================= */
.nav a { margin-left: 22px; }
[hidden] { display: none !important; }
button { cursor: pointer; font-family: inherit; }
.register-main { width: 1100px; margin: 50px auto 80px; display: flex; align-items: flex-start; gap: 30px; }
.register-note { width: 280px; padding: 28px; box-sizing: border-box; background: #ebf7ef; border-top: 4px solid #00c95a; }
.register-note h2 { margin-bottom: 20px; font-size: 28px; line-height: 1.5; }
.register-note p, .register-note li { font-size: 14px; color: #4c5b51; }
.register-note ul { margin: 22px 0 0; padding-left: 18px; }
.register-note li { margin-bottom: 12px; }
.register-note .back-button { margin-top: 15px; font-size: 14px; }
.register-form { width: 790px; padding: 32px 36px; box-sizing: border-box; background: #ffffff; border: 1px solid #cccccc; }
.register-form h2, .account-form h2 { margin: 28px 0 22px; padding-bottom: 12px; font-size: 21px; border-bottom: 2px solid #111111; }
.register-form h2:first-child, .account-form h2:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-field { min-width: 0; }
.form-field.full-width { grid-column: 1 / -1; }
.form-field > label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: bold; }
.required { color: #a5362e; }
.form-field input, .form-field select { width: 100%; height: 43px; padding: 8px 12px; box-sizing: border-box; color: #111111; background: #ffffff; border: 1px solid #b9c1bc; border-radius: 0; font-family: inherit; font-size: 14px; }
.form-field input:focus, .form-field select:focus, #messageContent:focus, #userName:focus { outline: 2px solid #00a949; outline-offset: 2px; }
.form-field [aria-invalid="true"] { border-color: #b53c32; }
.form-field select:disabled { background: #f0f2f1; color: #737b76; }
.address-selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.street-input { margin-top: 12px; }
.field-error { color: #a5362e; font-size: 13px; line-height: 1.65; }
.field-error:not(:empty) { margin-top: 6px; }
.field-hint { margin-top: 6px; color: #666666; font-size: 13px; }
.form-status { margin-top: 18px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.form-status:empty { margin-top: 0; }
.form-status.error { color: #a5362e; }
.form-status.success { color: #147a40; }
.form-actions { display: flex; gap: 14px; margin-top: 26px; }
.primary-button, .secondary-button { display: inline-block; padding: 10px 20px; box-sizing: border-box; font-size: 14px; line-height: 1.8; font-weight: bold; text-decoration: none; cursor: pointer; }
.primary-button { background: #00e866; color: #111111; border: 2px solid #00e866; }
.primary-button:hover { background: #ffffff; color: #087c38; }
.secondary-button { background: #ffffff; color: #333333; border: 2px solid #c3cbc6; }
.secondary-button:hover { border-color: #00a949; }
button:disabled, input[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.login-main { width: 1100px; margin: 55px auto 85px; display: flex; gap: 30px; align-items: flex-start; }
.account-form { width: 535px; padding: 32px; background: #ffffff; border: 1px solid #cccccc; box-sizing: border-box; }
.account-form .form-field { margin-bottom: 20px; }
.account-form > .primary-button { margin-top: 22px; width: 100%; }
.account-links { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.account-links a { color: #147a40; font-size: 14px; text-decoration: none; }
.text-button { border: 0; background: transparent; color: #147a40; font-size: 14px; text-decoration: underline; }
.question-text { padding: 14px; margin: 22px 0; background: #ebf7ef; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ================= 留言权限提示与记录 ================= */
.auth-notice { padding: 18px; margin-bottom: 25px; background: #ebf7ef; border-left: 4px solid #00c95a; }
.auth-notice p { margin-bottom: 15px; color: #42594b; }
.auth-notice a { padding: 7px 12px; margin-right: 8px; font-size: 13px; }
.member-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.member-notice p { color: #147a40; overflow-wrap: anywhere; }
.member-notice button { flex-shrink: 0; padding-top: 3px; }
#messageFields { border: 0; min-width: 0; }
#messageFields:disabled input, #messageFields:disabled textarea { background: #eeeeee; cursor: not-allowed; }
#userName[readonly] { background: #f3f6f4; color: #506356; }
.message-form #messageHint { font-weight: normal; font-size: 13px; color: #666666; }
.message-form .form-status { font-size: 14px; font-weight: normal; }
.message-item + .message-item { margin-top: 22px; padding-top: 20px; border-top: 1px solid #d8dfda; }
.message-item h3 { color: #111111; font-size: 16px; }
.message-date { color: #777777; font-size: 12px; }
.message-body { margin-top: 10px; color: #444444; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 公共留言读取及分页 */
.message-tools { margin-bottom: 18px; }
#loadMoreMessages { margin-top: 20px; }
.message-form .primary-button:disabled { opacity: 0.55; }
