/* 晒太阳记录页面专属样式 */

.container-fluid {
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 50%, #FFD93D 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    color: #E67300;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-back {
    text-decoration: none;
    color: #E67300;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border-radius: 50px;
    border: 2px solid #FF8C00;
}

.btn-back:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

.sun-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.left-panel,
.right-panel {
    /* 与页面其它卡片布局保持一致：纵向排列并保持间距 */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sun-main-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sun-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.2);
    transition: all 0.3s;
}

.sun-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(255, 184, 0, 0.25);
}

.sun-card h2, .sun-card h3 {
    margin-top: 0;
    color: #E67300;
    border-bottom: 3px solid #FFD93D;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.2rem;
}

.progress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    min-height: auto;
}

.progress-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 25px;
}

svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

circle {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
}

circle.bg {
    stroke: #FFF9E6;
}

circle.bar {
    stroke: #FF8C00;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

#currentDuration {
    font-size: 3rem;
    font-weight: 800;
    color: #E67300;
    display: block;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-text small {
    color: #FF8C00;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-tip {
    font-weight: 600;
    color: #E67300;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #FFD93D;
    margin-top: 10px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-quick {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border: 2px solid #FFD93D;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.05rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #E67300;
    font-weight: 600;
}

.btn-quick:hover {
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    color: #E67300;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.35);
    border-color: #FF8C00;
}

.btn-custom {
    background: white;
    color: #E67300;
    border: 2px dashed #FF8C00;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    border-style: solid;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.35);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    padding: 18px 12px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 2px solid #FFD93D;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-container {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #FFD93D;
    min-height: 280px;
}

.chart-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: #E67300;
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 220px;
    gap: 10px;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(to top, #FFD93D, #FFB74D);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.chart-bar.reached {
    background: linear-gradient(to top, #FFB74D, #FF8C00);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
}

.chart-bar.today {
    background: linear-gradient(to top, #FF8C00, #FF6B00);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
    border: 2px solid #FF6B00;
}

.chart-bar:hover {
    transform: scaleY(1.08);
    transform-origin: bottom;
    filter: brightness(1.1);
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #E67300;
    white-space: nowrap;
    background: white;
    padding: 3px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.chart-label {
    font-size: 0.75rem;
    color: #E67300;
    font-weight: 600;
}

.chart-label.today {
    color: #FF8C00;
    font-weight: 800;
}

.chart-label.today-label {
    color: #FF6B00;
    font-weight: 800;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    padding: 2px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.chart-label.today {
    color: #E67300;
    font-weight: 800;
}

.logs-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

.log-date-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    padding: 8px 16px;
    border-radius: 50px;
    margin: 18px 0 12px 0;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #E67300;
}

.log-date-header:first-child {
    margin-top: 0;
}

.log-item {
    display: grid;
    grid-template-columns: 80px 100px 1fr 80px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 184, 0, 0.15);
    transition: all 0.2s;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
}

.log-item:hover {
    background: #FFF9E6;
    transform: translateX(5px);
}

.log-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.log-type {
    font-weight: 700;
    color: #E67300;
    font-size: 1rem;
}

.log-duration {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    padding-right: 20px;
}

.log-note {
    grid-column: 2 / 5;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: normal;
    padding: 10px;
    background: #FFF9E6;
    border-radius: 10px;
}

.log-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-edit-small {
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    color: #E67300;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #FF8E8E 0%, #FF6B6B 100%);
    color: white;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 50px 20px;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 107, 107, 0.2) 100%);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    margin: 12% auto;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(255, 140, 0, 0.3);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    color: #E67300;
    border-bottom: 3px solid #FFD93D;
    padding-bottom: 12px;
    font-weight: 800;
    font-size: 1.3rem;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #E67300;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s;
    background: #FFF9E6;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

.modal-btns {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-save {
    background: linear-gradient(135deg, #FFD93D 0%, #FF8C00 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 140, 0, 0.5);
}

.btn-cancel {
    background: #f0f0f0;
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    color: #E67300;
    border: 2px solid #FFD93D;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
}

.toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    display: none;
    z-index: 2000;
    font-weight: 600;
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.4);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 25px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 1000px) {
    .sun-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .log-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .log-duration {
        text-align: left;
        padding-right: 0;
    }

    .log-note {
        grid-column: 1 / 2;
    }

    .log-actions {
        justify-content: flex-start;
    }
}
