/* ============================================
   Dewatermark Tool Page - Ink & Wash Style
   ============================================ */

/* CSS Variables - Ink & Wash Color System */
:root {
    --ink-black: #1a1a2e;
    --ink-dark: #2d2d44;
    --ink-gray: #4a4a5e;
    --ink-light: #6a6a7e;
    --ink-white: #f8f9fa;
    --ink-red: #c8102e;
    --ink-blue: #2c3e50;
    --ink-gold: #d4af37;
}

/* ============================================
   Header Section - Ink Style
   ============================================ */
.dewatermark-header {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink-white) 0%, #e9ecef 50%, #dee2e6 100%);
    overflow: hidden;
}

/* Ink Splash Background */
.dewatermark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.dw-ink-splash {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ink-black) 0%, transparent 70%);
    opacity: 0.06;
    animation: inkSplash 8s ease-in-out infinite;
}

.splash-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.splash-2 {
    width: 250px;
    height: 250px;
    top: 60%;
    right: 10%;
    animation-delay: -2s;
}

.splash-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes inkSplash {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.06;
    }
    50% {
        transform: scale(1.15) rotate(5deg);
        opacity: 0.1;
    }
}

/* Brush Stroke Animation */
.dewatermark-header-visual {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 120px;
    z-index: 1;
}

.dh-brush-stroke {
    width: 100%;
    height: 100%;
}

.dh-brush-stroke .brush-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawInkStroke 3s ease-out forwards;
}

@keyframes drawInkStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Header Content */
.dewatermark-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.dewatermark-overlay {
    background: linear-gradient(
        to bottom,
        rgba(248, 249, 250, 0.2) 0%,
        rgba(248, 249, 250, 0.5) 50%,
        rgba(248, 249, 250, 0.9) 100%
    );
}

/* Title - Ink Character Animation */
.dewatermark-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 400;
    color: var(--ink-black);
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 0.1em;
    letter-spacing: 0.1em;
}

.dwt-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) scale(0.8);
    animation: inkCharReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 0.2s);
    text-shadow: 2px 2px 8px rgba(26, 26, 46, 0.15);
}

@keyframes inkCharReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dewatermark-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--ink-gray);
    letter-spacing: 0.4em;
    opacity: 0;
    animation: inkFadeInUp 1.2s ease-out 0.8s forwards;
}

@keyframes inkFadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Diary Section - Ink Style
   ============================================ */
.dewatermark-diary {
    background: linear-gradient(180deg, var(--ink-white) 0%, #f5f5f7 100%);
    position: relative;
}

.dewatermark-diary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ink-black), transparent);
}

.dewatermark-date {
    background: linear-gradient(135deg, var(--ink-black), var(--ink-blue));
    color: var(--ink-white);
}

.dewatermark-lead {
    font-size: 1.35rem;
    color: var(--ink-black);
    font-weight: 500;
}

/* Quote Styling - Ink Style */
.dewatermark-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.04), rgba(44, 62, 80, 0.04));
    border-left: 4px solid var(--ink-black);
    padding: 2rem 2rem 2rem 3rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.dq-brush {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 45px;
    height: 4px;
    background: var(--ink-black);
    border-radius: 2px;
    animation: inkBrushStroke 2.5s ease-in-out infinite;
}

@keyframes inkBrushStroke {
    0%, 100% {
        width: 45px;
        opacity: 1;
    }
    50% {
        width: 65px;
        opacity: 0.7;
    }
}

/* ============================================
   Legal Notice - 法律合规提示
   ============================================ */
.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.legal-notice-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.legal-notice-content {
    flex: 1;
}

.legal-notice-content h4 {
    color: #e65100;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-notice-content p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-notice-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.legal-notice-content li {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.25rem;
}

.legal-notice-footer {
    color: #e65100 !important;
    font-weight: 500;
    font-size: 0.9rem !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 152, 0, 0.3);
}

/* ============================================
   Original Tool Notice
   ============================================ */
.original-tool-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(26, 26, 46, 0.04));
    border-left: 4px solid var(--ink-red);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.otn-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink-red), var(--ink-gold));
    border-radius: 50%;
    color: var(--ink-white);
    font-size: 1.1rem;
}

.otn-content {
    flex: 1;
}

.otn-content p {
    margin: 0;
    color: var(--ink-black);
    font-size: 0.95rem;
    line-height: 1.7;
}

.otn-content strong {
    color: var(--ink-red);
    font-weight: 600;
}

/* ============================================
   Features Section - Ink Style
   ============================================ */
.dewatermark-features-section {
    background: linear-gradient(180deg, #f5f5f7 0%, var(--ink-white) 100%);
}

.dewatermark-section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--ink-black);
    margin-bottom: 1.5rem;
}

.dewatermark-num {
    font-family: 'Ma Shan Zheng', cursive;
    background: linear-gradient(135deg, var(--ink-black), var(--ink-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 2.2rem;
}

.dewatermark-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.df-item {
    background: var(--ink-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 46, 0.08);
}

.df-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ink-black), var(--ink-gray));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.df-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 26, 46, 0.12);
}

.df-item:hover::before {
    transform: scaleX(1);
}

.dfi-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ink Drop Preview */
.dfi-ink-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.dfi-drop {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ink-black) 0%, transparent 70%);
    animation: inkDropFloat 3s ease-in-out infinite;
}

