/* ==========================================================
   Ritsuai 律合官网 · 文档/公告类页面自定义样式
   （works/kkng.html、statement/260603_statement.html、statement/260306_statement.html）
   来源：原各页内联 <style> 收敛；共享类已并入 base.css / layout.css / components.css
   ========================================================== */

/* ==========================================================
   works/kkng.html（KAGeXpress 3.0）页面专属样式
   ========================================================== */

/* ===== CSS Custom Properties ===== */
:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-accent-1: #3b82f6;
    --color-accent-2: #8b5cf6;
    --color-accent-3: #10b981;
    --color-accent-4: #f59e0b;
    --color-accent-5: #ec4899;
    --color-border: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Global Enhancements ===== */
body {
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ===== Hero Background Decorations ===== */
.hero-bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero-decor-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.hero-decor-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: -60px;
    left: -60px;
    animation: float 6s ease-in-out 1s infinite reverse;
}

.hero-decor-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    top: 50%;
    left: 30%;
    animation: float 7s ease-in-out 2s infinite;
}

/* ===== Section Dividers ===== */
.section-divider {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-bg), transparent);
    z-index: 1;
}

.section-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 1;
}

/* ===== Card Enhancements ===== */
.card-enhanced {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-enhanced:hover::before {
    opacity: 1;
}

.card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ===== Advantage Card Icon ===== */
.icon-wrapper {
    transition: all var(--transition-spring);
}

.card-enhanced:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

/* ===== Gradient Accent Bar ===== */
.accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform-origin: top;
    transition: transform var(--transition-spring);
}

.card-enhanced:hover .accent-bar {
    transform: scaleY(1.75);
}

/* ===== Version Card ===== */
.version-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.version-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.version-card-header {
    padding: 1.5rem 1.5rem 1.25rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.version-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    pointer-events: none;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ===== B站 Video Container ===== */
.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, #fb7299, #8b5cf6, #3b82f6);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-wrapper:hover::before {
    opacity: 0.6;
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ===== Scenario Card ===== */
.scenario-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--color-accent-1), var(--color-accent-2));
    transition: height var(--transition-spring);
    border-radius: 0 2px 2px 0;
}

.scenario-card:hover::before {
    height: 100%;
}

.scenario-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

/* ===== Scroll Reveal（kkng 自有动画类，main.js 不覆盖） ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Button Ripple Effect ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ripple:hover::after {
    opacity: 1;
}

/* ===== Nav Active State ===== */
.nav-link.active-link {
    position: relative;
}

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--color-text);
    transform: scaleX(1);
}

/* ===== Decorative Dots Pattern ===== */
.dots-pattern {
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===== Section Background Alternation ===== */
.section-alt {
    background: var(--color-surface);
}

/* ===== Heading Accent Line ===== */
.heading-accent {
    display: inline-block;
    position: relative;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    border-radius: 3px;
}

/* ===== Check Icon Animation ===== */
.check-icon {
    transition: all var(--transition-base);
}

.version-card:hover .check-icon {
    transform: scale(1.2);
}

/* ===== Notification Bar ===== */
#region-notification {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===== Modal Enhancements ===== */
#demo-modal > div {
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================
   statement/ 页面专属样式
   （原 @layer utilities 中的工具类已转为普通 CSS）
   ========================================================== */

/* ===== 工具类（原 @layer utilities，两个 statement 页共有） ===== */
.content-auto {
    content-visibility: auto;
}

.transition-transform-opacity {
    transition-property: transform, opacity;
}

/* ===== 260603_statement.html：docs-content 正文排版 ===== */
.docs-content h2 {
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}
.docs-content h2:first-of-type {
    margin-top: 1rem;
}
.docs-content h3 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #2a2a2a;
}
.docs-content h4 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #3a3a3a;
}
.docs-content p {
    margin-bottom: 1.25rem;
    line-height: 2;
    text-align: justify;
}
.docs-content ul, .docs-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    line-height: 2;
}
.docs-content ul {
    list-style-type: disc;
}
.docs-content ol {
    list-style-type: decimal;
}
.docs-content ul ul {
    list-style-type: circle;
    margin-bottom: 0;
}
.docs-content li {
    margin-bottom: 0.3rem;
}
.docs-content blockquote {
    border-left: 4px solid #1a1a1a;
    background: #f8f8f8;
    padding: 1rem 1.5rem;
    margin: 1.25rem 0;
    border-radius: 0 6px 6px 0;
}
.docs-content blockquote p {
    margin-bottom: 0.5rem;
    text-indent: 0;
}
.docs-content blockquote p:last-child {
    margin-bottom: 0;
}
.docs-content blockquote blockquote {
    margin: 0.75rem 0;
    border-left-color: #666;
    background: #f0f0f0;
}
.docs-content code {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #f0f0f0;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}
.docs-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.25rem 0;
    line-height: 1.7;
    font-size: 0.9rem;
}
.docs-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.docs-content strong {
    font-weight: 600;
}
.docs-content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.docs-content a:hover {
    color: #555;
}
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}
.docs-content table th {
    background: #1a1a1a;
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
}
.docs-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}
.docs-content table tr:last-child td {
    border-bottom: none;
}
.docs-content table tr:nth-child(even) td {
    background: #fafafa;
}

/* ----- 移动端：文档表格横向滚动（避免窄屏撑破布局） ----- */
@media (max-width: 640px) {
    .docs-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}
.docs-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}
.docs-content .tagline {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    text-align: center;
    margin: 1.5rem 0 2rem 0;
}
.docs-content .warning-box {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1.25rem 0;
    border-radius: 0 6px 6px 0;
}
.docs-content .warning-box p {
    margin-bottom: 0.5rem;
    text-indent: 0;
}
.docs-content .warning-box p:last-child {
    margin-bottom: 0;
}

/* ===== 260306_statement.html：statement-content 正文排版 ===== */
.statement-content p {
    text-indent: 2em;
    margin-bottom: 1.5rem;
    line-height: 2;
    text-align: justify;
}
.statement-content h3 {
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}
.statement-content h3:first-of-type {
    margin-top: 1rem;
}
.statement-content .signature-block {
    text-align: right;
}
.statement-content .signature-block p {
    text-indent: 0;
    text-align: right;
}
