/* ===========================
   RESET / NORMALIZE
   =========================== */
@charset "UTF-8";

*, *::before, *::after {
    box-sizing: border-box;
}

button, div, footer, p, section, header {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-size: 14px;
    font-family: PingFangSC-Regular, "Microsoft YaHei", sans-serif;
    background-color: #f9fafb;
}

body {
    position: relative;
    margin: 0;
    min-height: 100%;
}

img {
    display: block;
}

a, a:active, a:hover, a:visited {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

/* ===========================
   PAGE INNER (container)
   =========================== */
.page-inner {
    max-width: 1280px;
    min-width: 900px;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   INDEX PAGE
   =========================== */
.index-page {
    min-width: 900px;
}

.index-page .custom-footer {
    position: static;
}

/* ===========================
   HEADER
   =========================== */
.custom-header {
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    height: 109px;
    z-index: 20;
    left: 0;
    top: 0;
    padding-left: calc(100vw - 100%);
    color: #fff;
    background-color: #26282c;
    font-size: 16px;
    font-weight: 700;
}

.custom-header .page-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
}

/* Light theme header (transparent over hero) */
.light .custom-header {
    color: #666;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark theme header (scrolled past hero) */
.theme-header:not(.light) .custom-header {
    color: #fff;
    background-color: #26282c;
    transition: background-color 0.3s, color 0.3s;
}

/* Logo */
.logo {
    height: 36px;
    width: 84px;
    display: inline-flex;
    align-items: center;
    background-size: 100%;
    margin-right: 110px;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s;
}

/* Light state: dark-colored logo (for transparent header over green bg) */
.light .custom-header .logo {
    background-image: url("images/kooklogo.png");
}

/* Dark state: white logo (for dark header) */
.theme-header:not(.light) .custom-header .logo {
    background-image: url("images/kooklogo_black.png");
}

.site-logo {
    overflow: hidden;
    width: 0;
    height: 0;
    text-indent: -9999px;
}

/* Header Left */
.custom-header .header-left {
    display: flex;
    align-items: center;
}

.custom-header .header-left .header-nav {
    padding-top: 5px;
    padding-bottom: 11px;
}

/* Header Nav */
.custom-header .header-nav {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.custom-header .header-nav:not(:last-child) {
    margin-right: 40px;
}

.custom-header .header-nav:active,
.custom-header .header-nav:hover,
.custom-header .header-nav:visited {
    color: inherit;
}

.custom-header .header-nav.active {
    position: relative;
}

.custom-header .header-nav.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 32px;
    left: 50%;
    margin-left: -16px;
    height: 3px;
    background: #7acc35;
}

/* Header Right */
.header-right {
    display: inline-flex;
    float: right;
    align-items: center;
}

/* Login Button */
.custom-header .btn-login {
    text-decoration: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    line-height: 20px;
    background: #7acc35;
}

/* Download Button in header */
.download-all-btn {
    /* just nav styling, handled by header-nav */
}

/* ===========================
   HERO / TOP SECTION
   =========================== */
.top {
    position: relative;
    width: 100%;
    height: 886px;
    padding-top: 230px;
    background-image: linear-gradient(180deg, #f9ffb9, #a2ff9f);
}

.top .top-inner {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    height: 100%;
    background-image: url("images/top-bg.png");
}

.top .bg-img {
    position: absolute;
    left: 50%;
    pointer-events: none;
    width: 100%;
    transform: translateX(-50%);
    bottom: 25px;
    min-width: 1440px;
    max-width: 1920px;
    /* IMAGE: top-center-bg.png */
}

/* Content (centered text + buttons) */
.content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.content .big-title {
    font-size: 86px;
    margin-bottom: 44px;
    letter-spacing: 4px;
    font-weight: 700;
    position: relative;
    color: #222;
}

.content .big-title .title-inner {
    display: inline-block;
}

.content p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 64px;
    letter-spacing: 2px;
}

.content .content-options {
    display: flex;
    justify-content: center;
}

/* Buttons */
.button {
    display: inline-block;
    border: none;
    word-break: keep-all;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    padding: 11px 22px;
    background-color: #fff;
    color: #333436;
    border-radius: 18px;
    font-size: 14px;
    line-height: 14px;
    min-width: 100px;
    text-align: center;
    font-family: inherit;
    font-weight: 700;
}

.button.size-md {
    height: 78px;
    line-height: 28px;
    font-size: 28px;
    padding: 25px 50px;
    border-radius: 39px;
}

.button:hover {
    color: #66686b;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
}

.content .content-options .download {
    color: #fff;
    background-color: #7acc35;
}

.content .content-options .enter {
    margin-left: 40px;
    background-color: #222;
    color: #fff;
}

/* Responsive title */
@media (max-width: 1440px) {
    .content .big-title {
        font-size: 64px;
    }
}

/* ===========================
   SHOW CONTENTS (features)
   =========================== */
.show-contents {
    margin-top: 97px;
    margin-bottom: 192px;
}

.show-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.show-content:not(:last-child) {
    margin-bottom: 100px;
}

.show-content:first-child {
    margin-bottom: 180px;
}

.show-content .img-content {
    display: block;
    flex: 1;
}

.show-content .img-content img {
    width: 100%;
}

/* Image placeholders */
.show-content .img-content .img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.show-content .text-content {
    padding-left: 100px;
    width: 521px;
}

/* When text is on the left (section 2), pad from the right instead */
.show-content:nth-child(2) .text-content {
    padding-left: 0;
    padding-right: 100px;
}

.show-content .title {
    color: #222;
    font-size: 64px;
    line-height: 64px;
    margin-bottom: 28px;
    font-weight: 700;
}

.show-content .title.highlight {
    display: inline-block;
    word-break: keep-all;
    background-image: linear-gradient(270deg, #b2fec0 0%, #e0ff24 100%);
    background-size: 100% 38px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.show-content .desc {
    color: #999;
    font-size: 20px;
    line-height: 34px;
}

.show-content:first-child .img-content {
    max-width: 714px;
}

.show-content:nth-child(2) .img-content {
    max-width: 825px;
}

.show-content:nth-child(3) .img-content {
    max-width: 784px;
}

/* ===========================
   FOOTER
   =========================== */
.custom-footer {
    box-sizing: border-box;
    position: absolute;
    padding-top: 53px;
    padding-bottom: 66px;
    bottom: 0;
    width: 100%;
    font-size: 14px;
    color: #fff;
    background: #17191b;
}

.custom-footer .footer-inner {
    display: flex;
    justify-content: space-between;
}

.custom-footer .nav {
    padding-top: 13px;
    margin-bottom: 24px;
    line-height: 24px;
}

.custom-footer .nav a {
    color: inherit;
    text-decoration: none;
}

.custom-footer .nav a:active,
.custom-footer .nav a:hover {
    color: inherit;
    text-decoration: underline;
}

.custom-footer .nav a:not(:last-child) {
    margin-right: 32px;
}

.custom-footer .icps {
    line-height: 24px;
}

.custom-footer .icp-item {
    color: #777;
    text-decoration: none;
}

.custom-footer .icp-item:not(:last-child) {
    margin-right: 24px;
}

.custom-footer .police-icon {
    vertical-align: sub;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.custom-footer .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.custom-footer .right .icons {
    margin-bottom: 35px;
    display: flex;
}

.custom-footer .right .icons .icon-item {
    width: 50px;
    height: 50px;
    background-size: 100%;
    display: block;
}

.custom-footer .right .icons .icon-item:not(:last-child) {
    margin-right: 20px;
}

/* Social icon placeholders — images to be added */
.custom-footer .right .icons .icon-item.sina {
    background-image: url("images/sina.png");
}

.custom-footer .right .icons .icon-item.zhihu {
    background-image: url("images/zhihu.png");
}

.custom-footer .right .icons .icon-item.bilibili {
    background-image: url("images/bilibili.png");
}

.custom-footer .right .bis {
    text-align: right;
    line-height: 24px;
    color: #777;
}

/* ===========================
   PERMISSION MODAL
   =========================== */
.kaihei-mask-container {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.permission-modal {
    min-width: 480px;
    max-width: 520px;
    padding: 40px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    font-family: PingFangSC-Regular, "Microsoft YaHei", sans-serif;
}

.permission-modal .modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    cursor: pointer;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permission-modal .modal-close:hover svg path {
    stroke: #222;
}

.permission-modal .modal-title {
    font-weight: 600;
    font-size: 24px;
    color: #222;
    line-height: 34px;
    text-align: center;
    margin-bottom: 20px;
}

/* User tag */
.modal-user-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-user-tag .user-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.modal-user-tag .user-discriminator {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    margin-left: 2px;
}

.modal-user-tag .user-badge {
    font-size: 12px;
    color: #fff;
    background: #7acc35;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
    margin-left: 4px;
}

/* Description */
.modal-desc {
    font-size: 14px;
    line-height: 22px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
    padding: 0 10px;
}

/* Benefits */
.modal-benefits-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    padding-left: 16px;
}

.modal-benefits {
    list-style: none;
    padding: 0 16px;
    margin: 0 0 24px 0;
}

.modal-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    line-height: 20px;
    padding: 6px 0;
}

.modal-benefits li .benefit-icon {
    flex-shrink: 0;
}

/* Status row */
.modal-status-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 16px;
}

.status-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid transparent;
}

.status-card.status-active {
    border-color: #7acc35;
    background: rgba(122, 204, 53, 0.06);
}

.status-card.status-inactive {
    border-color: #e44b4d;
    background: rgba(228, 75, 77, 0.06);
}

.status-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.status-flag {
    font-size: 18px;
    line-height: 1;
}

.status-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Action buttons */
.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 16px;
}

.modal-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0;
    width: 130px;
    border-radius: 10px;
    line-height: 22px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.modal-btn-cancel {
    background: #e5e5ea;
    color: #222;
}

.modal-btn-cancel:hover {
    background: #d4d4d9;
}

.modal-btn-confirm {
    background: #7acc35;
    color: #fff;
}

.modal-btn-confirm:hover {
    background: #6bbd28;
    box-shadow: 0 4px 14px rgba(122, 204, 53, 0.35);
}

/* Loading spinner */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f5f6fa;
    border-top: 4px solid #7acc35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
