@import url('https://taizun.site/taizun.css');

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

@keyframes gradientMove {
    0% {
        background-position: 0% 50%, 100% 50%, 50% 0%;
    }

    50% {
        background-position: 100% 50%, 0% 50%, 50% 100%;
    }

    100% {
        background-position: 0% 50%, 100% 50%, 50% 0%;
    }
}

body {
    font-family: Taizun;
    background:
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: gradientMove 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    position: relative;
    padding: 60px 20px;
}

.hero {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: Taizun;
    font-size: 64px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

.hero-line {
    display: block;
    margin-bottom: 8px;
}

.hero-title strong {
    font-weight: 700;
    color: #10b981;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    position: relative;
}

.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    justify-content: flex-start;
    padding-left: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #10b981;
    border-radius: 1px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4), 0 0 12px rgba(16, 185, 129, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-tab.active::after {
    opacity: 1;
}

.nav-tab {
    flex: none;
    padding: 10px 20px;
    background: none;
    border: none;
    color: #a8a8b3;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: Taizun;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-tab i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-tab.active {
    color: #10b981;
}

.nav-tab.active i {
    color: #10b981;
}

.content {
    padding: 16px 40px;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.code-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 20px;
    position: relative;
    margin-top: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.code-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 18px;
    color: #f8f8f2;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    padding-right: 80px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.code-text .keyword {
    color: #10b981;
    font-weight: 600;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #ffffff;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.copy-btn:hover {
    opacity: 1;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.copy-btn.copied {
    color: #10b981;
    opacity: 1;
}

.description {
    color: #c9c9d3;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
    font-family: Taizun;
}

.title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-family: Taizun;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px;
    }

    .content {
        padding: 16px 20px;
    }

    .nav-tabs {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-tab {
        padding: 12px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .nav-tab i {
        font-size: 14px;
    }

    .code-text {
        font-size: 14px;
    }

    .title {
        font-size: 20px;
    }

    .description {
        font-size: 14px;
    }

    body {
        padding: 40px 15px;
    }

    .hero {
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 30px 10px;
    }

    .container {
        width: 98%;
    }

    .content {
        padding: 12px 16px;
    }

    .nav-tabs {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-tab {
        padding: 10px 14px;
        font-size: 12px;
        gap: 5px;
    }

    .nav-tab i {
        font-size: 12px;
    }

    .copy-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        margin-top: 0;
    }

    .code-container {
        padding: 12px 16px;
    }

    .code-text {
        padding-right: 40px;
        font-size: 13px;
        line-height: 1.5;
    }

    .hero-title {
        font-size: 32px;
    }

    .title {
        font-size: 18px;
    }

    .description {
        font-size: 13px;
    }
}

.taizun-link {
    color: #10b981;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.taizun-link:hover {
    opacity: 0.8;
    cursor: pointer;
}

.font-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    margin-top: 40px;
}

.preview-header {
    text-align: left;
    margin-bottom: 16px;
}

.preview-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: Taizun;
}

.preview-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 400;
    font-family: Taizun;
}

.preview-container {
    display: flex;
    flex-direction: column;
}

.font-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-family: Taizun;
    font-size: 24px;
    line-height: 1.4;
    resize: none;
    min-height: 120px;
    outline: none;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.font-input:focus {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.font-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: Taizun;
}

/* Mobile responsiveness for font preview */
@media (max-width: 768px) {
    .font-preview {
        padding: 24px 20px;
        margin-top: 30px;
    }

    .preview-title {
        font-size: 18px;
    }

    .preview-description {
        font-size: 13px;
    }

    .font-input {
        font-size: 20px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .font-preview {
        padding: 20px 16px;
        margin-top: 20px;
    }

    .preview-title {
        font-size: 18px;
    }

    .font-input {
        font-size: 18px;
        min-height: 100px;
        padding: 12px;
    }
}