|
| 1 | +* { margin:0; padding:0; box-sizing:border-box; } |
| 2 | +body { |
| 3 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif; |
| 4 | + color: #e5e5e7; |
| 5 | + background-color: #1a1a1e; |
| 6 | + line-height: 1.47059; |
| 7 | + font-weight: 400; |
| 8 | + letter-spacing: -0.022em; |
| 9 | + padding: 0; |
| 10 | + margin: 0; |
| 11 | + min-height: 100vh; |
| 12 | + display: flex; |
| 13 | + flex-direction: column; |
| 14 | + align-items: center; |
| 15 | + position: relative; |
| 16 | + background-attachment: fixed; |
| 17 | + background-size: cover; |
| 18 | + background-position: center; |
| 19 | + background-repeat: no-repeat; |
| 20 | + transition: background-image 0.5s ease-in-out; |
| 21 | +} |
| 22 | +body::before { |
| 23 | + content: ''; |
| 24 | + position: fixed; |
| 25 | + top: 0; |
| 26 | + left: 0; |
| 27 | + width: 100%; |
| 28 | + height: 100%; |
| 29 | + background-color: rgba(0, 0, 0, 0.5); |
| 30 | + backdrop-filter: blur(2px); |
| 31 | + z-index: -1; |
| 32 | + pointer-events: none; |
| 33 | +} |
| 34 | +.apple-blog { |
| 35 | + max-width: 1200px; |
| 36 | + width: 100%; |
| 37 | + padding: 40px 24px 60px; |
| 38 | + position: relative; |
| 39 | + z-index: 1; |
| 40 | +} |
| 41 | +.blog-header { margin-bottom:30px; padding:0 12px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; } |
| 42 | +.blog-header h1 { font-size:36px; font-weight:600; letter-spacing:-0.015em; line-height:1.2; color:#ffffff; margin-right:20px; flex:1 1 auto; text-shadow:0 2px 10px rgba(0,0,0,0.3); } |
| 43 | +.blog-header h1 .thin { font-weight:400; color:rgba(255,255,255,0.8); display:block; font-size:24px; margin-top:4px; } |
| 44 | +.search-wrapper { position:relative; max-width:320px; width:100%; flex-shrink:0; } |
| 45 | +.search-container { display:flex; align-items:center; background-color:rgba(60,60,70,0.3); backdrop-filter:blur(10px); border-radius:50px; padding:8px 18px; border:0.5px solid rgba(255,255,255,0.1); width:100%; transition:box-shadow 0.2s ease, background-color 0.2s ease; } |
| 46 | +.search-container:focus-within { box-shadow:0 0 0 4px rgba(10,132,255,0.3); background-color:rgba(80,80,90,0.4); } |
| 47 | +.search-icon { font-size:20px; color:rgba(255,255,255,0.8); margin-right:12px; cursor:pointer; } |
| 48 | +.search-input { flex:1; border:none; background:transparent; font-size:17px; font-weight:400; color:#ffffff; outline:none; font-family:inherit; min-width:150px; } |
| 49 | +.search-input::placeholder { color:rgba(255,255,255,0.5); } |
| 50 | +.clear-btn { font-size:18px; color:rgba(255,255,255,0.8); cursor:pointer; padding:0 6px; visibility:hidden; } |
| 51 | +.search-container.has-text .clear-btn { visibility:visible; } |
| 52 | +.clear-btn:hover { color:#ffffff; } |
| 53 | +.suggestions { position:absolute; top:100%; left:0; right:0; background:rgba(40,40,45,0.95); backdrop-filter:blur(20px); border-radius:20px; margin-top:8px; padding:8px 0; border:0.5px solid rgba(255,255,255,0.1); max-height:300px; overflow-y:auto; z-index:1000; display:none; box-shadow:0 10px 30px rgba(0,0,0,0.3); } |
| 54 | +.suggestion-item { padding:10px 18px; color:#e5e5e7; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-size:15px; transition:background 0.1s; } |
| 55 | +.suggestion-item:hover, .suggestion-item.selected { background:rgba(255,255,255,0.1); } |
| 56 | +.suggestion-item .suggestion-date { font-size:13px; color:rgba(255,255,255,0.5); margin-left:12px; white-space:nowrap; } |
| 57 | +.suggestion-main { min-width:0; display:flex; flex-direction:column; gap:3px; } |
| 58 | +.suggestion-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } |
| 59 | +.suggestion-excerpt { max-width:420px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:rgba(255,255,255,0.52); } |
| 60 | +.back-link { display:inline-flex; align-items:center; gap:8px; margin-bottom:20px; color:rgba(255,255,255,0.8); text-decoration:none; font-size:17px; background:rgba(60,60,70,0.3); backdrop-filter:blur(10px); padding:8px 18px; border-radius:40px; border:0.5px solid rgba(255,255,255,0.1); transition:background-color 0.2s; } |
| 61 | +.back-link:hover { background:rgba(80,80,90,0.4); } |
| 62 | +.article-layout { display:flex; gap:30px; align-items:flex-start; } |
| 63 | +.main-column { flex:2; min-width:0; } |
| 64 | +.side-column { flex:1; min-width:240px; background:rgba(40,40,45,0.3); backdrop-filter:blur(16px); border-radius:28px; padding:24px 20px; border:0.5px solid rgba(255,255,255,0.1); box-shadow:0 8px 24px rgba(0,0,0,0.2); } |
| 65 | +.article-card { background:rgba(40,40,45,0.4); backdrop-filter:blur(16px); border-radius:36px; padding:40px; border:0.5px solid rgba(255,255,255,0.1); box-shadow:0 20px 40px rgba(0,0,0,0.3); } |
| 66 | +.article-title { font-size:42px; font-weight:600; color:#ffffff; margin-bottom:16px; line-height:1.2; text-shadow:0 2px 10px rgba(0,0,0,0.3); } |
| 67 | +.article-meta { display:flex; gap:16px; font-size:17px; color:rgba(255,255,255,0.6); margin-bottom:30px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.1); } |
| 68 | +/* 文章内容区域 - 自动换行核心样式 */ |
| 69 | +.article-content { |
| 70 | + color: rgba(255,255,255,0.9); |
| 71 | + font-size: 18px; |
| 72 | + line-height: 1.6; |
| 73 | + margin-bottom: 40px; |
| 74 | + word-wrap: break-word; |
| 75 | + overflow-wrap: break-word; |
| 76 | + word-break: break-word; |
| 77 | + white-space: normal; |
| 78 | +} |
| 79 | +.article-content p { |
| 80 | + margin-bottom: 1.2em; |
| 81 | +} |
| 82 | +/* 确保文章内的图片、表格等元素不会溢出 */ |
| 83 | +.article-content img { |
| 84 | + max-width: 100%; |
| 85 | + height: auto; |
| 86 | +} |
| 87 | +.article-content table { |
| 88 | + max-width: 100%; |
| 89 | + overflow-x: auto; |
| 90 | + display: block; |
| 91 | +} |
| 92 | +.article-content pre { |
| 93 | + white-space: pre-wrap; |
| 94 | + word-wrap: break-word; |
| 95 | +} |
| 96 | +.password-overlay { text-align:center; padding:40px; background:rgba(255,255,255,0.1); backdrop-filter:blur(16px); border-radius:36px; margin-bottom:30px; } |
| 97 | +.password-input { background:#3a3a3c; border:1px solid #4a4a4e; color:#e5e5e7; border-radius:30px; padding:12px 20px; font-size:16px; width:min(100%, 300px); margin:12px auto 20px; display:block; } |
| 98 | +.password-btn { background:#0a84ff; color:white; border:none; border-radius:30px; padding:12px 30px; font-size:16px; cursor:pointer; } |
| 99 | +.error-message { color:#ff6b6b; margin-top:10px; } |
| 100 | +.side-title { font-size:20px; font-weight:600; color:#ffffff; margin-bottom:20px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,0.1); } |
| 101 | +.related-list { list-style:none; } |
| 102 | +.related-item { margin-bottom:16px; padding-bottom:12px; border-bottom:0.5px solid rgba(255,255,255,0.1); } |
| 103 | +.related-item:last-child { border-bottom:none; } |
| 104 | +.related-link { display:flex; justify-content:space-between; align-items:center; text-decoration:none; color:rgba(255,255,255,0.9); transition:background-color 0.2s; padding:8px 10px; border-radius:12px; margin:-8px -10px; } |
| 105 | +.related-link:hover { background-color:rgba(255,255,255,0.1); } |
| 106 | +.related-title { font-size:16px; font-weight:450; max-width:70%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } |
| 107 | +.related-date { font-size:14px; color:rgba(255,255,255,0.6); background:rgba(255,255,255,0.1); padding:2px 10px; border-radius:30px; border:0.5px solid rgba(255,255,255,0.2); } |
| 108 | +.no-related { color:rgba(255,255,255,0.5); font-style:italic; text-align:center; padding:20px 0; } |
| 109 | +.nav-buttons { display:flex; justify-content:space-between; margin-top:30px; gap:20px; } |
| 110 | +.nav-button { background:rgba(60,60,70,0.3); backdrop-filter:blur(10px); border:0.5px solid rgba(255,255,255,0.1); color:white; padding:12px 24px; border-radius:40px; text-decoration:none; font-size:16px; transition:background 0.2s; flex:1; text-align:center; min-width:120px; } |
| 111 | +.nav-button:hover:not(.disabled) { background:rgba(80,80,90,0.4); } |
| 112 | +.nav-button.disabled { opacity:0.3; pointer-events:none; background:rgba(40,40,45,0.2); } |
| 113 | +@media (max-width:800px) { .article-layout { flex-direction:column; } .main-column, .side-column { width:100%; } .side-column { margin-top:30px; } } |
| 114 | +@media (max-width:600px) { .article-card { padding:30px 20px; } .article-title { font-size:32px; } } |
0 commit comments