3ChatAI commited on
Commit
c3b1469
·
verified ·
1 Parent(s): d8f2599

Create styles.css

Browse files
Files changed (1) hide show
  1. styles.css +122 -0
styles.css ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --bg: #080d19;
3
+ --surface: rgba(18, 27, 46, 0.78);
4
+ --surface-strong: #111a2d;
5
+ --text: #f4f7ff;
6
+ --muted: #9aa8c2;
7
+ --line: rgba(154, 168, 194, 0.2);
8
+ --brand: #69a4ff;
9
+ --brand-strong: #4b7ff3;
10
+ --cyan: #7ae6dc;
11
+ --max: 1080px;
12
+ }
13
+
14
+ * { box-sizing: border-box; }
15
+ html { scroll-behavior: smooth; }
16
+ body {
17
+ margin: 0;
18
+ min-width: 320px;
19
+ background:
20
+ radial-gradient(circle at 90% 4%, rgba(75, 127, 243, 0.24), transparent 32rem),
21
+ radial-gradient(circle at 6% 30%, rgba(122, 230, 220, 0.1), transparent 28rem),
22
+ var(--bg);
23
+ color: var(--text);
24
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
25
+ font-size: 16px;
26
+ line-height: 1.65;
27
+ }
28
+
29
+ a { color: inherit; text-decoration: none; }
30
+ a:hover { text-decoration: none; }
31
+ button { font: inherit; }
32
+
33
+ .site-header {
34
+ position: sticky;
35
+ top: 0;
36
+ z-index: 10;
37
+ border-bottom: 1px solid var(--line);
38
+ background: rgba(8, 13, 25, 0.82);
39
+ backdrop-filter: blur(18px);
40
+ }
41
+ .nav {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-between;
45
+ max-width: var(--max);
46
+ min-height: 72px;
47
+ margin: auto;
48
+ padding: 0 24px;
49
+ }
50
+ .logo-link { display: inline-flex; align-items: center; gap: 12px; }
51
+ .logo-link img { width: 108px; height: auto; max-height: 38px; object-fit: contain; }
52
+ .logo-fallback { display: none; font-weight: 800; letter-spacing: -0.03em; }
53
+ .nav-links { display: flex; align-items: center; gap: 8px; }
54
+ .nav-links a { padding: 8px 12px; color: var(--muted); font-size: 14px; font-weight: 650; }
55
+ .nav-links a:hover { color: var(--text); }
56
+ .nav-button { display: none; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; }
57
+
58
+ .hero, .blog-shell { max-width: var(--max); margin: auto; padding-left: 24px; padding-right: 24px; }
59
+ .hero { padding-top: 92px; padding-bottom: 64px; }
60
+ .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
61
+ .eyebrow::before { width: 24px; height: 2px; background: var(--cyan); content: ""; }
62
+ h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -.035em; }
63
+ h1 { max-width: 760px; margin-top: 18px; font-size: clamp(2.6rem, 7vw, 5.7rem); }
64
+ .hero-copy { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: 1.1rem; }
65
+ .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
66
+ .button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 720; }
67
+ .button:hover { border-color: rgba(105, 164, 255, .8); background: rgba(105, 164, 255, .1); }
68
+ .button.primary { border-color: var(--brand); background: var(--brand); color: #061126; }
69
+ .button.primary:hover { background: #8ebcff; }
70
+
71
+ .blog-shell { padding-bottom: 76px; }
72
+ .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
73
+ .section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
74
+ .count { color: var(--muted); font-size: 14px; }
75
+ .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
76
+ .filter-button { padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; background: rgba(18, 27, 46, .72); color: var(--muted); cursor: pointer; }
77
+ .filter-button:hover, .filter-button.is-active { border-color: rgba(105, 164, 255, .56); background: rgba(75, 127, 243, .2); color: var(--text); }
78
+ .post-list { display: grid; gap: 16px; }
79
+ .post-card { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 60px rgba(0,0,0,.12); transition: border-color .18s ease, transform .18s ease; }
80
+ .post-card:hover { border-color: rgba(105, 164, 255, .58); transform: translateY(-2px); }
81
+ .post-image { display: block; min-height: 174px; overflow: hidden; border-radius: 12px; background: #18233c; }
82
+ .post-image img { display: block; width: 100%; height: 100%; min-height: 174px; object-fit: cover; transition: transform .3s ease; }
83
+ .post-card:hover .post-image img { transform: scale(1.035); }
84
+ .post-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 4px 4px 3px 0; }
85
+ .post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
86
+ .tag { padding: 4px 9px; border-radius: 6px; background: rgba(122, 230, 220, .12); color: var(--cyan); font-weight: 750; }
87
+ .post-content h2 { margin: 14px 0 10px; font-size: clamp(1.22rem, 2vw, 1.7rem); }
88
+ .post-content h2 a:hover { color: var(--brand); }
89
+ .post-content p { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; }
90
+ .read-link { margin-top: 18px; color: var(--brand); font-size: 14px; font-weight: 780; }
91
+ .read-link:hover { color: #a9caff; }
92
+ .read-link span { margin-left: 3px; }
93
+
94
+ .manage-note { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-top: 44px; padding: 22px 24px; border: 1px solid rgba(122, 230, 220, .22); border-radius: 16px; background: linear-gradient(100deg, rgba(122, 230, 220, .08), rgba(105, 164, 255, .08)); }
95
+ .manage-note h3 { font-size: 1rem; }
96
+ .manage-note p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
97
+ .manage-note code { padding: 2px 5px; border-radius: 5px; background: rgba(0,0,0,.26); color: #d7f4ef; }
98
+ .footer { max-width: var(--max); margin: 0 auto; padding: 25px 24px 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
99
+
100
+ @media (max-width: 760px) {
101
+ .nav { min-height: 64px; padding: 0 16px; }
102
+ .logo-link img { width: 96px; }
103
+ .nav-button { display: inline-flex; width: 38px; height: 36px; align-items: center; justify-content: center; font-size: 18px; }
104
+ .nav-links { display: none; position: absolute; top: 64px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); box-shadow: 0 20px 45px rgba(0,0,0,.35); }
105
+ .nav-links[data-open="true"] { display: flex; }
106
+ .nav-links a { padding: 10px 12px; }
107
+ .hero { padding-top: 64px; padding-bottom: 48px; }
108
+ .post-card { grid-template-columns: 1fr; gap: 16px; }
109
+ .post-image, .post-image img { min-height: 205px; }
110
+ .manage-note { grid-template-columns: 1fr; }
111
+ }
112
+
113
+ @media (max-width: 430px) {
114
+ h1 { font-size: 2.5rem; }
115
+ .hero, .blog-shell { padding-left: 16px; padding-right: 16px; }
116
+ .footer { padding-left: 16px; padding-right: 16px; }
117
+ }
118
+
119
+ @media (prefers-reduced-motion: reduce) {
120
+ *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
121
+ }
122
+