* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
}
:root {
    --bg-light-green: #F0F9F0;
    --main-green: #2E7D32;
    --light-green: #81C784;
    --border-green: #d8eed8;
    --hover-green: #e6f7e6;
    --text-dark: #222;
    --text-gray: #666;
    --danger-red: #c0392b;
}
body {
    background-color: var(--bg-light-green);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* 侧边栏样式 PC端 */
.sidebar {
    width: 280px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(46, 125, 50, 0.06);
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 99;
}
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-green);
}
.sidebar-header h2 {
    font-size: 20px;
    color: var(--main-green);
}
.menu-list {
    padding: 16px 0;
}
.menu-item {
    padding: 14px 24px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}
.menu-item:hover, .menu-item.active {
    background: var(--hover-green);
    color: var(--main-green);
    border-left: 4px solid var(--main-green);
}
/* 下拉菜单父级 */
.menu-parent {
    position: relative;
}
.menu-parent .menu-item {
    justify-content: space-between;
}
.menu-parent .menu-item .menu-text {
    display: flex;
    align-items: center;
    gap: 10px;
}
.arrow-icon {
    transition: transform 0.3s;
}
.arrow-icon.open {
    transform: rotate(180deg);
}
/* 子菜单 */
.sub-menu {
    background: #f8fff8;
    display: none;
}
.sub-menu.show {
    display: block;
}
.sub-menu .menu-item {
    padding-left: 44px;
    font-size: 14px;
}
/* 主内容区域 */
.main-wrap {
    flex: 1;
    padding: 30px;
    width: calc(100% - 240px);
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.top-bar h1 {
    font-size: 24px;
    color: var(--main-green);
}
.tip-text {
    color: var(--danger-red);
    font-size: 14px;
}
/* 汉堡按钮 移动端隐藏 */
.menu-toggle {
    display: none;
    border: none;
    background: var(--main-green);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

/* 主卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.08);
}
.section-title {
    font-size: 18px;
    color: var(--main-green);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-green);
}

/* Tab标签样式 */
.tab-wrap {
    margin-bottom: 30px;
}
.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-green);
    gap: 4px;
    flex-wrap: wrap;
}
.tab-item {
    padding: 12px 18px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--text-gray);
    transition: 0.2s;
    white-space: nowrap;
}
.tab-item:hover {
    background: var(--hover-green);
}
.tab-item.active {
    color: var(--main-green);
    border: 1px solid var(--border-green);
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: 500;
}
.tab-panel {
    padding-top: 20px;
    display: none;
}
.tab-panel.show {
    display: block;
}

/* 表单 */
.form-item {
    margin-bottom: 20px;
}
.form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-item input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-green);
    border-radius: 6px;
    font-size: 15px;
}
.form-item input:focus {
    outline: none;
    border-color: var(--main-green);
}
.submit-btn {
    width: 100%;
    height: 46px;
    background: var(--main-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.submit-btn:hover {
    background: #27672b;
}
/* 折叠说明面板 */
.desc-box {
    margin-top: 30px;
}
.desc-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: var(--hover-green);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    color: var(--main-green);
    cursor: pointer;
}
.desc-content {
    margin-top: 12px;
    padding: 16px;
    background: #f8fff8;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    display: none;
}
.desc-content.show {
    display: block;
}

.loginmain-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}
.login-title {
    text-align: center;
    font-size: 24px;
    color: var(--main-green);
    margin-bottom: 26px;
    font-weight: 400;
}
.login-tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-green);
    margin-bottom: 24px;
}
.login-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    color: var(--text-gray);
    transition: 0.2s;
}
.login-tab-item.active {
    color: var(--main-green);
    border-bottom: 2px solid var(--main-green);
}
.login-panel {
    display: none;
}
.login-panel.show {
    display: block;
}
.form-item {
    margin-bottom: 18px;
}
.form-item input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-green);
    border-radius: 6px;
    font-size: 15px;
}
.form-item input:focus {
    outline: none;
    border-color: var(--main-green);
}
.code-row {
    display: flex;
    gap:10px;
}
.code-row input {
    flex:1;
}
.get-code-btn {
    white-space: nowrap;
    padding:0 14px;
    border:1px solid var(--main-green);
    color:var(--main-green);
    background:#fff;
    border-radius:6px;
    cursor:pointer;
}
.get-code-btn:hover:not(:disabled) {
    background:var(--hover-green);
    color:#fff;
}
.get-code-btn:disabled{
    border-color:#ccc;
    color:#999;
    cursor:not-allowed;
}
.login-btn {
    width: 100%;
    height: 46px;
    background: var(--main-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top:8px;
}
.login-btn:hover {
    background: var(--hover-green);
}
.qrcode-wrap {
    text-align:center;
    padding:16px 0;
}
.qrcode-box {
    width:180px;
    height:180px;
    border:1px solid var(--border-green);
    margin:0 auto 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--text-gray);
}
.tip-text {
    font-size:14px;
    color:#29953c;
}
.bottom-tip {
    margin-top:24px;
    text-align:center;
    font-size:13px;
    color:var(--text-gray);
}