.dfi-drop.drop-1 {
    width: 25px;
    height: 25px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.dfi-drop.drop-2 {
    width: 20px;
    height: 20px;
    top: 35px;
    left: 40px;
    animation-delay: -0.8s;
}

.dfi-drop.drop-3 {
    width: 18px;
    height: 18px;
    top: 50px;
    left: 25px;
    animation-delay: -1.6s;
}

@keyframes inkDropFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

/* Brush Frame Preview */
.dfi-brush-preview {
    width: 100%;
    height: 100%;
    color: var(--ink-black);
}

.dfi-brush-preview .brush-frame {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawInkFrame 2s ease-out infinite;
}

.df-item:hover .brush-frame {
    animation: drawInkFrame 1s ease-out forwards;
}

@keyframes drawInkFrame {
    to {
        stroke-dashoffset: 0;
    }
}

/* Wave Preview */
.dfi-wave-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dfiw-wave {
    width: 12px;
    height: 12px;
    background: var(--ink-black);
    border-radius: 50%;
    animation: waveFloat 1.5s ease-in-out infinite;
}

.dfiw-wave.wave-1 {
    animation-delay: 0s;
}

.dfiw-wave.wave-2 {
    animation-delay: 0.3s;
}

.dfiw-wave.wave-3 {
    animation-delay: 0.6s;
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Scroll Preview */
.dfi-scroll-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dfis-roll {
    width: 25px;
    height: 60px;
    background: var(--ink-black);
    border-radius: 4px;
    animation: rollFloat 2s ease-in-out infinite;
}

.dfis-roll.roll-1 {
    animation-delay: 0s;
}

.dfis-roll.roll-2 {
    animation-delay: -0.5s;
}

@keyframes rollFloat {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.85);
    }
}

.df-item h4 {
    font-size: 1.25rem;
    color: var(--ink-black);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.df-item p {
    color: var(--ink-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.dfi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dfi-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(26, 26, 46, 0.08);
    color: var(--ink-black);
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================
   Experience Section - Steps
   ============================================ */
.dewatermark-experience-section {
    background: linear-gradient(180deg, var(--ink-white) 0%, #f5f5f7 100%);
}

.dewatermark-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ds-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--ink-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.06);
    border: 1px solid rgba(26, 26, 46, 0.08);
    transition: all 0.3s ease;
}

.ds-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.12);
}

.dss-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--ink-white);
    background: linear-gradient(135deg, var(--ink-black), var(--ink-blue));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.dss-content h4 {
    color: var(--ink-black);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dss-content p {
    color: var(--ink-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.dewatermark-use-section {
    background: linear-gradient(180deg, #f5f5f7 0%, var(--ink-white) 100%);
}

.dewatermark-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.04), rgba(44, 62, 80, 0.04));
    border-radius: 24px;
    border: 2px dashed var(--ink-black);
    margin-top: 2rem;
}

.dwc-visual {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--ink-black);
    animation: pointerBounce 2s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dwc-content p {
    font-size: 1.1rem;
    color: var(--ink-black);
    margin-bottom: 2rem;
}

.dwc-actions {
    display: flex;
    justify-content: center;
}

.dewatermark-btn {
    background: linear-gradient(135deg, var(--ink-black), var(--ink-blue));
    color: var(--ink-white);
    border: none;
}

.dewatermark-btn:hover {
    background: linear-gradient(135deg, #0d0d1a, var(--ink-blue));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.3);
}

/* ============================================
   Ending Section
   ============================================ */
.dewatermark-ending {
    background: linear-gradient(180deg, var(--ink-white) 0%, #f5f5f7 100%);
}

.dewatermark-quote.final {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.06), rgba(44, 62, 80, 0.06));
}

.dewatermark-footer {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 46, 0.1);
}

.dewatermark-meta {
    background: linear-gradient(135deg, #f5f5f7, var(--ink-white));
    border-radius: 16px;
    padding: 2rem;
}

/* ============================================
   Footer Section - Ink Style
   ============================================ */
.dewatermark-footer-section {
    background: linear-gradient(135deg, var(--ink-black) 0%, var(--ink-dark) 50%, var(--ink-blue) 100%);
    color: var(--ink-white);
    position: relative;
    overflow: hidden;
}

.dewatermark-footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ink-white), var(--ink-gray), var(--ink-white));
}

.dewatermark-footer-brand {
    display: flex;
    align-items: flex-start;
}

.dfb-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dfb-logo .footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dfb-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--ink-white), rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dfb-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.dewatermark-footer-section .footer-section h4 {
    color: var(--ink-white);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.dewatermark-footer-section .footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--ink-white);
}

.dewatermark-footer-section .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.dewatermark-footer-section .footer-section a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--ink-white);
}

.dewatermark-footer-section .footer-section a:hover {
    color: var(--ink-white);
    padding-left: 15px;
}

.dewatermark-footer-section .footer-section a:hover::before {
    left: 0;
    opacity: 1;
}

.dewatermark-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.dewatermark-footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.dewatermark-footer-note {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .dewatermark-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dewatermark-title {
        font-size: 3.5rem;
    }
    
    .dewatermark-steps {
        grid-template-columns: 1fr;
    }
    
    .ds-step {
        flex-direction: column;
        text-align: center;
    }
    
    .dwc-actions {
        width: 100%;
    }
    
    .dewatermark-btn {
        width: 100%;
    }
}
