/**
 * 壹手设计工具箱 - 注释样式
 * 支持深色模式
 */

/* ===========================================
   变量定义
   =========================================== */
:root {
    --note-primary: #FF4600;
    --note-bg: #ffffff;
    --note-text: #333333;
    --note-content-text: #555555;
    --note-border-alpha: 0.1;
    --note-shadow-alpha: 0.1;
}

/* 深色模式 - 系统偏好 */
@media (prefers-color-scheme: dark) {
    :root {
        --note-bg: #1e1e1e;
        --note-text: #e0e0e0;
        --note-content-text: #cccccc;
        --note-border-alpha: 0.25;
        --note-shadow-alpha: 0.2;
    }
}

/* 深色模式 - 主题属性 */
html[data-theme="dark"] {
    --note-bg: #1e1e1e;
    --note-text: #e0e0e0;
    --note-content-text: #cccccc;
    --note-border-alpha: 0.25;
    --note-shadow-alpha: 0.2;
}

html.dark {
    --note-bg: #1e1e1e;
    --note-text: #e0e0e0;
    --note-content-text: #cccccc;
    --note-border-alpha: 0.25;
    --note-shadow-alpha: 0.2;
}

/* ===========================================
   注释框样式
   =========================================== */
.iyesbox-note {
    position: relative;
    padding: 25px 30px;
    margin: 25px 0;
    background-color: var(--note-bg);
    background-image: 
        radial-gradient(circle at 4em -25em, var(--note-primary), transparent 30em),
        linear-gradient(var(--note-primary) -2000%, transparent);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 70, 0, var(--note-shadow-alpha));
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--note-text);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 70, 0, var(--note-border-alpha));
}

.iyesbox-note:hover {
    box-shadow: 0 8px 30px rgba(255, 70, 0, calc(var(--note-shadow-alpha) + 0.1));
    transform: translateY(-2px);
}

/* 头部 */
.iyesbox-note-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 70, 0, 0.2);
}

/* 图标 */
.iyesbox-note-icon {
    font-size: 1.3em;
    color: var(--note-primary);
    margin-right: 10px;
}

/* 标题 */
.iyesbox-note-title {
    font-weight: 700;
    color: var(--note-primary);
    font-size: 1.2em;
}

/* 内容 */
.iyesbox-note-content {
    color: var(--note-content-text);
}

.iyesbox-note-content p {
    margin: 0 0 1em 0;
}

.iyesbox-note-content p:last-child {
    margin-bottom: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .iyesbox-note {
        padding: 20px;
    }
    .iyesbox-note-content {
        padding-left: 0;
    }
}
