diff --git a/src/views/Community/components/CompactSearchBox.js b/src/views/Community/components/CompactSearchBox.js
index 34fec201..d9d68654 100644
--- a/src/views/Community/components/CompactSearchBox.js
+++ b/src/views/Community/components/CompactSearchBox.js
@@ -421,9 +421,16 @@ const CompactSearchBox = ({
};
return (
-
+
{/* 单行紧凑布局 */}
-
+
{/* 搜索框 */}
}
- size="small"
+ prefix={}
+ style={{
+ borderRadius: '8px',
+ border: '2px solid #e6f7ff',
+ boxShadow: '0 2px 8px rgba(24, 144, 255, 0.1)'
+ }}
/>
@@ -478,9 +488,11 @@ const CompactSearchBox = ({
expandTrigger="hover"
displayRender={(labels) => labels[labels.length - 1] || '行业'}
disabled={industryLoading}
- style={{ width: 100 }}
- size="small"
- suffixIcon={}
+ style={{
+ width: 120,
+ borderRadius: '8px'
+ }}
+ suffixIcon={}
/>
@@ -490,8 +502,10 @@ const CompactSearchBox = ({
mode="multiple"
value={importance}
onChange={handleImportanceChange}
- style={{ width: 100 }}
- size="small"
+ style={{
+ width: 120,
+ borderRadius: '8px'
+ }}
placeholder="重要性"
maxTagCount={0}
maxTagPlaceholder={(omittedValues) => `已选 ${omittedValues.length} 项`}
@@ -508,15 +522,17 @@ const CompactSearchBox = ({
}
+ style={{
+ width: 130,
+ borderRadius: '8px'
+ }}
+ suffixIcon={}
>
-
-
-
-
-
+
+
+
+
+
@@ -525,9 +541,12 @@ const CompactSearchBox = ({
}
onClick={handleReset}
- size="small"
danger
- type="text"
+ type="primary"
+ style={{
+ borderRadius: '8px',
+ boxShadow: '0 2px 8px rgba(255, 77, 79, 0.2)'
+ }}
>
重置
diff --git a/src/views/Community/components/HeroPanel.js b/src/views/Community/components/HeroPanel.js
index a466e050..2cece40d 100644
--- a/src/views/Community/components/HeroPanel.js
+++ b/src/views/Community/components/HeroPanel.js
@@ -469,18 +469,18 @@ const ConceptFlowAnimation = () => {
// 根据涨跌幅计算字体大小(涨跌幅越大,字体越大)
const getFontSize = (changePct) => {
const absChange = Math.abs(changePct);
- if (absChange >= 10) return 'md'; // 超大涨跌
- if (absChange >= 7) return 'sm'; // 大涨跌
- if (absChange >= 5) return 'sm'; // 中涨跌
- if (absChange >= 3) return 'xs'; // 小涨跌
- return 'xs'; // 微涨跌
+ if (absChange >= 10) return 'xl'; // 超大涨跌 - 20px
+ if (absChange >= 7) return 'lg'; // 大涨跌 - 18px
+ if (absChange >= 5) return 'md'; // 中涨跌 - 16px
+ if (absChange >= 3) return 'md'; // 小涨跌 - 16px
+ return 'sm'; // 微涨跌 - 14px
};
return (
{rows.map((row, rowIndex) => {
- // 每行不同的速度:第一行25秒,第二行30秒,第三行35秒
- const duration = 25 + rowIndex * 5;
+ // 每行不同的速度:第一行50秒,第二行60秒,第三行70秒(更慢)
+ const duration = 50 + rowIndex * 10;
return (
{
const isHovered = hoveredConcept === `${rowIndex}-${idx}`;
const fontSize = getFontSize(changePct);
- const borderWidth = fontSize === 'md' ? '3px' : '2px';
+ const isLargeFontSize = fontSize === 'xl' || fontSize === 'lg';
return (
{
setIsPaused(true);
setHoveredConcept(`${rowIndex}-${idx}`);
@@ -543,14 +533,23 @@ const ConceptFlowAnimation = () => {
}}
onClick={() => handleConceptClick(concept.name)}
_hover={{
- transform: 'scale(1.15)',
- bg: 'whiteAlpha.300',
- boxShadow: `0 0 25px ${color}80`,
+ transform: 'scale(1.2)',
zIndex: 100
}}
>
{/* 概念名称 */}
-
+
{concept.name}
@@ -814,21 +813,8 @@ const HeroPanel = () => {