/* M12 自定义样式 */

body {
    margin: 0;
    padding: 0;
}

#app-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Header Bar */
.m12-top-header {
    background: linear-gradient(to bottom, #f5fae1, #e2eaab);
    padding: 0.06rem 0.10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.m12-header-logo {
    height: 0.52rem;
    max-width: 68%;
    object-fit: contain;
}

.m12-header-right {
    height: 0.52rem;
    max-width: 30%;
    object-fit: contain;
}

/* Notice Bar */
.m12-notice-bar {
    background: linear-gradient(to right, #f4f8fe, #eef4fe);
    border: 1px solid #d4e3fb;
    border-radius: 0.04rem;
    padding: 0.04rem 0.08rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0.06rem 0.04rem;
}

.m12-notice-icon {
    font-size: 0.18rem;
    color: #4a68a8;
    margin-right: 0.06rem;
    flex-shrink: 0;
}

.m12-notice-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.15rem;
    font-weight: bold;
    color: #4a68a8;
}

/* 5个图标 行 */
.m12-icon-row {
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.08rem 0.04rem;
    box-sizing: border-box;
    margin-bottom: 0.08rem;
}

.m12-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
}

.m12-icon-img {
    width: 0.72rem;
    height: 0.65rem;
    object-fit: contain;
    margin-bottom: 0.04rem;
}

.m12-icon-label {
    font-size: 0.15rem;
    font-weight: bold;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.01rem;
    text-shadow: 0px 2px 1px #ff9c00;
}

/* 外部链接区 (2列 胶囊按钮) */
.m12-links-card {
    background-color: #ffffff;
    border: 1px dashed #cccccc;
    border-radius: 0.06rem;
    padding: 0.06rem;
    box-sizing: border-box;
    margin: 0.08rem 0.04rem;
}

.m12-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.06rem 0.08rem;
}

.m12-link-item {
    border-radius: 0.08rem;
    height: 0.38rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.18rem;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(to bottom, #ffffff, #f2f2f2, #e5e6e6);
    border: 1px solid #d0d0d0;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s ease;
}

.m12-link-item:active {
    transform: scale(0.98);
}

.m12-link-item.link-purple {
    color: #7d00a0;
}

.m12-link-item.link-red {
    color: #cc0000;
}

.m12-link-item.link-orange {
    color: #ff8800;
}

.m12-link-item.link-blue {
    color: #0055cc;
}

.m12-link-item.link-lightblue {
    color: #0088cc;
}

.m12-link-item.link-darkred {
    color: #880000;
}

.m12-link-item.link-gold {
    color: #cc9900;
}

/* 高手研发精准资料模块 */
.m12-gaoshou-box {
    margin: 0.12rem 0;
    background-color: #e2eaab;
    border: 1px solid #b5c57b;
    border-radius: 0.04rem;
    box-sizing: border-box;
    overflow: hidden;
}

.m12-gaoshou-header {
    text-align: center;
    font-size: 0.18rem;
    font-weight: bold;
    color: #000000;
    padding: 0.08rem 0;
    cursor: pointer;
    border-bottom: 1px solid #b5c57b;
    letter-spacing: 0.01rem;
}

.m12-gaoshou-list {
    display: flex;
    flex-direction: column;
}

.m12-gaoshou-row {
    padding: 0.06rem 0.04rem;
    border-bottom: 1px dotted #b5c57b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.06rem;
    font-size: 0.16rem;
    cursor: pointer;
    box-sizing: border-box;
}

.m12-gaoshou-row:last-child {
    border-bottom: none;
}

.m12-gaoshou-row .gs-title {
    color: #333333;
    font-weight: 500;
}

.m12-gaoshou-row .gs-tag {
    color: red;
    font-weight: bold;
}

.m12-gaoshou-row .gs-desc {
    color: #333333;
    font-weight: 500;
}

/* 推荐导航列表样式 */
.m3-recommend-box {
    margin: 0.12rem 0;
}

.m3-click-header {
    text-align: center;
    color: #cc0000;
    font-size: 0.22rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
    letter-spacing: 0.01rem;
    cursor: pointer;
}

.m3-recommend-table {
    background-color: #bebea8;
    border: 1px solid #333333;
    box-sizing: border-box;
}

.m3-recommend-row {
    padding: 0.07rem 0.05rem;
    border-bottom: 1px solid #555555;
    text-align: center;
    font-size: 0.16rem;
    color: #000000;
    font-family: PingFangSC-Regular, Microsoft YaHei, Helvetica, sans-serif;
    cursor: pointer;
    font-weight: bold;
}

.m3-recommend-row:last-child {
    border-bottom: none;
}

.rec-period {
    font-weight: bold;
    margin-right: 0.04rem;
}

.rec-prefix {
    font-weight: bold;
    margin-right: 0.02rem;
}

.rec-name {
    font-weight: bold;
}

/* External Links Box Styles */
.external-links-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.12rem;
    padding: 0.16rem 0.2rem;
}

.external-link-item {
    background: #f8f9fa;
    color: #333;
    border: 1.5px solid #e9ecef;
    border-radius: 0.06rem;
    padding: 0.12rem 0.16rem;
    text-align: center;
    font-size: 0.15rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.external-link-item:active,
.external-link-item:hover {
    background-color: #eefbf8;
    color: #2c6e63;
}
