/* Journal-Style CSS - Handwritten Aesthetic */

/* Journal Paper Background Texture */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Subtle paper texture */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* Handwritten Font Styles */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.handwritten-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    position: relative;
}

/* Journal Card Styles */
.journal-card {
    background: linear-gradient(145deg, #ffffff, #f8f4e8);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.journal-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4a574, #8b6914, #d4a574);
    border-radius: 14px;
    z-index: -1;
}

/* Sticky Tape Effect */
.tape {
    position: relative;
}

.tape::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 25px;
    background: linear-gradient(90deg, 
        rgba(255, 228, 181, 0.8), 
        rgba(255, 239, 213, 0.9),
        rgba(255, 228, 181, 0.8)
    );
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 1px dashed rgba(139, 69, 19, 0.3);
    border-right: 1px dashed rgba(139, 69, 19, 0.3);
}

.tape.left::after {
    left: 20%;
    transform: translateX(-50%) rotate(-3deg);
}

.tape.right::after {
    left: 80%;
    transform: translateX(-50%) rotate(3deg);
}

/* Paperclip Effect */
.paperclip {
    position: absolute;
    top: -8px;
    right: 60px; /* 移动到更右侧，避免遮挡百分比数字 */
    width: 30px;
    height: 50px;
    border: 3px solid #8b6914;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    transform: rotate(10deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5; /* 确保在正确的层级 */
}

.paperclip::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -3px;
    width: 30px;
    height: 20px;
    border: 3px solid #8b6914;
    border-radius: 0 0 15px 15px;
    border-top: none;
}

/* Hand-drawn Borders */
.hand-drawn-border {
    border: 2px dashed #8b6914;
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
}

/* Wavy Underlines */
.wavy-underline {
    position: relative;
    display: inline-block;
}

.wavy-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 4'%3E%3Cpath d='M0,2 Q25,6 50,2 T100,2' stroke='%23FF7F50' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Hand-drawn Circle */
.hand-drawn-circle {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 127, 80, 0.1);
    border: 2px solid #FF7F50;
    border-radius: 25px;
    transform: rotate(-1deg);
}

/* Journal Entry Style */
.journal-entry {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #5D4E37;
    background: linear-gradient(145deg, #ffffff, #faf8f3);
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.journal-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #ff7f50, transparent);
    opacity: 0.3;
}

/* Sticky Note Effect */
.sticky-note {
    background: linear-gradient(145deg, #fff9c4, #fff59d);
    padding: 20px;
    border-radius: 2px;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #5d4037;
    transform: rotate(-0.5deg);
}

.sticky-note::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
}

/* Decorative Elements */
.decoration-dots {
    position: relative;
}

.decoration-dots::before {
    content: '⚫⚫⚫';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.decoration-stars {
    position: relative;
}

.decoration-stars::before {
    content: '⭐✨⭐';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Hand-drawn Arrows */
.hand-drawn-arrow {
    position: relative;
    padding-left: 30px;
}

.hand-drawn-arrow::before {
    content: '➜';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #FF7F50;
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
}

.checklist-item::before {
    content: '☐';
    margin-right: 12px;
    font-size: 1.2rem;
    color: #8b6914;
    flex-shrink: 0;
}

.checklist-item.checked::before {
    content: '☑';
    color: #27ae60;
}

/* Folded Corner Effect */
.folded-corner {
    position: relative;
    background: linear-gradient(135deg, transparent 10px, #ffffff 10px);
}

.folded-corner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #d4a574 transparent transparent;
    box-shadow: -2px 2px 3px rgba(0,0,0,0.1);
}

/* Ink Smudge Effect */
.ink-smudge {
    position: relative;
}

.ink-smudge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1), transparent);
    border-radius: 50%;
    transform: rotate(15deg);
}

/* Button Journal Styles */
.journal-button {
    background: linear-gradient(145deg, #f8f4e8, #e8ddb0);
    border: 2px solid #8b6914;
    border-radius: 25px;
    padding: 12px 24px;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: #5d4037;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.journal-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    background: linear-gradient(145deg, #fff5e1, #e8ddb0);
}

.journal-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(0,0,0,0.1);
}

/* Input Field Journal Styles */
.journal-input {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #8b6914;
    border-radius: 10px;
    padding: 12px;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #5d4037;
    outline: none;
    transition: all 0.3s ease;
}

.journal-input:focus {
    border-color: #FF7F50;
    border-style: solid;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

/* Quote Styles */
.journal-quote {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #8b6914;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    padding: 0 30px;
}

.journal-quote::before,
.journal-quote::after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    color: rgba(139, 105, 20, 0.3);
}

.journal-quote::before {
    top: -20px;
    left: 0;
}

.journal-quote::after {
    bottom: -40px;
    right: 0;
}

/* Highlight Effect */
.journal-highlight {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 235, 59, 0.3) 10%,
        rgba(255, 235, 59, 0.3) 90%,
        transparent 100%
    );
    padding: 2px 8px;
    border-radius: 3px;
}

/* Applied to existing classes */
.content-card,
.testimonial-card,
.value-card,
.step-card {
    background: linear-gradient(145deg, #ffffff, #f8f4e8);
    border: 1px solid rgba(139, 69, 19, 0.15);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.faq-item {
    background: linear-gradient(145deg, #faf8f3, #f0e6d2);
    border: 1px solid rgba(139, 69, 19, 0.1);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #FF7F50, #d4a574);
    border-radius: 2px 0 0 2px;
}

.cta-button {
    background: linear-gradient(145deg, #FF7F50, #ff6b35);
    border: 2px solid #d4a574;
    box-shadow: 
        0 6px 12px rgba(255, 127, 80, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    font-family: 'Caveat', cursive;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Navigation Journal Style */
.nav-container {
    background: linear-gradient(145deg, #faf8f3, #f0e6d2);
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(145deg, rgba(255, 127, 80, 0.2), rgba(255, 107, 53, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}