.bottom-info {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}
.regmain-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.register-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}
.register-title {
    text-align: center;
    font-size: 24px;
    color: var(--main-green);
    margin-bottom: 26px;
    font-weight: 400;
}
.form-item {
    margin-bottom: 18px;
}
.form-item input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-green);
    border-radius: 6px;
    font-size: 15px;
}
.form-item input:focus {
    outline: none;
    border-color: var(--main-green);
}
.code-row {
    display: flex;
    gap:10px;
}
.code-row input {
    flex:1;
}
.get-code-btn {
    white-space: nowrap;
    padding:0 14px;
    border:1px solid var(--main-green);
    color:var(--main-green);
    background:#fff;
    border-radius:6px;
    cursor:pointer;
}
.get-code-btn:hover:not(:disabled) {
    background:var(--hover-green);
    color:#fff;
}
.get-code-btn:disabled{
    border-color:#ccc;
    color:#999;
    cursor:not-allowed;
}
.register-btn {
    width: 100%;
    height: 46px;
    background: var(--main-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top:8px;
}
.register-btn:hover {
    background: var(--hover-green);
}

/* 首页主内容 */

.home-box {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}
.home-title {
    font-size: 28px;
    color: var(--main-green);
    font-weight: 400;
    margin-bottom: 20px;
    text-align: center;
}
.home-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
}
.func-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--main-green);
    margin: 30px 0 15px;
}
.func-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.func-item {
    padding: 16px;
    border: 1px solid var(--border-green);
    border-radius: 8px;
}
.func-item h4 {
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.func-item p {
    font-size: 14px;
    color: var(--text-gray);
}
.api-service-box{
    margin-top:30px;
    padding:20px;
    border:1px solid var(--border-green);
    border-radius:8px;
    background:#f8fff8;
}
.contact-box{
    margin-top:20px;
    padding:20px;
    border:1px solid var(--border-green);
    border-radius:8px;
    background:#f8fff8;
}
.contact-box p{
    line-height: 2;
    font-size:15px;
    color:var(--text-dark);
}

.bottom-link {
    margin-top:20px;
    text-align:center;
    font-size:14px;
    color:var(--text-gray);
}
.bottom-link a {
    color:var(--main-green);
    text-decoration:none;
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-gray);
}
/*user*/
.info-wrap{
            padding:30px;
			width:100%;
        }
        .info-card{
            background:#fff;
            border-radius:8px;
            padding:30px;
            box-shadow: 0 1px 8px #eee;
			
        }
        .info-title{
            font-size:20px;
            font-weight:bold;
            margin-bottom:25px;
            padding-bottom:12px;
            border-bottom:1px solid #eee;
			background: #2e7d32;
			  color: #fff;
			  border-radius: 12px;
			  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
			  padding: 24px;
			  overflow: hidden;
        }
        .info-item{
            display:flex;
            padding:14px 0;
            border-bottom:1px dashed #efefef;
        }
        .info-label{
            width:180px;
            color:#555;
        }
        .info-value{
            flex:1;
            color:#666;
        }
        .tip-text{
            color:#666;
            font-size:14px;
            margin-top:6px;
        }
        .pwd-form{
            margin-top:30px;
            padding-top:20px;
            border-top:1px solid #eee;
        }
        .pwd-item{
            margin:15px 0;
        }
        .pwd-item label{
            display:inline-block;
            width:180px;
            color:#555;
        }
        .pwd-item input{
            padding:8px 12px;
            width:180px;
            border:1px solid #ccc;
            border-radius:4px;
        }
        .btn-submit{
            background:#2E7D32;
            color:#fff;
            border:none;
            padding:10px 22px;
            border-radius:4px;
            cursor:pointer;
        }
