/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c8ced8;
    -webkit-touch-callout: none;
    overflow: hidden;
}

/* ===== 布局 ===== */
.scale-wrapper {
    transform-origin: center center;
    /* 宽度由 JS 动态控制 */
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* ===== 两栏布局 ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ===== 卡片（毛玻璃） ===== */
.ore-card {
    padding: 20px 22px 22px;
    background: rgba(235, 240, 248, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color 0.25s ease;
}

.ore-card:hover {
    border-color: rgba(255, 255, 255, 0.75);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #2a3a4a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 10px;
    font-family: inherit;
}

.card-title::before {
    content: '◆';
    color: rgba(0, 0, 0, 0.15);
    font-size: 10px;
    margin-right: 6px;
}

/* ===== 时钟 ===== */
.time-display {
    text-align: center;
    padding: 12px 0 10px;
}

.big-time {
    font-size: 52px;
    font-weight: 300;
    color: #1a2a3a;
    letter-spacing: 3px;
    line-height: 1.1;
    white-space: nowrap;
    font-family: inherit;
}

.big-time span {
    font-size: 0.9em;
    color: rgba(0, 0, 0, 0.20);
}

.seconds {
    font-size: 0.5em;
    margin-left: 2px;
    color: rgba(0, 0, 0, 0.18) !important;
}

.date-badge {
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.50);
    font-size: 16px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: inherit;
}

/* ===== 个人 ===== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.35);
    min-width: 60px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.info-link {
    color: #2a3a4a;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 1px;
    font-family: inherit;
    transform: none !important;
}

.info-link:hover {
    color: #0d8a6b;
    border-bottom-color: #0ff191;
}

/* ===== 相关链接 ===== */
.friends-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(235, 240, 248, 0.50);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    padding: 18px 22px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    color: #2a3a4a;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
    width: 100%;
    font-family: inherit;
}

.section-title::before {
    content: '◆';
    color: rgba(0, 0, 0, 0.15);
    font-size: 10px;
    margin-right: 6px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-content: start;
    padding: 0;
}

.friend-card {
    background: rgba(255, 255, 255, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 0;
    padding: 12px 10px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
}

.friend-card:hover {
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(255, 255, 255, 0.70);
}

.friend-card h3 {
    font-size: 13px;
    color: #2a3a4a;
    margin-bottom: 3px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.friend-card p {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== 按钮（无平移） ===== */
.btn {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.30);
    color: #2a3a4a;
    letter-spacing: 0.3px;
    transform: none !important;
}

.btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn.small_btn {
    font-size: 10px;
    padding: 4px 12px;
}

.btn.green_btn {
    border: 2px solid #0ff191;
    background: rgba(255, 255, 255, 0.20);
    color: #0d8a6b;
}

.btn.green_btn:hover {
    background: rgba(15, 241, 145, 0.05);
    border-color: #0ddf85;
}

.btn.normal_btn {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(0, 0, 0, 0.06);
    color: #2a3a4a;
}

.btn.normal_btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ===== 弹窗 ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
}

modal_area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    display: none;
}

modal_area modal {
    display: block;
    background: rgba(240, 245, 250, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

modal_title_area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

modal_title {
    font-size: 17px;
    font-weight: 600;
    color: #2a3a4a;
    letter-spacing: 0.3px;
    font-family: inherit;
}

modal_close_btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    transition: all 0.2s ease;
    transform: none !important;
}

modal_close_btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.modal_close_btn_img {
    width: 14px;
    height: 14px;
    opacity: 0.4;
    filter: invert(0);
}

modal_content {
    padding: 24px 20px 20px;
    color: #2a3a4a;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    font-family: inherit;
}

modal_content p {
    margin: 0;
}

modal_button_area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 4px 20px 20px !important;
}

modal_button_area .btn.green_btn {
    border: 2px solid #0ff191;
    background: rgba(255, 255, 255, 0.20);
    color: #0d8a6b;
    transform: none !important;
}

modal_button_area .btn.green_btn:hover {
    background: rgba(15, 241, 145, 0.05);
    border-color: #0ddf85;
}

/* ===== 页脚 ===== */
.footer-views {
    text-align: center;
    margin-top: 0;
    padding: 10px 15px 6px;
    color: rgba(0, 0, 0, 0.25);
    font-size: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.eye-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    opacity: 0.3;
    stroke: #2a3a4a;
}

#busuanzi_value_site_pv {
    color: rgba(0, 0, 0, 0.40);
}

/* ===== 移动端布局切换 ===== */
@media (max-width: 800px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .friends-grid {
        gap: 8px;
    }
    .friend-card {
        padding: 8px 6px 8px;
        gap: 8px;
    }
    .friend-card h3 {
        font-size: 11px;
    }
    .friend-card p {
        font-size: 9px;
    }
    .btn {
        font-size: 10px;
        padding: 4px 12px;
    }
    .btn.small_btn {
        font-size: 9px;
        padding: 4px 10px;
    }
    .ore-card {
        padding: 14px 16px 16px;
    }
    .friends-section {
        padding: 14px 16px 16px;
    }
    modal_area {
        max-width: 320px;
    }
}