        .highlight {
            background-color: #fef3c7;
            padding: 0 2px;
            font-weight: 500;
        }
        
        .dhamma-text {
            transition: opacity 0.3s ease;
        }
        
        .type-filter.active {
            background-color: #8d5a2a !important;
            border-color: #8d5a2a !important;
            color: white !important;
        }
        
        /* Material Design 3 样式 */
        .md3-container {
            background: linear-gradient(135deg, #fdfbf7 0%, #f9f5f0 100%);
            border-radius: 28px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px rgba(141, 90, 42, 0.08);
        }
        
        .md3-search-field {
            background-color: #f5ebe0;
            border: 1px solid transparent;
            border-radius: 28px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .md3-search-field:hover {
            background-color: #f0e6db;
            box-shadow: 0 2px 4px rgba(141, 90, 42, 0.1);
        }
        
        .md3-search-field:focus {
            background-color: #fff;
            border-color: #8d5a2a;
            box-shadow: 0 2px 8px rgba(141, 90, 42, 0.15);
            outline: none;
        }
        
        .md3-fab {
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 8px rgba(141, 90, 42, 0.2);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .md3-fab:hover {
            box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 8px 16px rgba(141, 90, 42, 0.25);
            transform: translateY(-1px);
        }
        
        .md3-fab:active {
            transform: translateY(0);
        }
        
        .md3-outlined-button {
            border: 1px solid #8d5a2a;
            border-radius: 20px;
            background-color: transparent;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .md3-outlined-button:hover {
            background-color: rgba(141, 90, 42, 0.08);
        }
        
        .md3-chip {
            border-radius: 8px;
            background-color: #f5ebe0;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .md3-chip:hover {
            background-color: #f0e6db;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        .md3-surface {
            background-color: #fefefe;
            border-radius: 16px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }
        
        .md3-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
        }
        
        @keyframes fadeInOut {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
            15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
        }
        
        /* 主题切换按钮 */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            width: 56px;
            height: 56px;
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(141, 90, 42, 0.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
        }
        
        .theme-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(141, 90, 42, 0.25);
            border-color: rgba(141, 90, 42, 0.4);
        }
        
        .theme-toggle i {
            font-size: 24px;
            color: #8d5a2a;
            transition: all 0.3s ease;
        }
        
        /* 暗色主题样式 */
        body.dark-theme {
            background-color: #1a1a1a;
            color: #e0e0e0;
        }
        
        body.dark-theme .theme-toggle {
            background: rgba(30, 30, 30, 0.95);
            border-color: rgba(166, 124, 82, 0.3);
        }
        
        body.dark-theme .theme-toggle i {
            color: #d4a574;
        }
        
        body.dark-theme header {
            background: linear-gradient(135deg, #2d1810 0%, #3d2415 100%);
        }
        
        body.dark-theme .md3-container {
            background: linear-gradient(135deg, #252525 0%, #2a2a2a 100%);
            box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
        }
        
        body.dark-theme .md3-search-field {
            background-color: #333;
            color: #e0e0e0;
            border-color: rgba(166, 124, 82, 0.2);
        }
        
        body.dark-theme .md3-search-field::placeholder {
            color: #888;
        }
        
        body.dark-theme .md3-search-field:hover {
            background-color: #3a3a3a;
        }
        
        body.dark-theme .md3-search-field:focus {
            background-color: #2a2a2a;
            border-color: #a67c52;
        }
        
        body.dark-theme .md3-chip {
            background-color: #333;
            color: #d0d0d0;
        }
        
        body.dark-theme .md3-chip:hover {
            background-color: #3a3a3a;
        }
        
        body.dark-theme .md3-surface {
            background-color: #2a2a2a;
            color: #e0e0e0;
        }
        
        body.dark-theme #dhamma-display {
            color: #e8e8e8;
        }
        
        body.dark-theme #dhamma-display > div > div:last-child {
            color: #d8d8d8;
        }
        
        body.dark-theme .md3-fab {
            background-color: #2a2a2a;
            color: #d4a574;
            border-color: rgba(166, 124, 82, 0.3);
        }
        
        body.dark-theme .md3-fab:hover {
            background-color: #333;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 8px 16px rgba(0, 0, 0, 0.4);
        }
        
        body.dark-theme .md3-outlined-button {
            border-color: #a67c52;
            color: #d4a574;
        }
        
        body.dark-theme .md3-outlined-button:hover {
            background-color: rgba(166, 124, 82, 0.15);
        }
        
        body.dark-theme #latest-dhamma {
            background: linear-gradient(135deg, #3a2816 0%, #442d1a 100%);
            border-color: #a67c52;
        }
        
        body.dark-theme #latest-dhamma-text {
            color: #e8d5c0;
        }
        
        body.dark-theme .highlight {
            background-color: #5a4a2a;
            color: #ffd966;
        }
        
        body.dark-theme .md3-divider {
            background: linear-gradient(90deg, transparent, #444 20%, #444 80%, transparent);
        }
        
        body.dark-theme section h2 {
            color: #d4a574;
        }
        
        body.dark-theme .bg-white {
            background-color: #2a2a2a !important;
        }
        
        body.dark-theme .text-gray-900 {
            color: #e8e8e8 !important;
        }
        
        body.dark-theme .text-gray-700 {
            color: #c0c0c0 !important;
        }
        
        body.dark-theme .text-gray-600 {
            color: #a0a0a0 !important;
        }
        
        body.dark-theme .text-gray-500 {
            color: #888 !important;
        }
        
        body.dark-theme .text-gray-400 {
            color: #666 !important;
        }
        
        body.dark-theme .border-gray-200 {
            border-color: rgba(166, 124, 82, 0.2) !important;
        }
        
        body.dark-theme .border-gray-100 {
            border-color: rgba(166, 124, 82, 0.15) !important;
        }
        
        body.dark-theme .shadow-md {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
        }
        
        body.dark-theme .hover\:shadow-xl:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3) !important;
        }
        
        body.dark-theme .hover\:shadow-lg:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
        }
        
        body.dark-theme .text-dharma-brown {
            color: #d4a574 !important;
        }
        
        body.dark-theme .group:hover .group-hover\:text-dharma-light {
            color: #e8c9a8 !important;
        }
        
        body.dark-theme .hover\:border-dharma-brown:hover {
            border-color: #d4a574 !important;
        }
        
        body.dark-theme footer {
            background-color: #1f1f1f;
            border-top-color: #333;
            color: #a0a0a0;
        }
        
        body.dark-theme #search-info {
            background-color: #2a3a4a;
            border-color: #3a4a5a;
            color: #c0d0e0;
        }
        
        /* 紧凑模式样式 */
        body.compact-mode .article-card,
        body.compact-mode .book-card,
        body.compact-mode .link-card {
            padding: 1rem !important;
        }
        
        body.compact-mode .article-card .icon-wrapper,
        body.compact-mode .book-card .icon-wrapper {
            width: 2.5rem !important;
            height: 2.5rem !important;
        }
        
        body.compact-mode .article-card .icon-wrapper i,
        body.compact-mode .book-card .icon-wrapper i {
            font-size: 1.25rem !important;
        }
        
        body.compact-mode .article-card h3,
        body.compact-mode .book-card h3,
        body.compact-mode .link-card h3 {
            font-size: 0.95rem !important;
            margin-bottom: 0.25rem !important;
        }
        
        body.compact-mode .article-card p,
        body.compact-mode .book-card p {
            font-size: 0.8rem !important;
            margin-bottom: 0.25rem !important;
        }
        
        body.compact-mode .article-card .tag-wrapper,
        body.compact-mode .book-card .book-actions {
            margin-top: 0.5rem !important;
            padding-top: 0.5rem !important;
        }
        
        body.compact-mode .book-card .book-actions a {
            padding: 0.4rem 0.8rem !important;
            font-size: 0.75rem !important;
        }
        
        body.compact-mode .link-card h3 {
            font-size: 0.95rem !important;
        }
        
        body.compact-mode .link-card .type-badge {
            padding: 0.25rem 0.5rem !important;
            font-size: 0.7rem !important;
        }
        
        body.compact-mode .link-card .url-display {
            font-size: 0.7rem !important;
            padding-top: 0.5rem !important;
        }
        
        body.compact-mode .link-card > div:first-child > div {
            width: 2rem !important;
            height: 2rem !important;
        }
        
        body.compact-mode .link-card > div:first-child > div i {
            font-size: 0.9rem !important;
        }
        
        /* 视图模式切换按钮 */
        .view-toggle {
            position: fixed;
            top: 90px;
            right: 20px;
            z-index: 1000;
            width: 56px;
            height: 56px;
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(141, 90, 42, 0.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            display: none;;
        }
        
        .view-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(141, 90, 42, 0.25);
            border-color: rgba(141, 90, 42, 0.4);
        }
        
        .view-toggle i {
            font-size: 24px;
            color: #8d5a2a;
            transition: all 0.3s ease;
        }
        
        body.dark-theme .view-toggle {
            background: rgba(30, 30, 30, 0.95);
            border-color: rgba(166, 124, 82, 0.3);
        }
        
        body.dark-theme .view-toggle i {
            color: #d4a574;
        }
        
        /* 留言板按钮 */
        .message-board-toggle {
            position: fixed;
            bottom: 30px;
            right: 20px;
            z-index: 1000;
            width: 60px;
            height: 60px;
            border-radius: 30px;
            background: linear-gradient(135deg, #8d5a2a 0%, #a67c52 100%);
            box-shadow: 0 6px 20px rgba(141, 90, 42, 0.4);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .message-board-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 24px rgba(141, 90, 42, 0.5);
        }
        
        .message-board-toggle i {
            font-size: 26px;
            color: white;
            transition: all 0.3s ease;
        }
        
        body.dark-theme .message-board-toggle {
            background: linear-gradient(135deg, #a67c52 0%, #d4a574 100%);
        }
        
        /* 留言板弹窗 */
        .message-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            backdrop-filter: blur(4px);
            animation: fadeIn 0.3s ease;
        }
        
        .message-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .message-modal-content {
            background: white;
            border-radius: 28px;
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        
        body.dark-theme .message-modal-content {
            background: #2a2a2a;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(30px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .message-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        body.dark-theme .message-header {
            border-bottom-color: #404040;
        }
        
        .message-body {
            padding: 2rem;
            overflow-y: auto;
            flex: 1;
        }
        
        .message-item {
            background: #f9fafb;
            border-radius: 16px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            border-left: 4px solid #8d5a2a;
            transition: all 0.3s ease;
        }
        
        .message-item:hover {
            background: #f3f4f6;
            transform: translateX(4px);
        }
        
        body.dark-theme .message-item {
            background: #1f1f1f;
            border-left-color: #d4a574;
        }
        
        body.dark-theme .message-item:hover {
            background: #252525;
        }
        
        .message-form {
            padding: 2rem;
            border-top: 1px solid #e5e7eb;
        }
        
        body.dark-theme .message-form {
            border-top-color: #404040;
        }
        
        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background: white;
        }
        
        .form-input:focus {
            outline: none;
            border-color: #8d5a2a;
            box-shadow: 0 0 0 3px rgba(141, 90, 42, 0.1);
        }
        
        body.dark-theme .form-input {
            background: #1f1f1f;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        body.dark-theme .form-input:focus {
            border-color: #d4a574;
            box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
        }
        
        textarea.form-input {
            resize: vertical;
            min-height: 100px;
        }
        
        .submit-btn {
            width: 100%;
            padding: 0.875rem 1.5rem;
            background: linear-gradient(135deg, #8d5a2a 0%, #a67c52 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(141, 90, 42, 0.3);
        }
        
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .close-modal-btn {
            width: 36px;
            height: 36px;
            border-radius: 18px;
            background: #f3f4f6;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .close-modal-btn:hover {
            background: #e5e7eb;
            transform: rotate(90deg);
        }
        
        body.dark-theme .close-modal-btn {
            background: #404040;
            color: #e0e0e0;
        }
        
        body.dark-theme .close-modal-btn:hover {
            background: #4a4a4a;
        }
        
        .tab-buttons {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .tab-btn {
            flex: 1;
            padding: 0.75rem 1rem;
            border: 2px solid #e5e7eb;
            background: white;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            color: #6b7280;
        }
        
        .tab-btn.active {
            background: #8d5a2a;
            border-color: #8d5a2a;
            color: white;
        }
        
        body.dark-theme .tab-btn {
            background: #1f1f1f;
            border-color: #404040;
            color: #9ca3af;
        }
        
        body.dark-theme .tab-btn.active {
            background: #d4a574;
            border-color: #d4a574;
            color: #1f1f1f;
        }
        
        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: #9ca3af;
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }