* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #EAF4FF;
    min-height: 100vh;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.main-header {
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    color: white;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
    /* 标题居中，左右两侧各留出等宽空间放操作按钮，
       避免 fixed 定位在宽屏下飘出容器、遮挡标题 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
    gap: 16px;
}

.main-header h1 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    flex: 1;
    min-width: 0;
}

#main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.main-footer {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    padding: 40px 0;
    margin-top: auto;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright {
    font-size: 14px;
    color: #666;
}

.domain {
    font-size: 14px;
    color: #777;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info {
    color: #666;
    font-size: 14px;
}

.footer-divider {
    color: #ccc;
}

.province-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.province-container .title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: bold;
}

.province-buttons {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.province-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 100%);
    border: 1px solid #DCEDFF;
    border-radius: 24px;
    padding: 40px 60px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.1);
    min-width: 200px;
}

.province-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 102, 204, 0.22);
    border-color: #0080FF;
}

.province-btn img {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.province-btn:hover img {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.24);
}

.province-btn text,
.province-btn span {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.coming-soon {
    margin-top: 60px;
    color: #999;
    font-size: 16px;
}

/* 首页底部手机端提示卡片（与小程序端“电脑端使用”提示呼应） */
.mobile-tip {
    width: 100%;
    max-width: 500px;
    margin: 48px auto 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
    border: 2px solid #D6E9FF;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mobile-tip-text {
    font-size: 18px;
    font-weight: bold;
    color: #1F3A5F;
    letter-spacing: 1px;
    line-height: 1.5;
}

.mobile-tip-qr {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.menu-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 100%);
    border: 1px solid #DCEDFF;
    border-radius: 20px;
    padding: 34px 28px 30px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.08);
}

/* 卡片顶部中煤蓝渐变装饰条 */
.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0080FF 0%, #5CB0FF 50%, #0080FF 100%);
    opacity: 0.9;
}

.menu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 102, 204, 0.22);
    border-color: #0080FF;
}

/* 保留方形实拍照片，仅把四个角稍微圆润 */
.menu-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover img {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.22);
}

.menu-item span {
    font-size: 17px;
    color: #1F3B5C;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.back-btn {
    background: #0080FF;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #0066CC;
}

.page-title {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.score-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.score-container .title {
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.mine-type-selector {
    background: #EAF4FF;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.selector-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.type-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.type-btn {
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
    min-width: 140px;
}

.type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.4);
}

.type-btn:active {
    transform: translateY(0);
}