/*log*/	
		.log-card{
    background:#fff;
    border-radius:14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding:20px;
    overflow:hidden;
}
.log-title{
    font-size:18px;
    font-weight:bold;
    margin-bottom:16px;
}
.log-title .spanleft{
    font-weight:normal;
    font-size:14px;
    color:#666;
    margin-left:10px;
}
.log-card table{
    width:100%;
    border-collapse: separate;
    border-spacing:0;
    border-radius:10px;
    overflow:hidden;
}
.log-card th{
    background-color:#2e7d32;
    color:#ffffff;
    padding:12px 10px;
    text-align:center;
    font-weight:normal;
}
.log-card td{
    padding:11px 10px;
    text-align:center;
    border-bottom:1px solid #eee;
	font-size:15px; color:#555; line-height:1.8;
}
.log-card tbody tr:nth-child(even){
    background-color:#d1e9da4f;
}
.log-card tbody tr:hover{
    background-color:#d8eed8;
}
        .status-success{
            color:green;font-weight:600;
        }
        .status-fail{
            color:#fb3939;
        }	
/*查询框架*/
.luhn-wrap {
            max-width: 640px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .luhn-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
            padding: 28px 24px;
            overflow: hidden;
        }

        .luhn-title {
            text-align: center;
            color: #2E7D32;
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 24px;
        }

        .form-item {
            margin-bottom: 18px;
        }

        .form-item label {
            display: block;
            margin-bottom: 10px;
            color: #333;
            font-weight: bold;
            font-size: 15px;
        }

        .form-item input {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            font-size: 16px;
            background: #fafafa;
            outline: none;
            transition: border-color 0.2s, background 0.2s;
        }

        .form-item input:focus {
            border-color: #2E7D32;
            background: #ffffff;
        }

        .btn-check {
            width: 100%;
            padding: 14px;
            background-color: #2E7D32;
            color: #ffffff;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .btn-check:hover {
            opacity: 0.92;
        }

        .btn-check:active {
            opacity: 0.85;
        }

        .result-box {
            margin-top: 22px;
            border-radius: 16px;
            min-height: 90px;
            line-height: 1.7;
            font-size: 15px;
        }
		.result-pbox {
            border-radius: 16px;
            min-height: 90px;
            line-height: 36px;
            font-size: 15px;
			padding:20px;
        }
		.result-pbox p{line-height:36px;font-size:16px;}
        .result-default {
            background: #f7f7f7;
            color: #666666;
        }

        .result-success {
            background: #e8f5e9;
            color: #1b5e20;
			
        }

        .result-error {
			border-radius: 12px;
            background: #ffebee;
            color: #b71c1c;
        }

        .result-tip {
            margin-top: 10px;
            font-size: 14px;
        }

        .desc-card h3 {
            color: #2E7D32;
            font-size: 17px;
            margin-bottom: 14px;
            font-weight: bold;
        }

        .desc-card p {
            color: #444444;
            line-height: 1.8;
            font-size: 14px;
        }

        .desc-card .warn {
            color: #c62828;
            font-weight: bold;
        }

        .desc-card ol {
            padding-left: 20px;
            margin-top: 10px;
        }

        .desc-card ol li {
            margin-bottom: 8px;
            line-height: 1.7;
        }		
/* 表格外层滚动容器 */
.table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
		
.text-green{color:#2e7d32;}		
.text-center{text-align:center;}
.spanxiao{
	font-size:12px;
	font-weight: 300;
	color:#2E7D32;
}
.anoline { text-decoration: none !important;}
.textgreen{color:#0d680a;font-weight:600;}
.spanleft{
	padding-left:36px;
}
/* 遮罩层 移动端 */
.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 98;
}
.mask.show {
    display: block;
}
/* 弹窗图片容器 */
.img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.img-modal-box {
    max-width: 90%;
    max-height: 90vh;
}
.img-modal-box img {
    max-width: 100%;
    border-radius:12px;
}
.img-close {
    position: absolute;
    top:16px;
    right:24px;
    color:#fff;
    font-size:32px;
    cursor:pointer;
}

/* ========== 移动端适配 768px以下 ========== */
@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .sidebar.open {
        left: 0;
    }
    .main-wrap {
        width: 100%;
        padding: 20px 16px;
    }
    .top-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .menu-toggle {
        display: block;
    }
    .card {
        padding: 20px 16px;
    }
    .tab-header {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}
/* 超小手机 480px */
@media screen and (max-width: 480px) {
    .top-bar h1 {
        font-size: 20px;
    }
}
