@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');

.quote-section {
    background: linear-gradient(145deg, #fdf6ee 0%, #f5ebe0 100%);
    border-radius: 16px;
    padding: 22px 28px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(0,0,0,0.04);
    pointer-events: none;
}

.quote-section::after {
    content: '"';
    position: absolute;
    right: 16px;
    top: 4px;
    font-size: 56px;
    line-height: 1;
    color: #d4c5b5;
    opacity: 0.2;
    font-family: Georgia, serif;
    pointer-events: none;
}

.quote-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.quote-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.quote-title {
    font-size: 14px;
    font-weight: 700;
    color: #b0886a;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 3px;
}

.quote-title span {
    font-size: 16px;
}

.quote-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.quote-content {
    font-size: 18px;
    line-height: 1.7;
    color: #5a4a3a;
    text-align: center;
    transition: all var(--transition-slow);
    font-family: 'Noto Serif SC', '楷体', 'STKaiti', Georgia, serif;
    font-weight: 600;
}

.quote-text {
    font-style: italic;
}

.quote-source {
    display: block;
    font-size: 13px;
    color: #b0886a;
    margin-top: 14px;
    font-weight: 500;
    font-family: 'Noto Serif SC', '楷体', 'STKaiti', Georgia, serif;
    text-align: right;
    padding-right: 4px;
}

.quote-content.fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

.quote-content.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quote-hint {
    font-size: 11px;
    color: #c4b5a5;
    margin-top: 6px;
    transition: opacity var(--transition-normal);
    opacity: 1;
}

.quote-hint.hidden {
    opacity: 0;
}

.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
}

.button-card {
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    max-width: 92%;
    margin: 0 auto;
    width: 100%;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-card::after {
    content: '›';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    color: rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
}

.button-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.button-card:hover::after {
    right: 14px;
    color: rgba(0,0,0,0.18);
}

.button-card:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.button-card:focus {
    outline: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.button-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.button-card:hover .button-icon {
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.button-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 16px;
}

.button-text {
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.3;
    transition: all var(--transition-fast);
}

.button-card:hover .button-text {
    transform: translateX(3px);
}

.button-subtext {
    font-size: 12px;
    color: rgba(0,0,0,0.4);
    line-height: 1.4;
    transition: all var(--transition-fast);
}

.button-subtext::before {
    content: '「';
    font-size: 14px;
    color: rgba(0,0,0,0.25);
    font-weight: bold;
    margin-right: 1px;
}

.button-subtext::after {
    content: '」';
    font-size: 14px;
    color: rgba(0,0,0,0.25);
    font-weight: bold;
    margin-left: 1px;
}

.button-card:hover .button-subtext {
    opacity: 0.8;
}

.btn-1-card { 
    background-image: linear-gradient(135deg, #ffd5cc 0%, #ffb0a8 100%); 
}

.btn-2-card { 
    background-image: linear-gradient(135deg, #fff3b0 0%, #ffd966 100%); 
}

.btn-3-card { 
    background-image: linear-gradient(135deg, #d4b8ff 0%, #9b7ef0 100%); 
}

.btn-4-card { 
    background-image: linear-gradient(135deg, #ffe0b3 0%, #ffc27f 100%); 
}

@media (max-width: 480px) {
    .quote-section {
        padding: 22px 20px 18px;
        border-radius: 14px;
    }

    .quote-section::after {
        right: 12px;
        font-size: 42px;
    }

    .quote-title {
        font-size: 14px;
    }

    .quote-title span {
        font-size: 15px;
    }

    .quote-header {
        margin-bottom: 10px;
    }

    .quote-content {
        font-size: 17px;
    }

    .quote-source {
        font-size: 12px;
        margin-top: 10px;
    }

    .quote-hint {
        font-size: 10px;
        margin-top: 4px;
    }

    .buttons-grid {
        gap: 18px;
        margin-top: 22px;
    }

    .button-card {
        padding: 26px 18px;
        border-radius: 12px;
        gap: 14px;
        max-width: 94%;
    }

    .button-card::after {
        right: 12px;
        font-size: 18px;
    }

    .button-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
    }

    .button-text {
        font-size: 15px;
    }

    .button-subtext {
        font-size: 12px;
    }

    .button-subtext::before {
        font-size: 13px;
    }

    .button-subtext::after {
        font-size: 13px;
    }

    .button-info {
        gap: 4px;
        padding-right: 14px;
    }
}

@media (min-width: 768px) {
    .quote-section {
        padding: 28px 40px 26px;
        border-radius: 20px;
    }

    .quote-section::after {
        right: 20px;
        font-size: 72px;
    }

    .quote-title {
        font-size: 16px;
    }

    .quote-content {
        font-size: 22px;
    }

    .quote-source {
        font-size: 14px;
    }

    .button-card {
        padding: 38px 30px;
        gap: 20px;
        border-radius: 16px;
        max-width: 88%;
    }

    .button-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        border-radius: 14px;
    }

    .button-text {
        font-size: 18px;
    }

    .button-subtext {
        font-size: 13px;
    }

    .buttons-grid {
        gap: 24px;
    }
}