.mine-type-content {
    margin-top: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    color: white;
    padding: 12px 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.score-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.item-name {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.item-desc { font-size: 15px; color: #5a6b7f; line-height: 1.7; margin: 8px 0; }
.item-method {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #0080FF;
}

.item-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.standard-score {
    font-size: 14px;
    color: #0080FF;
    font-weight: bold;
}

.score-label {
    font-size: 14px;
    color: #333;
}

.score-input {
    /* 输入分值的框固定窄宽度，避免占用整行（参考系统为 70px） */
    flex: 0 0 80px;
    width: 80px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    /* 得分输入值：红色居中，便于对照评分方法逐项核对 */
    color: #E53935;
    font-weight: bold;
}

/* 子系统评分项「得分说明」行（参考系统 web 端打分样式） */
.item-reason-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
}

.item-reason-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    padding-top: 8px;
    font-weight: 500;
}

.item-reason-input {
    /* 固定最大宽度，不再撑满整行 */
    flex: 0 1 420px;
    width: 420px;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    resize: vertical;
    min-height: 38px;
    max-height: 120px;
}

.item-reason-input:focus {
    outline: none;
    border-color: #0080FF;
}

.item-reason-input::placeholder {
    color: #b0b7c3;
}

.score-input::placeholder {
    color: #b0b7c3;
    font-weight: normal;
}

.score-input:focus {
    outline: none;
    border-color: #0080FF;
}

.total-score {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.total-score span {
    font-size: 28px;
}

.table {
    border: 1px solid #cccccc;
    border-radius: 10px;
    overflow: visible;
    width: 100%;
    margin-bottom: 20px;
}

.table-header, .table-row {
    display: flex;
    border-bottom: 1px solid #cccccc;
    overflow: visible;
}

.table-header {
    background-color: #EAF4FF;
    font-weight: bold;
}

.cell {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    border-right: 1px solid #e0e0e0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:nth-child(even) {
    background-color: #fafafa;
}

.table-row:hover {
    background-color: #f0f9eb;
}

.cell:first-child {
    width: 60px;
    min-width: 60px;
    flex: none;
}

.cell:nth-child(2) {
    width: 200px;
    min-width: 200px;
    flex: none;
}

.cell:nth-child(3) {
    width: 100px;
    min-width: 100px;
    flex: none;
}

.cell:nth-child(4) {
    width: 120px;
    min-width: 120px;
    flex: none;
}

.cell input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #E53935;
    font-weight: bold;
}

.cell input::placeholder {
    color: #b0b7c3;
    font-weight: normal;
}

.cell input:focus {
    outline: none;
    border-color: #0080FF;
}

.score-display {
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 评定等级 */
.rating-display {
    font-size: 16px;
    color: #0080FF;
    text-align: center;
    margin: -10px 0 20px;
    font-weight: bold;
}

/* 保存评分记录 */
.save-bar {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}

.save-bar .action-button {
    min-width: 220px;
}

/* 子系统评分页「保存」→ 带入智能化煤矿得分 */
.carry-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.carry-bar .action-button {
    min-width: 220px;
}

.carry-tip,
.carry-source {
    font-size: 13px;
    color: #8A94A6;
    text-align: center;
    line-height: 1.6;
}

.carry-source {
    color: #0066CC;
    margin: -8px 0 16px;
}

/* 4 位确认码输入框（评分页保存条 + 汇总页查询区共用） */
.carry-code-input {
    width: 200px;
    padding: 11px 14px;
    border: 1px solid #B9D9F7;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    color: #0066CC;
    background: #FFFFFF;
    outline: none;
}

.carry-code-input:focus {
    border-color: #0080FF;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12);
}

.carry-code-input::placeholder {
    letter-spacing: 1px;
    color: #A9B4C4;
    font-size: 14px;
}

/* 汇总页「按确认码汇总」查询区 */
.carry-query {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 8px 0 20px;
    padding: 16px;
    background: linear-gradient(180deg, #F7FBFF, #EAF4FF);
    border: 1px solid #DCEDFF;
    border-radius: 10px;
}

.carry-query .action-button {
    min-width: 200px;
}

/* 汇总页：确认码输入 + 按确认码汇总 + 保存评分记录 同一行 */
.summary-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.summary-action-row .carry-code-input {
    width: 150px;
}

.carry-query .summary-action-row .action-button.compact-action {
    min-width: 0;
    padding: 12px 22px;
    font-size: 15px;
}

.carry-query-tip {
    font-size: 12px;
    color: #7A889E;
    text-align: center;
    line-height: 1.5;
}

/* 未登录时的占位提示 */
.login-required {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}

.wzStyle {
    font-size: 15px;
    color: black;
    line-height: 1.8;
    text-indent: 2em;
    margin-left: 5%;
    margin-right: 5%;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.action-button {
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.4);
}

@media (max-width: 768px) {
    .province-buttons {
        flex-direction: column;
        gap: 30px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .menu-item {
        padding: 30px 14px 24px;
    }

    .menu-item img {
        width: 72px;
        height: 72px;
        border-width: 3px;
    }

    .main-header h1 {
        font-size: 24px;
    }

    .type-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .type-btn {
        width: 100%;
    }

    .item-input-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-input {
        max-width: 100%;
    }
}

.my-page-container {
    padding: 30px;
}

.my-page-container .section {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 28px;
}

.my-page-container .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333333;
}

.my-page-container .title-bar {
    width: 6px;
    height: 20px;
    background-color: #0066cc;
    margin-right: 10px;
}

.my-page-container .section-content {
    font-size: 16px;
    color: #333333;
    line-height: 2.0;
    text-indent: 2em;
}

.my-page-container .info-item {
    font-size: 16px;
    color: #333333;
    margin-top: 12px;
    line-height: 1.6;
    display: flex;
    margin-bottom: 12px;
}

.my-page-container .info-label {
    color: #333333;
    width: 120px;
    font-size: 16px;
    font-weight: bold;
}

.my-page-container .info-value {
    color: #333;
    font-size: 16px;
    flex: 1;
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}

.option-cell {
    position: relative;
    flex: 3;
    min-width: 150px;
    overflow: visible;
}

.selected-option {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.selected-option:hover {
    background-color: #e0e0e0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    min-width: 250px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #EAF4FF;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.reset-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0 20px 50%;
    transform: translateX(-50%);
}

.reset-btn:hover {
    background-color: #e55a00;
}

/* ========== 头部操作区 ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    order: 2;
}

.user-display {
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 个人资料入口（登录后显示） */
.btn-profile {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* ========== 登录 / 注册入口 ========== */
.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    order: 3;
}

.auth-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* 窄屏时标题独占一行，操作按钮换行到下方 */
@media (max-width: 900px) {
    .main-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 12px;
    }

    .main-header h1 {
        flex: 0 0 auto;
        width: 100%;
        font-size: 24px;
    }

    .header-actions,
    .auth-links {
        order: 2;
    }
}
