huyuanxiang 2 weeks ago
parent 2fcaf79934
commit 8a11b346d1

52
.gitignore vendored

@ -1,13 +1,41 @@
# ---> AL
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
*.app
.snapshots/*
# Build and Release Folders
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/
wp-admin/
wp-includes/
html-temp/
wp-content/languages/
wp-content/mu-plugins/
wp-content/plugins/
wp-content/uploads/
wp-content/themes/backup
wp-content/cache
.idea
.agent
.claude
.codex
.cursor
.gemini
.github
.idea
.kiro
.roo
.shared
.vscode
# Other files and folders
.settings/
# Executables
*.swf
*.air
*.ipa
*.apk
.idea
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.

@ -0,0 +1,25 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
# ???BEGIN WordPress????END WordPress???????????§µ???
# ????????????? WordPress ??????????
# ?¦Ê¦Æ?????????????????????????
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

@ -1,3 +0,0 @@
# official-website-china
国内官网

@ -0,0 +1,83 @@
<?php
/**
* WordPress站点URL修复脚本
* 用于在数据库迁移后更新站点URL配置
*/
// 加载WordPress环境
require_once __DIR__ . '/wp-load.php';
// 获取当前配置的本地URL
$local_url = 'http://localhost:83';
echo "=== WordPress站点URL修复工具 ===\n\n";
// 1. 获取当前数据库中的siteurl和home值
$current_siteurl = get_option('siteurl');
$current_home = get_option('home');
echo "当前数据库中的配置:\n";
echo "siteurl: " . $current_siteurl . "\n";
echo "home: " . $current_home . "\n\n";
// 2. 更新为本地URL
echo "正在更新为本地URL: " . $local_url . "\n\n";
update_option('siteurl', $local_url);
update_option('home', $local_url);
// 3. 验证更新结果
$new_siteurl = get_option('siteurl');
$new_home = get_option('home');
echo "更新后的配置:\n";
echo "siteurl: " . $new_siteurl . "\n";
echo "home: " . $new_home . "\n\n";
// 4. 清除缓存
if (function_exists('wp_cache_flush')) {
wp_cache_flush();
echo "缓存已清除\n\n";
}
// 5. 检查是否需要修复其他URL
echo "检查是否需要修复其他URL...\n";
// 修复文章内容中的URL可选
global $wpdb;
$old_url = $current_siteurl;
$count = $wpdb->query(
$wpdb->prepare(
"UPDATE {$wpdb->posts}
SET post_content = REPLACE(post_content, %s, %s)",
$old_url,
$local_url
)
);
if ($count > 0) {
echo "已修复 {$count} 篇文章中的URL链接\n\n";
} else {
echo "文章内容URL无需修复\n\n";
}
// 6. 修复选项表中的其他URL
$options_to_fix = [
'upload_path',
'upload_url_path',
'widget_text',
'sidebars_widgets',
];
foreach ($options_to_fix as $option_name) {
$option_value = get_option($option_name);
if ($option_value && is_string($option_value) && strpos($option_value, $old_url) !== false) {
$new_value = str_replace($old_url, $local_url, $option_value);
update_option($option_name, $new_value);
echo "已修复选项: {$option_name}\n";
}
}
echo "\n=== 修复完成! ===\n";
echo "现在可以访问: http://localhost:83/wp-admin\n";
echo "请使用原有的管理员账号登录\n";

@ -0,0 +1,17 @@
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';

@ -0,0 +1,384 @@
WordPress - Web publishing software
Copyright 2011-2025 by the contributors
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
This program incorporates work covered by the following copyright and
permission notices:
b2 is (c) 2001, 2002 Michel Valdrighi - Cafelog
Wherever third party code has been used, credit has been given in the code's
comments.
b2 is released under the GPL
and
WordPress - Web publishing software
Copyright 2003-2010 by the contributors
WordPress is released under the GPL
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
WRITTEN OFFER
The source code for any program binaries or compressed scripts that are
included with WordPress can be freely obtained at the following URL:
https://wordpress.org/download/source/

@ -0,0 +1,98 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title>WordPress &#8250; ReadMe</title>
<link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" type="text/css" />
</head>
<body>
<h1 id="logo">
<a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
</h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p>
<h2>First Things First</h2>
<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I am proud to be a part of. Thousands of hours have gone into WordPress, and we are dedicated to making it better every day. Thank you for making it part of your world.</p>
<p style="text-align: right">&#8212; Matt Mullenweg</p>
<h2>Installation: Famous 5-minute install</h2>
<ol>
<li>Unzip the package in an empty directory and upload everything.</li>
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
<ol>
<li>If for some reason this does not work, do not worry. It may not work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
<li>Save the file as <code>wp-config.php</code> and upload it.</li>
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li>
</ol>
</li>
<li>Once the configuration file is set up, the installer will set up the tables needed for your site. If there is an error, double check your <code>wp-config.php</code> file, and try again. If it fails again, please go to the <a href="https://wordpress.org/support/forums/">WordPress support forums</a> with as much data as you can gather.</li>
<li><strong>If you did not enter a password, note the password given to you.</strong> If you did not provide a username, it will be <code>admin</code>.</li>
<li>The installer should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on &#8220;Profile&#8221; to change the password.</li>
</ol>
<h2>Updating</h2>
<h3>Using the Automatic Updater</h3>
<ol>
<li>Open <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
<li>You wanted more, perhaps? That&#8217;s it!</li>
</ol>
<h3>Updating Manually</h3>
<ol>
<li>Before you update anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</li>
<li>Delete your old WordPress files, saving ones you&#8217;ve modified.</li>
<li>Upload the new files.</li>
<li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
</ol>
<h2>Migrating from other systems</h2>
<p>WordPress can <a href="https://developer.wordpress.org/advanced-administration/wordpress/import/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
<h2>System Requirements</h2>
<ul>
<li><a href="https://www.php.net/">PHP</a> version <strong>7.2.24</strong> or greater.</li>
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.5.5</strong> or greater.</li>
</ul>
<h3>Recommendations</h3>
<ul>
<li><a href="https://www.php.net/">PHP</a> version <strong>8.3</strong> or greater.</li>
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.0</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.6</strong> or greater.</li>
<li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
<li><a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a> support.</li>
<li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>
</ul>
<h2>Online Resources</h2>
<p>If you have any questions that are not addressed in this document, please take advantage of WordPress&#8217; numerous online resources:</p>
<dl>
<dt><a href="https://wordpress.org/documentation/">HelpHub</a></dt>
<dd>HelpHub is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
<dt><a href="https://wordpress.org/news/">The WordPress Blog</a></dt>
<dd>This is where you&#8217;ll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.</dd>
<dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt>
<dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
<dd>If you&#8217;ve looked everywhere and still cannot find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
</dl>
<h2>Final Notes</h2>
<ul>
<li>If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the <a href="https://wordpress.org/support/forums/">Support Forums</a>.</li>
<li>WordPress has a robust plugin <abbr>API</abbr> (Application Programming Interface) that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="https://developer.wordpress.org/plugins/">Plugin Developer Handbook</a>. You shouldn&#8217;t modify any of the core code.</li>
</ul>
<h2>Share the Love</h2>
<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better&#8212;you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgeable than yourself, or writing the author of a media article that overlooks us.</p>
<p>WordPress is the official continuation of b2/caf&#233;log, which came from Michel V. The work has been continued by the <a href="https://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="https://wordpress.org/donate/">donating</a>.</p>
<h2>License</h2>
<p>WordPress is free software, and is released under the terms of the <abbr>GPL</abbr> (GNU General Public License) version 2 or (at your option) any later version. See <a href="license.txt">license.txt</a>.</p>
</body>
</html>

@ -0,0 +1,214 @@
<?php
/**
* Confirms that the activation key that is sent in an email after a user signs
* up for a new site matches the key for that user and then displays confirmation.
*
* @package WordPress
*/
define( 'WP_INSTALLING', true );
/** Sets up the WordPress Environment. */
require __DIR__ . '/wp-load.php';
require __DIR__ . '/wp-blog-header.php';
if ( ! is_multisite() ) {
wp_redirect( wp_registration_url() );
die();
}
$valid_error_codes = array( 'already_active', 'blog_taken' );
list( $activate_path ) = explode( '?', wp_unslash( $_SERVER['REQUEST_URI'] ) );
$activate_cookie = 'wp-activate-' . COOKIEHASH;
$key = '';
$result = null;
if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST['key'] ) {
wp_die( __( 'A key value mismatch has been detected. Please follow the link provided in your activation email.' ), __( 'An error occurred during the activation' ), 400 );
} elseif ( ! empty( $_GET['key'] ) ) {
$key = sanitize_text_field( $_GET['key'] );
} elseif ( ! empty( $_POST['key'] ) ) {
$key = sanitize_text_field( $_POST['key'] );
}
if ( $key ) {
$redirect_url = remove_query_arg( 'key' );
if ( remove_query_arg( false ) !== $redirect_url ) {
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
wp_safe_redirect( $redirect_url );
exit;
} else {
$result = wpmu_activate_signup( $key );
}
}
if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) {
$key = $_COOKIE[ $activate_cookie ];
$result = wpmu_activate_signup( $key );
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
}
if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
status_header( 404 );
} elseif ( is_wp_error( $result ) ) {
$error_code = $result->get_error_code();
if ( ! in_array( $error_code, $valid_error_codes, true ) ) {
status_header( 400 );
}
}
nocache_headers();
// Fix for page title.
$wp_query->is_404 = false;
/**
* Fires before the Site Activation page is loaded.
*
* @since 3.0.0
*/
do_action( 'activate_header' );
/**
* Adds an action hook specific to this page.
*
* Fires on {@see 'wp_head'}.
*
* @since MU (3.0.0)
*/
function do_activate_header() {
/**
* Fires within the `<head>` section of the Site Activation page.
*
* Fires on the {@see 'wp_head'} action.
*
* @since 3.0.0
*/
do_action( 'activate_wp_head' );
}
add_action( 'wp_head', 'do_activate_header' );
/**
* Loads styles specific to this page.
*
* @since MU (3.0.0)
*/
function wpmu_activate_stylesheet() {
?>
<style type="text/css">
.wp-activate-container { width: 90%; margin: 0 auto; }
.wp-activate-container form { margin-top: 2em; }
#submit, #key { width: 100%; font-size: 24px; box-sizing: border-box; }
#language { margin-top: 0.5em; }
.wp-activate-container .error { background: #f66; color: #333; }
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
</style>
<?php
}
add_action( 'wp_head', 'wpmu_activate_stylesheet' );
add_action( 'wp_head', 'wp_strict_cross_origin_referrer' );
add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
get_header( 'wp-activate' );
$blog_details = get_site();
?>
<div id="signup-content" class="widecolumn">
<div class="wp-activate-container">
<?php if ( ! $key ) { ?>
<h2><?php _e( 'Activation Key Required' ); ?></h2>
<form name="activateform" id="activateform" method="post" action="<?php echo esc_url( network_site_url( $blog_details->path . 'wp-activate.php' ) ); ?>">
<p>
<label for="key"><?php _e( 'Activation Key:' ); ?></label>
<br /><input type="text" name="key" id="key" value="" size="50" autofocus="autofocus" />
</p>
<p class="submit">
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e( 'Activate' ); ?>" />
</p>
</form>
<?php
} else {
if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes, true ) ) {
$signup = $result->get_error_data();
?>
<h2><?php _e( 'Your account is now active!' ); ?></h2>
<?php
echo '<p class="lead-in">';
if ( '' === $signup->domain . $signup->path ) {
printf(
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
esc_url( network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ),
esc_html( $signup->user_login ),
esc_html( $signup->user_email ),
esc_url( wp_lostpassword_url() )
);
} else {
printf(
/* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */
__( 'Your site at %1$s is active. You may now log in to your site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
sprintf( '<a href="http://%1$s">%1$s</a>', esc_url( $signup->domain . $blog_details->path ) ),
esc_html( $signup->user_login ),
esc_html( $signup->user_email ),
esc_url( wp_lostpassword_url() )
);
}
echo '</p>';
} elseif ( null === $result || is_wp_error( $result ) ) {
?>
<h2><?php _e( 'An error occurred during the activation' ); ?></h2>
<?php if ( is_wp_error( $result ) ) : ?>
<p><?php echo esc_html( $result->get_error_message() ); ?></p>
<?php endif; ?>
<?php
} else {
$url = isset( $result['blog_id'] ) ? esc_url( get_home_url( (int) $result['blog_id'] ) ) : '';
$user = get_userdata( (int) $result['user_id'] );
?>
<h2><?php _e( 'Your account is now active!' ); ?></h2>
<div id="signup-welcome">
<p><span class="h3"><?php _e( 'Username:' ); ?></span> <?php echo esc_html( $user->user_login ); ?></p>
<p><span class="h3"><?php _e( 'Password:' ); ?></span> <?php echo esc_html( $result['password'] ); ?></p>
</div>
<?php
if ( $url && network_home_url( '', 'http' ) !== $url ) :
switch_to_blog( (int) $result['blog_id'] );
$login_url = wp_login_url();
restore_current_blog();
?>
<p class="view">
<?php
/* translators: 1: Site URL, 2: Login URL. */
printf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), esc_url( $url ), esc_url( $login_url ) );
?>
</p>
<?php else : ?>
<p class="view">
<?php
printf(
/* translators: 1: Login URL, 2: Network home URL. */
__( 'Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ),
esc_url( network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ),
esc_url( network_home_url( $blog_details->path ) )
);
?>
</p>
<?php
endif;
}
}
?>
</div>
</div>
<?php
get_footer( 'wp-activate' );

@ -0,0 +1,21 @@
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}

@ -0,0 +1,81 @@
<?php
/**
* Handles Comment Post to WordPress and prevents duplicate comment posting.
*
* @package WordPress
*/
if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
$protocol = $_SERVER['SERVER_PROTOCOL'];
if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) {
$protocol = 'HTTP/1.0';
}
header( 'Allow: POST' );
header( "$protocol 405 Method Not Allowed" );
header( 'Content-Type: text/plain' );
exit;
}
/** Sets up the WordPress Environment. */
require __DIR__ . '/wp-load.php';
nocache_headers();
$comment = wp_handle_comment_submission( wp_unslash( $_POST ) );
if ( is_wp_error( $comment ) ) {
$data = (int) $comment->get_error_data();
if ( ! empty( $data ) ) {
wp_die(
'<p>' . $comment->get_error_message() . '</p>',
__( 'Comment Submission Failure' ),
array(
'response' => $data,
'back_link' => true,
)
);
} else {
exit;
}
}
$user = wp_get_current_user();
$cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) );
/**
* Fires after comment cookies are set.
*
* @since 3.4.0
* @since 4.9.6 The `$cookies_consent` parameter was added.
*
* @param WP_Comment $comment Comment object.
* @param WP_User $user Comment author's user object. The user may not exist.
* @param bool $cookies_consent Comment author's consent to store cookies.
*/
do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );
$location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID;
// If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message.
if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
$location = add_query_arg(
array(
'unapproved' => $comment->comment_ID,
'moderation-hash' => wp_hash( $comment->comment_date_gmt ),
),
$location
);
}
/**
* Filters the location URI to send the commenter after posting.
*
* @since 2.0.5
*
* @param string $location The 'redirect_to' URI sent via $_POST.
* @param WP_Comment $comment Comment object.
*/
$location = apply_filters( 'comment_post_redirect', $location, $comment );
wp_safe_redirect( $location );
exit;

@ -0,0 +1,102 @@
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the website, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
*
* @package WordPress
*/
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** Database username */
define( 'DB_USER', 'username_here' );
/** Database password */
define( 'DB_PASSWORD', 'password_here' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
/**#@+
* Authentication unique keys and salts.
*
* Change these to different unique phrases! You can generate these using
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
*
* You can change these at any point in time to invalidate all existing cookies.
* This will force all users to have to log in again.
*
* @since 2.6.0
*/
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
/**#@-*/
/**
* WordPress database table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*
* At the installation time, database tables are created with the specified prefix.
* Changing this value after WordPress is installed will make your site think
* it has not been installed.
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
*/
define( 'WP_DEBUG', false );
/* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';

@ -0,0 +1,104 @@
<?php
define( 'WP_CACHE', false ); // Added by WP Rocket
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the website, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
*
* @package WordPress
*/
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'cn_nenghui_com' );
/** Database username */
define( 'DB_USER', 'root' );
/** Database password */
define( 'DB_PASSWORD', 'root123' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
/**#@+
* Authentication unique keys and salts.
*
* Change these to different unique phrases! You can generate these using
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
*
* You can change these at any point in time to invalidate all existing cookies.
* This will force all users to have to log in again.
*
* @since 2.6.0
*/
define( 'AUTH_KEY', 'T fitiW3;t E6Vn55$>t6FsEOH4-8VT<m*n3&MA!Z1hCR).X5VSB9ceQ7T 1Nv<S' );
define( 'SECURE_AUTH_KEY', '_^6~{A(Q:4H:(Aj QTWu*Us&fNQ!%n{bvd*T?DfeE(U+,Zoe^^9 rkxkLs6xldHB' );
define( 'LOGGED_IN_KEY', 'GM{a.vQro,at.PT~Ga{>GkQ7eAYiT}GZWhGYd(B/cI5~?QgR^f`K3J;R5^c!zJ`*' );
define( 'NONCE_KEY', 'UHC|nl_yRHgr^rF<iCAEwjHUt|CIiTchi+0p5^K-Tf%+,H),g-@; *brC>,QGy9w' );
define( 'AUTH_SALT', 'li_Q|]:qK/DQ:_i1CvO?l+7gxk9;Qft^u {vYKdw1KL_f8U.6Ts=j4S1E 8-`mom' );
define( 'SECURE_AUTH_SALT', 's7Q<,OePI0]+b(o4AsK+*YQBq%jmr9UG@C_3?jnTe>$YZ|W;L#q8&QF/u]UEP8OX' );
define( 'LOGGED_IN_SALT', '(^i/>/;1Ba`RsubtFO_5W57Gb^oOb`K?$> lhEa^x}y3LtS9{3Kcb !jA;Q#!fgE' );
define( 'NONCE_SALT', 's:caA~$(m(YDThlW2=Lr=nBUIb.@$G,Qx@yLyL;.!L}F@M?O9Op60|>oqU:y`ZUY' );
/**#@-*/
/**
* WordPress database table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*
* At the installation time, database tables are created with the specified prefix.
* Changing this value after WordPress is installed will make your site think
* it has not been installed.
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
*/
define( 'WP_DEBUG', true );
/* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';

@ -0,0 +1,2 @@
<?php
// Silence is golden.

@ -0,0 +1,5 @@
<?php
// 404页面
?>
<?php get_header();?>
<?php get_footer();?>

@ -0,0 +1,318 @@
<?php
/*
* Template Name: 分类模板
*/
?>
<?php get_header() ?>
<!-- 新闻搜索功能模块 -->
<div class="news-search-section">
<div class="search-container">
<div class="search-header">
<h2 class="search-title">新闻资讯</h2>
</div>
<div class="search-form-wrapper">
<?php
$form_action = home_url('/');
if (is_page()) {
$form_action = get_permalink(get_queried_object_id());
} elseif (is_category()) {
$form_action = get_category_link(get_queried_object_id());
}
?>
<form class="news-search-form" method="get" action="<?php echo esc_url($form_action); ?>">
<div class="search-controls">
<!-- 分类选择下拉菜单 -->
<div class="category-selector">
<?php
$current_cat = isset($_GET['category']) ? $_GET['category'] : '';
if (empty($current_cat) && is_category()) {
$current_cat = get_queried_object()->slug;
}
?>
<select name="category" id="news-category" class="category-dropdown">
<option value="" data-url="<?php echo esc_url(home_url('/category/news-center/')); ?>" <?php selected(empty($current_cat) || $current_cat === 'news-center', true); ?>>显示全部</option>
<?php
$categories = get_categories(array(
'hide_empty' => false,
'orderby' => 'name',
'order' => 'ASC'
));
foreach ($categories as $category) {
if ($category->slug === 'news-center') continue;
$cat_link = get_category_link($category->term_id);
echo '<option value="' . esc_attr($category->slug) . '" data-url="' . esc_url($cat_link) . '" ' . selected($current_cat, $category->slug, false) . '>' . esc_html($category->name) . '</option>';
}
?>
</select>
</div>
<!-- 搜索输入框 -->
<div class="search-input-wrapper">
<input type="text" name="search_keyword" id="news-search" class="search-input"
placeholder="关键词"
value="<?php echo isset($_GET['search_keyword']) ? esc_attr($_GET['search_keyword']) : ''; ?>"
autocomplete="off">
<div class="search-suggestions" id="search-suggestions"></div>
</div>
<!-- 搜索按钮 -->
<button type="submit" class="search-button">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M19 19L13 13M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
<input type="hidden" name="post_type" value="post">
</form>
</div>
</div>
</div>
<!-- 文章展示组件 -->
<div class="article-display-wrapper">
<div class="article-content">
<?php
// 获取随机的一篇文章(带缓存)
$cache_key = 'archive_random_post_' . (function_exists('get_theme_cache_version') ? get_theme_cache_version() : '');
$random_posts = get_transient($cache_key);
if ($random_posts === false) {
$random_query = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' => 1,
'post_status' => 'publish',
'orderby' => 'rand'
));
if ($random_query->have_posts()) {
$random_posts = $random_query->posts;
// 随机文章缓存5分钟避免频繁查询
set_transient($cache_key, $random_posts, 300);
} else {
$random_posts = array();
}
}
if (!empty($random_posts)) :
global $post;
foreach ($random_posts as $post) :
setup_postdata($post);
// 获取文章特色图片
$featured_image = get_the_post_thumbnail_url(get_the_ID(), 'large');
if (!$featured_image) {
$featured_image = get_template_directory_uri() . '/assets/images/default-post.jpg';
}
// 获取文章摘要
$excerpt = get_the_excerpt();
if (empty($excerpt)) {
$excerpt = wp_trim_words(get_the_content(), 30, '...');
}
?>
<div class="article-item">
<div class="left-column">
<a href="<?php echo esc_url(get_permalink()); ?>" class="image-link">
<img src="<?php echo esc_url($featured_image); ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
</a>
</div>
<div class="right-column">
<div class="content-top">
<a href="<?php echo esc_url(get_permalink()); ?>" class="title-link">
<h2 class="article-title"><?php echo esc_html(get_the_title()); ?></h2>
</a>
<p class="article-description">
<?php echo esc_html($excerpt); ?>
</p>
<a href="<?php echo esc_url(get_permalink()); ?>" class="view-more-link">查看更多</a>
</div>
</div>
</div>
<?php
endforeach;
wp_reset_postdata();
else :
?>
<div class="article-item">
<div class="left-column">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/default-post.jpg" alt="暂无文章">
</div>
<div class="right-column">
<div class="content-top">
<h2 class="article-title">暂无文章</h2>
<p class="article-description">
目前还没有发布任何文章,请稍后再来查看。
</p>
<a href="<?php echo esc_url(home_url('/')); ?>" class="view-more-link">返回首页</a>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!-- 文章列表板块 -->
<div class="article-list-section">
<div class="container">
<div class="article-list-wrapper">
<?php
// 获取当前页码(用于分页,兼容页面模板)
$paged = get_query_var('paged') ? get_query_var('paged') : (get_query_var('page') ? get_query_var('page') : 1);
// 获取文章列表(支持数字分页)
$args = array(
'post_type' => 'post',
'posts_per_page' => 5,
'post_status' => 'publish',
'orderby' => 'date',
'order' => 'DESC',
'paged' => $paged
);
// 如果是分类归档页面,添加分类筛选
if (is_category()) {
$args['cat'] = get_query_var('cat');
}
// 处理分类筛选URL参数优先
if (isset($_GET['category']) && !empty($_GET['category'])) {
$args['category_name'] = sanitize_text_field($_GET['category']);
// 修复:如果有明确的分类筛选参数,且该参数与当前归档分类不同,则移除归档分类限制
// 这样可以避免 "在分类A下搜索分类B" 导致的结果为空(除非文章同时属于两个分类)
if (isset($args['cat'])) {
unset($args['cat']);
}
}
// 处理关键词搜索
if (isset($_GET['search_keyword']) && !empty($_GET['search_keyword'])) {
$args['s'] = sanitize_text_field($_GET['search_keyword']);
}
$articles_query = new WP_Query($args);
if ($articles_query->have_posts()) :
while ($articles_query->have_posts()) : $articles_query->the_post();
// 获取文章特色图片
$featured_image = get_the_post_thumbnail_url(get_the_ID(), 'medium');
if (!$featured_image) {
$featured_image = get_template_directory_uri() . '/assets/images/default-post.jpg';
}
// 获取文章摘要
$excerpt = get_the_excerpt();
if (empty($excerpt)) {
$excerpt = wp_trim_words(get_the_content(), 20, '...');
}
// 获取发布时间
$post_date = get_the_date('Y-m-d');
?>
<div class="article-list-item">
<div class="article-image">
<a href="<?php echo esc_url(get_permalink()); ?>">
<img src="<?php echo esc_url($featured_image); ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
</a>
</div>
<div class="article-content">
<div class="article-meta">
<span class="article-date"><?php echo esc_html($post_date); ?></span>
</div>
<h3 class="article-title">
<a href="<?php echo esc_url(get_permalink()); ?>"><?php echo esc_html(get_the_title()); ?></a>
</h3>
<p class="article-excerpt"><?php echo esc_html($excerpt); ?></p>
<div class="article-actions">
<a href="<?php echo esc_url(get_permalink()); ?>" class="read-more-btn">
<span class="btn-circle"></span>
</a>
</div>
</div>
</div>
<?php
endwhile;
wp_reset_postdata();
// 数字分页 - 修复静态首页模式下的分页URL问题
$total_pages = $articles_query->max_num_pages;
if ($total_pages > 1) {
echo '<nav class="pagination">';
$big = 999999999; // 需要一个不太可能碰撞的整数
// 获取当前页面URLarchive.php的URL
global $wp;
$current_url = home_url($wp->request);
// 如果是根目录访问archive.php需要特殊处理
if (empty($wp->request) || $wp->request === '/') {
// 为archive页面创建专门的URL结构
$base_url = home_url('/news'); // 使用/news作为归档页面的基础URL
$format = '/page/%#%/';
} else {
$base_url = $current_url;
$format = '/page/%#%/';
}
// 检查是否使用了永久链接
if (get_option('permalink_structure')) {
$base = str_replace($big, '%#%', esc_url(get_pagenum_link($big)));
// 确保base URL不会与首页冲突
if (strpos($base, home_url('/page/')) === 0) {
$base = home_url('/news/page/%#%/');
}
} else {
$base = add_query_arg('paged', '%#%', $base_url);
$format = '';
}
// 获取当前查询参数
$current_query = $_GET;
unset($current_query['paged']); // 移除paged参数避免重复
echo paginate_links(array(
'base' => $base,
'format' => $format,
'current' => max(1, $paged),
'total' => $articles_query->max_num_pages,
'prev_text' => '&laquo; 上一页',
'next_text' => '下一页 &raquo;',
'add_args' => $current_query,
'add_fragment' => false,
));
echo '</nav>';
}
?>
<?php else : ?>
<div class="no-articles">
<p>暂无文章发布</p>
</div>
<?php endif; ?>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var categorySelect = document.getElementById('news-category');
var searchForm = document.querySelector('.news-search-form');
var searchInput = document.getElementById('news-search');
if (categorySelect && searchForm) {
categorySelect.addEventListener('change', function() {
var keyword = searchInput ? searchInput.value.trim() : '';
var selectedOption = this.options[this.selectedIndex];
// 如果没有关键词,直接跳转到分类页
if (!keyword && selectedOption && selectedOption.dataset.url) {
window.location.href = selectedOption.dataset.url;
} else {
// 如果有关键词或者没有分类url比如"显示全部"且没配置url则提交表单
searchForm.submit();
}
});
}
});
</script>
<?php get_footer() ?>

@ -0,0 +1,187 @@
/* 关于页面特色区块样式 */
.about-features-section {
position: relative;
padding: 50px 0;
background-image: url('../images/about-features.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
height: 60vh;
display: flex;
align-items: center;
justify-content: center;
}
.about-features-container {
position: relative;
z-index: 2;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
}
/* 主标题样式 */
.about-features-header {
margin-bottom: 60px;
}
.about-features-title {
font-size: 36px;
font-weight: 700;
color: #ffffff;
margin: 0;
line-height: 1.3;
}
/* 统计数据容器 */
.about-features-stats {
display: flex;
justify-content: space-between;
align-items: center;
gap: 40px;
flex-wrap: wrap;
}
/* 单个统计项 */
.about-features-stat-item {
flex: 1;
min-width: 200px;
padding: 30px 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.about-features-stat-item:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* 统计数字 */
.about-stat-number {
font-size: 48px !important;
font-weight: 800 !important;
color: #ffffff !important;
margin-bottom: 10px !important;
line-height: 1 !important;
opacity: 0 !important;
transform: translateY(20px) !important;
transition: all 0.3s ease !important;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
/* 计数动画关键帧 */
@keyframes countUp {
0% {
opacity: 0 !important;
transform: translateY(20px) !important;
}
50% {
opacity: 1 !important;
transform: translateY(0) !important;
}
100% {
opacity: 1 !important;
transform: translateY(0) !important;
}
}
/* 数字计数动画触发类 */
.about-stat-number.animate {
opacity: 1 !important;
transform: translateY(0) !important;
animation: countUp 2s ease-out forwards !important;
}
/* 为每个统计项添加不同的延迟 */
.about-features-stat-item:nth-child(1) .about-stat-number.animate {
animation-delay: 0.2s !important;
}
.about-features-stat-item:nth-child(2) .about-stat-number.animate {
animation-delay: 0.4s !important;
}
.about-features-stat-item:nth-child(3) .about-stat-number.animate {
animation-delay: 0.6s !important;
}
.about-features-stat-item:nth-child(4) .about-stat-number.animate {
animation-delay: 0.8s !important;
}
/* 统计标签 */
.about-stat-label {
font-size: 16px;
color: #ffffff;
opacity: 0.9;
line-height: 1.4;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
/* 平板设备适配 */
@media (max-width: 768px) {
.about-features-section {
padding: 60px 0;
background-attachment: scroll;
}
.about-features-title {
font-size: 28px;
}
.about-features-stats {
flex-direction: column;
gap: 20px;
}
.about-features-stat-item {
min-width: auto;
width: 100%;
padding: 25px 15px;
}
.about-stat-number {
font-size: 36px;
}
.about-stat-label {
font-size: 14px;
}
}
/* 手机设备适配 */
@media (max-width: 480px) {
.about-features-section {
padding: 40px 0;
}
.about-features-container {
padding: 0 15px;
}
.about-features-header {
margin-bottom: 40px;
}
.about-features-title {
font-size: 24px;
}
.about-features-stat-item {
padding: 20px 15px;
}
.about-stat-number {
font-size: 32px;
}
.about-stat-label {
font-size: 13px;
}
}

@ -0,0 +1,160 @@
/**
* Banner
*
*/
.about-banner {
position: relative;
width: 100%;
height: 500px;
background-image: url('../images/nenghui-core-bg.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Banner内容容器 */
.about-banner-content {
position: relative;
z-index: 2;
text-align: center;
color: white;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding-top: 8rem;
overflow: hidden;
}
/* 主标题 */
.about-banner-title {
font-size: 48px;
font-weight: 700;
margin: 0 0 20px 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
letter-spacing: 2px;
line-height: 1.2;
}
/* 副标题 */
.about-banner-subtitle {
font-size: 20px;
font-weight: 400;
margin: 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
opacity: 0.9;
line-height: 1.4;
}
/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
.about-banner {
height: 400px;
}
.about-banner-title {
font-size: 40px;
margin-bottom: 15px;
}
.about-banner-subtitle {
font-size: 18px;
}
}
/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
.about-banner {
height: 350px;
}
.about-banner-content {
padding: 0 15px;
}
.about-banner-title {
font-size: 32px;
margin-bottom: 12px;
letter-spacing: 1px;
}
.about-banner-subtitle {
font-size: 16px;
}
}
/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
.about-banner {
height: 300px;
}
.about-banner-title {
font-size: 28px;
margin-bottom: 10px;
}
.about-banner-subtitle {
font-size: 14px;
}
}
/* 大屏设备优化 */
@media (min-width: 1400px) {
.about-banner {
height: 650px;
}
.about-banner-title {
font-size: 56px;
margin-bottom: 25px;
}
.about-banner-subtitle {
font-size: 24px;
}
}
/* 高对比度模式支持 */
@media (prefers-contrast: high) {
.about-banner-title {
color: #ffffff;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.about-banner-subtitle {
color: #f0f0f0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
}
/* 减少动画效果 */
@media (prefers-reduced-motion: reduce) {
.about-banner {
background-attachment: scroll;
}
}
/* 打印样式 */
@media print {
.about-banner {
background: none;
color: #000;
page-break-inside: avoid;
}
.about-banner-title,
.about-banner-subtitle {
color: #000;
text-shadow: none;
}
}

@ -0,0 +1,160 @@
/**
* Banner
*
*/
.about-banner {
position: relative;
width: 100%;
height: 500px;
background-image: url('../images/kechuxu-bg.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Banner内容容器 */
.about-banner-content {
position: relative;
z-index: 2;
text-align: center;
color: white;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding-top: 8rem;
overflow: hidden;
}
/* 主标题 */
.about-banner-title {
font-size: 48px;
font-weight: 700;
margin: 0 0 20px 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
letter-spacing: 2px;
line-height: 1.2;
}
/* 副标题 */
.about-banner-subtitle {
font-size: 20px;
font-weight: 400;
margin: 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
opacity: 0.9;
line-height: 1.4;
}
/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
.about-banner {
height: 400px;
}
.about-banner-title {
font-size: 40px;
margin-bottom: 15px;
}
.about-banner-subtitle {
font-size: 18px;
}
}
/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
.about-banner {
height: 350px;
}
.about-banner-content {
padding: 0 15px;
}
.about-banner-title {
font-size: 32px;
margin-bottom: 12px;
letter-spacing: 1px;
}
.about-banner-subtitle {
font-size: 16px;
}
}
/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
.about-banner {
height: 300px;
}
.about-banner-title {
font-size: 28px;
margin-bottom: 10px;
}
.about-banner-subtitle {
font-size: 14px;
}
}
/* 大屏设备优化 */
@media (min-width: 1400px) {
.about-banner {
height: 650px;
}
.about-banner-title {
font-size: 56px;
margin-bottom: 25px;
}
.about-banner-subtitle {
font-size: 24px;
}
}
/* 高对比度模式支持 */
@media (prefers-contrast: high) {
.about-banner-title {
color: #ffffff;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.about-banner-subtitle {
color: #f0f0f0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
}
/* 减少动画效果 */
@media (prefers-reduced-motion: reduce) {
.about-banner {
background-attachment: scroll;
}
}
/* 打印样式 */
@media print {
.about-banner {
background: none;
color: #000;
page-break-inside: avoid;
}
.about-banner-title,
.about-banner-subtitle {
color: #000;
text-shadow: none;
}
}

@ -0,0 +1,289 @@
/**
* Banner
*
*/
.about-banner {
position: relative;
width: 100%;
height: 500px;
background-image: url('../images/about-nenghui-banner.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Banner内容容器 */
.about-banner-content {
position: relative;
z-index: 2;
text-align: center;
color: white;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding-top: 8rem;
overflow: hidden;
}
/* 主标题 */
.about-banner-title {
font-size: 48px;
font-weight: 700;
margin: 0 0 20px 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
letter-spacing: 2px;
line-height: 1.2;
}
/* 副标题 */
.about-banner-subtitle {
font-size: 20px;
font-weight: 400;
margin: 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
opacity: 0.9;
line-height: 1.4;
}
/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
.about-banner {
height: 400px;
}
.about-banner-title {
font-size: 40px;
margin-bottom: 15px;
}
.about-banner-subtitle {
font-size: 18px;
}
}
/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
.about-banner {
height: 350px;
}
.about-banner-content {
padding: 0 15px;
}
.about-banner-title {
font-size: 32px;
margin-bottom: 12px;
letter-spacing: 1px;
}
.about-banner-subtitle {
font-size: 16px;
}
}
/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
.about-banner {
height: 300px;
}
.about-banner-title {
font-size: 28px;
margin-bottom: 10px;
}
.about-banner-subtitle {
font-size: 14px;
}
}
/* 大屏设备优化 */
@media (min-width: 1400px) {
.about-banner {
height: 650px;
}
.about-banner-title {
font-size: 56px;
margin-bottom: 25px;
}
.about-banner-subtitle {
font-size: 24px;
}
}
/* 高对比度模式支持 */
@media (prefers-contrast: high) {
.about-banner-title {
color: #ffffff;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.about-banner-subtitle {
color: #f0f0f0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
}
/* 减少动画效果 */
@media (prefers-reduced-motion: reduce) {
.about-banner {
background-attachment: scroll;
}
}
/* 打印样式 */
@media print {
.about-banner {
background: none;
color: #000;
page-break-inside: avoid;
}
.about-banner-title,
.about-banner-subtitle {
color: #000;
text-shadow: none;
}
}
/* 关于页面主要内容区域样式 */
.about-content {
padding: 80px 0;
background-color: #ffffff;
}
.about-main-section {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
gap: 60px;
}
.about-text-content {
flex: 1;
max-width: 600px;
}
.about-main-title {
font-size: 23px;
font-weight: 700;
color: #1a1a1a;
line-height: 1.4;
margin-bottom: 30px;
letter-spacing: -0.5px;
}
.about-description {
color: #666666;
line-height: 1.8;
font-size: 14px;
}
.about-description p {
margin-bottom: 20px;
text-align: justify;
}
.about-description p:last-child {
margin-bottom: 0;
}
.about-image-content {
flex: 1;
max-width: 500px;
}
.about-main-image {
width: 150%;
height: auto;
}
/* 平板设备适配 */
@media (max-width: 1024px) {
.about-main-section {
gap: 40px;
padding: 0 30px;
}
.about-main-title {
font-size: 28px;
}
.about-description {
font-size: 15px;
}
}
/* 手机设备适配 */
@media (max-width: 768px) {
.about-content {
padding: 60px 0;
}
.about-main-section {
flex-direction: column;
gap: 40px;
padding: 0 20px;
}
.about-text-content {
max-width: 100%;
order: 2;
}
.about-image-content {
max-width: 100%;
order: 1;
}
.about-main-image {
width: 100%;
}
.about-main-title {
font-size: 24px;
text-align: center;
margin-bottom: 25px;
}
.about-description {
font-size: 14px;
line-height: 1.7;
}
}
/* 小屏手机适配 */
@media (max-width: 480px) {
.about-content {
padding: 40px 0;
}
.about-main-section {
gap: 30px;
padding: 0 15px;
}
.about-main-title {
font-size: 20px;
margin-bottom: 20px;
}
.about-description p {
margin-bottom: 15px;
}
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,456 @@
/**
*
* CSS
*/
/* 基础动画类 */
.animate {
animation-duration: 1s;
animation-fill-mode: both;
}
.animate-fast {
animation-duration: 0.5s;
}
.animate-slow {
animation-duration: 2s;
}
/* 淡入淡出动画 */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.fade-in {
animation-name: fadeIn;
}
.fade-out {
animation-name: fadeOut;
}
/* 滑动动画 */
@keyframes slideInUp {
from {
transform: translate3d(0, 100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
}
@keyframes slideInDown {
from {
transform: translate3d(0, -100%, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
}
@keyframes slideInLeft {
from {
transform: translate3d(-100%, 0, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
}
@keyframes slideInRight {
from {
transform: translate3d(100%, 0, 0);
visibility: visible;
}
to {
transform: translate3d(0, 0, 0);
}
}
.slide-in-up {
animation-name: slideInUp;
}
.slide-in-down {
animation-name: slideInDown;
}
.slide-in-left {
animation-name: slideInLeft;
}
.slide-in-right {
animation-name: slideInRight;
}
/* 缩放动画 */
@keyframes zoomIn {
from {
opacity: 0;
transform: scale3d(0.3, 0.3, 0.3);
}
50% {
opacity: 1;
}
}
@keyframes zoomOut {
from {
opacity: 1;
}
50% {
opacity: 0;
transform: scale3d(0.3, 0.3, 0.3);
}
to {
opacity: 0;
}
}
.zoom-in {
animation-name: zoomIn;
}
.zoom-out {
animation-name: zoomOut;
}
/* 旋转动画 */
@keyframes rotateIn {
from {
transform-origin: center;
transform: rotate3d(0, 0, 1, -200deg);
opacity: 0;
}
to {
transform-origin: center;
transform: translate3d(0, 0, 0);
opacity: 1;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.rotate-in {
animation-name: rotateIn;
}
.spin {
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
/* 弹跳动画 */
@keyframes bounce {
from,
20%,
53%,
80%,
to {
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
transform: translate3d(0, 0, 0);
}
40%,
43% {
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transform: translate3d(0, -30px, 0);
}
70% {
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transform: translate3d(0, -15px, 0);
}
90% {
transform: translate3d(0, -4px, 0);
}
}
.bounce {
animation-name: bounce;
transform-origin: center bottom;
}
/* 脉冲动画 */
@keyframes pulse {
from {
transform: scale3d(1, 1, 1);
}
50% {
transform: scale3d(1.05, 1.05, 1.05);
}
to {
transform: scale3d(1, 1, 1);
}
}
.pulse {
animation-name: pulse;
animation-iteration-count: infinite;
}
/* 摇摆动画 */
@keyframes shake {
from,
to {
transform: translate3d(0, 0, 0);
}
10%,
30%,
50%,
70%,
90% {
transform: translate3d(-10px, 0, 0);
}
20%,
40%,
60%,
80% {
transform: translate3d(10px, 0, 0);
}
}
.shake {
animation-name: shake;
}
/* 翻转动画 */
@keyframes flipInX {
from {
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
animation-timing-function: ease-in;
opacity: 0;
}
40% {
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
animation-timing-function: ease-in;
}
60% {
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
opacity: 1;
}
80% {
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
}
to {
transform: perspective(400px);
}
}
@keyframes flipInY {
from {
transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
animation-timing-function: ease-in;
opacity: 0;
}
40% {
transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
animation-timing-function: ease-in;
}
60% {
transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
opacity: 1;
}
80% {
transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
}
to {
transform: perspective(400px);
}
}
.flip-in-x {
animation-name: flipInX;
backface-visibility: visible;
}
.flip-in-y {
animation-name: flipInY;
backface-visibility: visible;
}
/* 过渡效果 */
.transition-all {
transition: all 0.3s ease;
}
.transition-opacity {
transition: opacity 0.3s ease;
}
.transition-transform {
transition: transform 0.3s ease;
}
.transition-colors {
transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
/* 悬停效果 */
.hover-scale:hover {
transform: scale(1.05);
}
.hover-lift:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.hover-glow:hover {
box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}
/* 延迟动画 */
.delay-100 {
animation-delay: 0.1s;
}
.delay-200 {
animation-delay: 0.2s;
}
.delay-300 {
animation-delay: 0.3s;
}
.delay-500 {
animation-delay: 0.5s;
}
.delay-1000 {
animation-delay: 1s;
}
/* 无限循环动画 */
.infinite {
animation-iteration-count: infinite;
}
/* 动画暂停 */
.paused {
animation-play-state: paused;
}
/* 响应式动画控制 */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* 滚动触发动画的基础样式 */
.scroll-animate {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease;
}
.scroll-animate.active {
opacity: 1;
transform: translateY(0);
}
/* 加载动画 */
@keyframes loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #007bff;
animation: loading 1s ease-in-out infinite;
}
/* 文字打字机效果 */
.typewriter {
overflow: hidden;
border-right: 0.15em solid orange;
white-space: nowrap;
margin: 0 auto;
letter-spacing: 0.15em;
animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}
@keyframes typing {
from {
width: 0;
}
to {
width: 100%;
}
}
@keyframes blink-caret {
from,
to {
border-color: transparent;
}
50% {
border-color: orange;
}
}
/* GSAP动画元素初始状态 - 防止闪显 */
.gsap-animate,
.section-title,
.section-description,
.accordion-item,
.system-image img,
.products-services-item,
.features-item,
.video-banner-content > *,
[data-gsap-animate] {
opacity: 0;
visibility: hidden;
}
/* GSAP动画就绪后显示 */
.gsap-ready .gsap-animate,
.gsap-ready .section-title,
.gsap-ready .section-description,
.gsap-ready .accordion-item,
.gsap-ready .system-image img,
.gsap-ready .products-services-item,
.gsap-ready .features-item,
.gsap-ready .video-banner-content > *,
.gsap-ready [data-gsap-animate] {
visibility: visible;
}

@ -0,0 +1,171 @@
/**
*
* Article Display Component Styles
*/
/* 基础重置样式 */
.article-display-wrapper * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 文章容器样式 */
.article-display-wrapper {
max-width: 1200px;
margin: 1rem auto;
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
opacity: 1;
transform: translateY(0);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-top: 3rem;
}
.article-display-wrapper:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.article-display-wrapper .article-content {
width: 100%;
height: 400px;
}
.article-display-wrapper .article-item {
display: flex;
align-items: stretch;
background: white;
height: 100%;
opacity: 1;
transform: translateX(0);
}
/* 左侧图片栏样式 */
.article-display-wrapper .left-column {
flex: 1;
position: relative;
overflow: hidden;
}
.article-display-wrapper .left-column .image-link {
display: block;
width: 100%;
height: 100%;
text-decoration: none;
}
.article-display-wrapper .left-column img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 1;
transform: scale(1);
}
.article-display-wrapper .left-column .image-link:hover img {
transform: scale(1.05);
}
/* 右侧内容栏样式 */
.article-display-wrapper .right-column {
flex: 1;
padding: 40px;
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
}
.article-display-wrapper .content-top {
flex-grow: 1;
}
.article-display-wrapper .title-link {
text-decoration: none;
color: inherit;
display: block;
}
.article-display-wrapper .article-title {
font-size: 28px;
font-weight: bold;
color: #333;
margin-bottom: 20px;
line-height: 1.4;
transition: color 0.3s ease;
opacity: 1;
transform: translateY(0);
}
.article-display-wrapper .title-link:hover .article-title {
color: #00b4a6;
}
.article-display-wrapper .article-description {
font-size: 16px;
color: #666;
line-height: 1.6;
margin-bottom: 30px;
opacity: 1;
transform: translateY(0);
transition: color 0.3s ease;
}
.article-display-wrapper:hover .article-description {
color: #555;
}
.article-display-wrapper .view-more-link {
display: inline-flex;
align-items: center;
color: #126594;
text-decoration: none;
font-size: 16px;
font-weight: 500;
transition: color 0.3s ease, transform 0.3s ease;
opacity: 1;
transform: translateY(0);
}
.article-display-wrapper .view-more-link:hover {
color: #008a7e;
transform: translateX(5px);
}
/* 响应式设计 */
@media (max-width: 768px) {
.article-display-wrapper .article-item {
flex-direction: column;
}
.article-display-wrapper .article-content {
height: auto;
}
.article-display-wrapper .left-column,
.article-display-wrapper .right-column {
flex: none;
}
.article-display-wrapper .left-column {
height: 250px;
}
.article-display-wrapper .right-column {
padding: 20px;
}
.article-display-wrapper .article-title {
font-size: 22px;
}
.article-display-wrapper {
padding: 20px;
}
}

@ -0,0 +1,306 @@
/**
* Block Cooperate Styles
*
*
* @package Nenghui Energy Theme
* @since 1.0.0
*/
/* 合作伙伴区块基础样式 */
.cooperate-block {
padding: 60px 0;
background: #ffffff;
overflow: hidden;
}
.cooperate-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 标题区域样式 */
.cooperate-header {
text-align: center;
margin-bottom: 50px;
padding: 30px 0;
}
.cooperate-title {
font-size: 36px;
font-weight: 700;
color: #333333;
margin: 0;
line-height: 1.3;
letter-spacing: -0.5px;
position: relative;
}
.cooperate-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 4px;
background: linear-gradient(90deg, #3498db, #2980b9);
border-radius: 2px;
}
/* 合作伙伴内容区域 */
.cooperate-content {
margin-top: 40px;
}
/* 合作伙伴卡片样式 */
.cooperate-cards {
position: relative;
overflow: hidden;
border-radius: 12px;
background: #f8f9fa;
padding: 20px;
}
.cards-wrapper {
display: flex;
flex-wrap: wrap;
gap: 30px;
align-items: center;
justify-content: center;
}
.card-slide {
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
flex: 0 0 calc(25% - 22.5px);
min-height: 120px;
min-width: 200px;
max-width: 250px;
position: relative;
overflow: hidden;
}
.card-slide::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(0, 123, 255, 0.02), rgba(0, 86, 179, 0.02));
opacity: 0;
transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: none;
}
.card-slide:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 123, 255, 0.08);
}
.card-slide:hover::before {
opacity: 1;
}
.card-slide img {
max-width: 100%;
max-height: 80px;
width: auto;
height: auto;
object-fit: contain;
filter: grayscale(0%);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0.85;
}
.card-slide:hover img {
filter: grayscale(0%) brightness(1.1);
opacity: 1;
}
/* 响应式设计 */
@media (max-width: 1024px) {
.cooperate-title {
font-size: 32px;
}
.cards-wrapper {
gap: 20px;
}
.card-slide {
flex: 0 0 calc(25% - 15px);
min-height: 100px;
padding: 15px;
min-width: 160px;
max-width: 200px;
}
.card-slide img {
max-height: 60px;
}
}
@media (max-width: 768px) {
.cooperate-block {
padding: 40px 0;
}
.cooperate-container {
padding: 0 15px;
}
.cooperate-header {
margin-bottom: 30px;
padding: 20px 0;
}
.cooperate-title {
font-size: 28px;
}
.cooperate-cards {
padding: 30px 15px;
}
.cards-wrapper {
gap: 15px;
}
.card-slide {
flex: 0 0 calc(50% - 7.5px);
min-height: 80px;
padding: 10px;
min-width: 150px;
max-width: none;
}
.card-slide img {
max-height: 50px;
}
}
@media (max-width: 480px) {
.cooperate-title {
font-size: 24px;
line-height: 1.4;
}
.cards-wrapper {
flex-direction: column;
gap: 15px;
}
.card-slide {
flex: none;
width: 100%;
max-width: 280px;
}
}
/* 动画效果 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.cooperate-header {
animation: fadeInUp 0.8s ease-out;
}
.cooperate-cards {
animation: fadeInUp 0.8s ease-out 0.2s both;
}
/* 动画效果增强 */
.cooperate-block {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease-out;
}
.cooperate-block.animate-in {
opacity: 1;
transform: translateY(0);
}
/* 悬停效果增强 */
.card-slide.dimmed {
opacity: 0.5;
transition: opacity 0.3s ease;
}
.card-slide img.loaded {
opacity: 1;
}
.card-slide img.error {
opacity: 0.3;
filter: grayscale(100%);
}
/* 性能优化 - 启用硬件加速 */
.card-slide {
will-change: transform, box-shadow;
backface-visibility: hidden;
perspective: 1000px;
}
/* 减少动画时的重绘 */
.card-slide:hover,
.card-slide:focus {
will-change: auto;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* 移动端布局调整 */
.cards-wrapper.mobile-layout {
flex-direction: column;
align-items: center;
}
.cards-wrapper.mobile-layout .card-slide {
min-width: 150px;
margin-bottom: 15px;
}
/* 打印样式 */
@media print {
.cooperate-block {
padding: 20px 0;
background: white;
}
.card-slide {
box-shadow: none;
border: 1px solid #ddd;
}
.card-slide img {
filter: none;
}
}

@ -0,0 +1,238 @@
/**
* Block News Styles
*
*
* @package Nenghui Energy Theme
* @since 1.0.0
*/
.news-debug {
background: #fff3cd;
border: 1px solid #ffeaa7;
color: #856404;
padding: 15px;
margin: 20px 0;
border-radius: 4px;
font-size: 14px;
}
.news-debug h4 {
margin-top: 0;
color: #856404;
font-size: 16px;
}
.news-debug pre {
background: #f8f9fa;
border: 1px solid #dee2e6;
padding: 10px;
border-radius: 3px;
font-size: 12px;
overflow-x: auto;
}
.no-posts-message {
text-align: center;
padding: 40px 20px;
color: #666;
font-size: 16px;
}
/* 无图片占位符样式 */
.no-image-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #f5f5f5;
color: #999;
height: 200px;
border-radius: 8px;
border: 2px dashed #ddd;
}
.news-card .no-image-placeholder {
height: 150px;
}
.no-image-placeholder i {
font-size: 2rem;
margin-bottom: 8px;
opacity: 0.6;
}
.no-image-placeholder span {
font-size: 0.9rem;
font-weight: 500;
}
.news-container {
max-width: 1200px;
margin: 0 auto;
padding: 30px 20px;
}
.news-header {
border-bottom: 1px solid #eeeeee;
padding-bottom: 15px;
margin-bottom: 30px;
}
.news-header p {
color: #888888;
font-size: 14px;
margin: 0;
}
.news-header h1 {
font-size: 32px;
margin: 8px 0 0 0;
font-weight: bold;
color: #000000;
}
.main-news {
display: flex;
gap: 30px;
margin-bottom: 40px;
}
.main-news-left {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.main-news-right {
flex: 1;
}
.main-news h2 {
font-size: 18px;
color: #0066cc;
margin-bottom: 10px;
}
.main-news-left h2 {
font-size: 30px;
}
.main-news h2 a {
color: #126594;
text-decoration: none;
}
.main-news h2 a:hover {
color: #004499;
text-decoration: underline;
}
.main-news p {
color: #666666;
margin: 0 0 15px 0;
}
.main-news-info {
display: flex;
align-items: center;
font-size: 14px;
color: #999999;
}
.main-news-info span {
margin-right: 20px;
}
.main-news img {
width: 100%;
height: auto;
border-radius: 4px;
}
.news-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.news-card {
border: 1px solid #eeeeee;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
transition: box-shadow 0.3s ease;
}
.news-card:hover {
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.news-card img {
width: 100%;
height: 250px;
object-fit: cover;
}
.news-card-content {
padding: 15px;
}
.news-card h3 {
font-size: 16px;
margin: 0 0 10px 0;
color: #333333;
}
.news-card h3 a {
color: #333333;
text-decoration: none;
}
.news-card h3 a:hover {
color: #0066cc;
}
.news-card-info {
display: flex;
align-items: center;
font-size: 12px;
color: #999999;
}
.news-card-info span {
margin-right: 15px;
}
/* 响应式设计 */
@media (max-width: 768px) {
.main-news {
flex-direction: column;
gap: 20px;
}
.news-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.news-container {
padding: 20px 15px;
}
.news-header h1 {
font-size: 24px;
}
.main-news-left h2 {
font-size: 20px;
}
}
@media (max-width: 1024px) and (min-width: 769px) {
.news-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@ -0,0 +1,326 @@
/**
*
* Business Process Block Styles
*/
.business-process-block {
padding: 80px 0;
background: #f8f9fa;
position: relative;
overflow: hidden;
}
.business-process-block .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 头部样式 */
.process-header {
text-align: left;
margin-bottom: 60px;
}
.process-title {
font-size: 2.5rem;
font-weight: 700;
color: #2c3e50;
margin-bottom: 16px;
line-height: 1.2;
}
.process-subtitle {
font-size: 1.125rem;
color: #6c757d;
margin: 0;
line-height: 1.6;
}
/* 主要内容区域 */
.process-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}
/* 左侧Tab标签区域 */
.process-tabs {
display: flex;
flex-direction: column;
border-radius: 8px;
}
.process-tab {
display: flex;
align-items: center;
padding: 24px 0;
background: transparent;
cursor: pointer;
transition: all 0.3s ease;
border-bottom: 1px solid #e9ecef;
position: relative;
}
.process-tab:hover {
background: rgba(0, 149, 123, 0.02);
}
.process-tab.active {
background: rgba(0, 149, 123, 0.05);
border-left: 4px solid #00957b;
padding-left: 16px;
}
.tab-number {
font-size: 2.5rem;
font-weight: 700;
color: #00957b;
margin-right: 24px;
min-width: 70px;
text-align: left;
transition: color 0.3s ease;
line-height: 1;
}
.process-tab.active .tab-number {
color: #00957b;
}
.process-tab:last-child {
border-bottom: none;
}
.tab-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.tab-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 8px;
color: #2c3e50;
transition: color 0.3s ease;
}
.process-tab.active .tab-title {
color: #00957b;
}
.tab-description {
font-size: 0.9rem;
color: #6c757d;
margin: 0;
line-height: 1.6;
transition: color 0.3s ease;
}
.process-tab.active .tab-description {
color: #6c757d;
}
.tab-arrow {
margin-left: 20px;
color: #00957b;
transition: all 0.3s ease;
opacity: 0.7;
font-size: 1.1rem;
transform: translateX(-14px);
}
.process-tab.active .tab-arrow {
color: #00957b;
opacity: 1;
transform: translateX(-14px);
}
/* 右侧图片显示区域 */
.process-images {
position: relative;
height: 500px;
}
.process-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.5s ease;
display: flex;
align-items: center;
justify-content: center;
}
.process-image.active {
opacity: 1;
}
.process-image img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
object-position: center;
}
/* 响应式设计 */
@media (max-width: 1024px) {
.business-process-block {
padding: 60px 0;
}
.process-content {
gap: 40px;
}
.process-images {
height: 400px;
}
}
@media (max-width: 768px) {
.business-process-block {
padding: 40px 0;
}
.business-process-block .container {
padding: 0 16px;
}
.process-header {
margin-bottom: 40px;
text-align: left;
}
.process-title {
font-size: 2rem;
}
.process-subtitle {
font-size: 1rem;
}
.process-content {
grid-template-columns: 1fr;
gap: 30px;
}
.process-tabs {
gap: 16px;
}
.process-tab {
padding: 20px;
}
.tab-number {
font-size: 1.5rem;
margin-right: 16px;
min-width: 50px;
}
.tab-title {
font-size: 1.125rem;
}
.tab-description {
font-size: 0.8125rem;
}
.process-images {
height: 300px;
}
}
@media (max-width: 480px) {
.process-tab {
padding: 16px;
flex-direction: column;
text-align: center;
}
.tab-number {
margin-right: 0;
margin-bottom: 12px;
}
.tab-arrow {
margin-left: 0;
margin-top: 12px;
transform: rotate(90deg);
}
.process-tab.active .tab-arrow {
transform: rotate(90deg) translateX(4px);
}
.process-images {
height: 250px;
}
}
/* 动画效果 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.business-process-block.animate-in .process-header,
.business-process-block.animate-in .process-tab,
.business-process-block.animate-in .process-images {
animation: fadeInUp 0.6s ease forwards;
}
.business-process-block.animate-in .process-tab:nth-child(1) {
animation-delay: 0.1s;
}
.business-process-block.animate-in .process-tab:nth-child(2) {
animation-delay: 0.2s;
}
.business-process-block.animate-in .process-tab:nth-child(3) {
animation-delay: 0.3s;
}
.business-process-block.animate-in .process-tab:nth-child(4) {
animation-delay: 0.4s;
}
.business-process-block.animate-in .process-images {
animation-delay: 0.5s;
}
/* 打印样式 */
@media print {
.business-process-block {
background: #ffffff;
padding: 20px 0;
}
.process-content {
grid-template-columns: 1fr;
gap: 20px;
}
.process-tab {
box-shadow: none;
border: 1px solid #ddd;
}
.process-images {
height: 300px;
box-shadow: none;
}
}

@ -0,0 +1,324 @@
/* 高管简历区块样式 */
.executive-profiles-block {
padding: 50px 0;
background: #ffffff;
position: relative;
}
.executive-profiles-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
/* 标题样式 */
.section-header {
text-align: center;
}
.section-title {
font-size: 32px;
font-weight: 600;
color: #1a1a1a;
margin: 0;
position: relative;
display: inline-block;
}
.section-title::after {
content: '';
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 50px;
height: 3px;
background: linear-gradient(90deg, #007cba, #00a0d2);
border-radius: 2px;
}
/* 网格布局 - 默认每行一个元素 */
.executives-grid {
display: grid;
gap: 16px;
grid-template-columns: 1fr;
}
.executives-grid[data-columns="1"] {
grid-template-columns: 1fr;
}
.executives-grid[data-columns="2"] {
grid-template-columns: repeat(2, 1fr);
}
.executives-grid[data-columns="3"] {
grid-template-columns: repeat(3, 1fr);
}
.executives-grid[data-columns="4"] {
grid-template-columns: repeat(4, 1fr);
}
/* 高管卡片样式 */
.executive-card {
background: #ffffff;
border: none;
border-bottom: 1px solid #e8e8e8;
border-radius: 0;
padding: 20px 0;
transition: all 0.3s ease;
position: relative;
overflow: visible;
display: flex;
flex-direction: row;
gap: 24px;
align-items: flex-start;
box-shadow: none;
}
.executive-card:hover {
box-shadow: none;
border-bottom-color: #d0d0d0;
transform: none;
}
/* 高管头部信息 - 左侧栏 */
.executive-header {
margin-bottom: 0;
border-bottom: none;
padding-bottom: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
min-width: 120px;
flex-shrink: 0;
}
.executive-name {
font-size: 15px;
font-weight: 600;
color: #2c2c2c;
margin: 0;
line-height: 1.3;
letter-spacing: 0.3px;
}
.executive-title {
font-size: 12px;
color: #757575;
margin: 0;
font-weight: 400;
line-height: 1.3;
}
/* 简历内容样式 - 右侧栏 */
.executive-bio {
position: relative;
flex: 1;
min-width: 0;
}
.bio-preview {
font-size: 13px;
line-height: 1.6;
color: #4a4a4a;
display: block;
overflow: visible;
text-overflow: unset;
cursor: default;
transition: all 0.3s ease;
position: relative;
text-align: justify;
font-weight: 400;
}
.bio-preview::after {
display: none;
}
/* 深色主题 */
.executive-profiles-block.theme-dark {
background: #1a1a1a;
}
.theme-dark .executive-card {
background: #2a2a2a;
border-color: #404040;
}
.theme-dark .executive-card:hover {
box-shadow: 0 8px 25px rgba(0, 160, 210, 0.2);
border-color: #00a0d2;
}
.theme-dark .section-title {
color: #ffffff;
}
.theme-dark .executive-name {
color: #ffffff;
}
.theme-dark .executive-title {
color: #cccccc;
}
.theme-dark .executive-header {
border-bottom-color: #404040;
}
.theme-dark .bio-preview {
color: #e0e0e0;
}
.theme-dark .bio-preview::after {
background: linear-gradient(to right, transparent, #2a2a2a 50%);
}
.theme-dark .bio-full {
background: #2a2a2a;
border-color: #00a0d2;
color: #e0e0e0;
box-shadow: 0 4px 15px rgba(0, 160, 210, 0.3);
}
/* 浅色主题 */
.executive-profiles-block.theme-light {
background: #f8f9fa;
}
.theme-light .executive-card {
background: #ffffff;
border-color: #dee2e6;
}
.theme-light .executive-card:hover {
box-shadow: 0 8px 25px rgba(0, 124, 186, 0.1);
border-color: #007cba;
}
/* 响应式设计 */
@media (max-width: 768px) {
.executives-grid {
grid-template-columns: 1fr !important;
gap: 16px;
}
.executive-profiles-container {
padding: 0 16px;
}
.executive-profiles-block {
padding: 40px 0;
}
.section-title {
font-size: 28px;
}
.executive-card {
padding: 20px 0;
flex-direction: column;
gap: 16px;
}
.executive-header {
min-width: auto;
flex-direction: row;
align-items: baseline;
gap: 12px;
}
.executive-name {
font-size: 16px;
}
.executive-title {
font-size: 13px;
}
}
@media (max-width: 480px) {
.section-title {
font-size: 24px;
}
.executive-name {
font-size: 15px;
}
.executive-card {
padding: 15px 0;
}
}
/* 动画效果 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.executive-card {
animation: fadeInUp 0.6s ease forwards;
}
.executive-card:nth-child(1) { animation-delay: 0.1s; }
.executive-card:nth-child(2) { animation-delay: 0.2s; }
.executive-card:nth-child(3) { animation-delay: 0.3s; }
.executive-card:nth-child(4) { animation-delay: 0.4s; }
.executive-card:nth-child(5) { animation-delay: 0.5s; }
.executive-card:nth-child(6) { animation-delay: 0.6s; }
.executive-card:nth-child(7) { animation-delay: 0.7s; }
.executive-card:nth-child(8) { animation-delay: 0.8s; }
.executive-card:nth-child(9) { animation-delay: 0.9s; }
.executive-card:nth-child(10) { animation-delay: 1.0s; }
/* 加载状态 */
.executive-profiles-block.loading .executive-card {
opacity: 0;
}
/* 打印样式 */
@media print {
.executive-profiles-block {
background: white !important;
padding: 20px 0;
}
.executive-card {
break-inside: avoid;
box-shadow: none !important;
border: 1px solid #ccc !important;
}
.bio-preview {
-webkit-line-clamp: unset;
overflow: visible;
}
.bio-preview::after {
display: none;
}
.bio-full {
position: static;
opacity: 1;
transform: none;
box-shadow: none;
border: none;
padding: 0;
margin-top: 10px;
}
}

@ -0,0 +1,173 @@
.features-block {
width: 100%;
height: 600px;
position: relative;
background-image: url('../images/features-bg.webp');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
display: flex;
align-items: center;
justify-content: center;
padding: 80px 20px;
box-sizing: border-box;
margin: 2rem 0;
}
/* 添加深色遮罩以提高文字可读性 */
.features-block::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgb(0 0 0 / 26%);
z-index: 1;
}
.features-container {
position: relative;
z-index: 2;
max-width: 1200px;
width: 100%;
text-align: center;
color: white;
}
.features-header {
margin-bottom: 60px;
/* 初始状态:隐藏并向下偏移 */
opacity: 0;
transform: translateY(30px);
}
.features-title {
font-size: 42px;
font-weight: 600;
margin: 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
letter-spacing: 1px;
}
.features-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
align-items: center;
justify-items: center;
}
.features-stat-item {
text-align: center;
/* 初始状态:隐藏并向下偏移 */
opacity: 0;
transform: translateY(50px);
}
.stat-number {
font-size: 48px;
font-weight: 700;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
color: #ffffff;
line-height: 1.2;
}
.stat-label {
font-size: 16px;
font-weight: 400;
color: #f0f0f0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
line-height: 1.4;
letter-spacing: 0.5px;
}
/* 分隔线效果 */
.features-stat-item:not(:last-child)::after {
content: '';
position: absolute;
right: -70px;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 60px;
background: rgb(255 255 255 / 53%);
}
.features-stat-item {
position: relative;
}
/* 响应式设计 */
@media (max-width: 1024px) {
.features-title {
font-size: 36px;
}
.stat-number {
font-size: 40px;
}
.features-stats {
gap: 30px;
}
.features-block {
padding: 60px 20px;
}
}
@media (max-width: 768px) {
.features-stats {
grid-template-columns: repeat(2, 1fr);
gap: 40px;
}
.features-title {
font-size: 28px;
}
.stat-number {
font-size: 36px;
}
.stat-label {
font-size: 14px;
}
.features-header {
margin-bottom: 40px;
}
.features-block {
padding: 40px 15px;
background-attachment: scroll;
}
/* 移除分隔线在移动端 */
.features-stat-item:not(:last-child)::after {
display: none;
}
}
@media (max-width: 480px) {
.features-stats {
grid-template-columns: 1fr;
gap: 30px;
}
.features-title {
font-size: 22px;
}
.stat-number {
font-size: 32px;
}
.features-block {
min-height: 300px;
padding: 30px 15px;
}
}

@ -0,0 +1,392 @@
/* ===================================
=================================== */
/* 页脚主容器 */
.site-footer {
background-color: #f8f9fa;
border-top: 1px solid #e9ecef;
padding: 60px 0 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* 页脚容器 */
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 页脚主要内容区域 */
.footer-main {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 40px;
gap: 60px;
}
/* 左侧Logo区域 */
.footer-logo {
flex: 0 0 auto;
min-width: 200px;
}
.footer-logo-img {
height: 50px;
width: auto;
max-width: 200px;
object-fit: contain;
}
/* 右侧导航链接区域 */
.footer-nav {
flex: 1;
display: flex;
gap: 8rem;
}
/* 导航列 */
.footer-nav-column {
flex: 0 1 auto;
min-width: 0;
text-align: center;
}
/* 导航标题 */
.footer-nav-title {
font-size: 16px;
font-weight: 600;
color: #333;
margin: 0 0 20px 0;
padding-bottom: 8px;
border-bottom: 2px solid #1369a8;
display: inline-block;
min-width: 80px;
}
/* 导航列表 */
.footer-nav-list {
list-style: none;
margin: 0;
padding: 0;
}
.footer-nav-list li {
margin-bottom: 12px;
}
.footer-nav-list li:last-child {
margin-bottom: 0;
}
/* 导航链接 */
.footer-nav-list a {
color: #666;
text-decoration: none;
font-size: 14px;
line-height: 1.5;
transition: color 0.3s ease;
display: block;
padding: 2px 0;
}
.footer-nav-list a:hover {
color: #1369a8;
text-decoration: none;
}
/* 页脚底部 */
.footer-bottom {
border-top: 1px solid #e9ecef;
padding-top: 20px;
text-align: center;
}
/* 版权信息 */
.footer-copyright {
margin: 0;
}
.footer-copyright p {
color: #999;
font-size: 13px;
line-height: 1.5;
margin: 0;
}
.footer-copyright a {
color: #999;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-copyright a:hover {
color: #1369a8;
text-decoration: underline;
}
/* 滚动进度指示器 */
.scroll-indicator {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 3px;
background: linear-gradient(90deg, #1369a8, #0c947b);
z-index: 9999;
transition: width 0.1s ease;
}
/* 回到顶部按钮 */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background: #1369a8;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
box-shadow: 0 4px 12px rgba(19, 105, 168, 0.3);
}
.back-to-top:hover {
background: #0f5a94;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(19, 105, 168, 0.4);
color: white;
text-decoration: none;
}
.back-to-top.show {
opacity: 1;
visibility: visible;
}
.back-to-top i {
font-size: 18px;
}
/* ===================================
=================================== */
/* 平板设备 */
@media (max-width: 1024px) {
.footer-main {
gap: 40px;
}
.footer-nav {
gap: 30px;
}
.footer-logo {
min-width: 160px;
}
.footer-logo-img {
height: 45px;
max-width: 160px;
}
}
/* 小平板设备 */
@media (max-width: 768px) {
.site-footer {
padding: 40px 0 20px;
margin-top: 80px;
}
.footer-main {
flex-direction: column;
gap: 40px;
text-align: center;
align-items: center;
}
.footer-logo {
min-width: auto;
align-self: center;
}
.footer-nav {
width: 100%;
flex-wrap: wrap;
justify-content: center;
gap: 30px 40px;
text-align: center;
}
.footer-nav-column {
flex: 0 0 calc(50% - 20px);
min-width: 140px;
text-align: center;
}
.footer-nav-title {
text-align: center;
}
.back-to-top {
bottom: 20px;
right: 20px;
width: 45px;
height: 45px;
}
.back-to-top i {
font-size: 16px;
}
}
/* 手机设备 */
@media (max-width: 480px) {
.site-footer {
padding: 30px 0 15px;
margin-top: 80px;
}
.footer-container {
padding: 0 15px;
}
.footer-main {
gap: 30px;
margin-top: 3rem;
}
.footer-nav {
flex-direction: column;
gap: 25px;
align-items: center;
}
.footer-nav-column {
flex: none;
width: 100%;
max-width: 200px;
}
.footer-logo-img {
height: 40px;
max-width: 140px;
}
.footer-nav-title {
font-size: 15px;
margin-bottom: 15px;
}
.footer-nav-list a {
font-size: 13px;
}
.footer-nav-list li {
margin-bottom: 10px;
}
.footer-copyright p {
font-size: 12px;
line-height: 1.6;
}
.back-to-top {
bottom: 15px;
right: 15px;
width: 40px;
height: 40px;
}
.back-to-top i {
font-size: 14px;
}
}
/* 超小屏幕设备 */
@media (max-width: 360px) {
.footer-container {
padding: 0 10px;
}
.footer-nav-column {
max-width: 180px;
}
.footer-copyright p {
font-size: 11px;
}
}
/* ===================================
=================================== */
@media print {
.site-footer {
background: white !important;
border-top: 1px solid #ccc !important;
margin-top: 20px !important;
padding: 20px 0 !important;
}
.scroll-indicator,
.back-to-top {
display: none !important;
}
.footer-nav-list a {
color: #333 !important;
}
.footer-copyright a {
color: #666 !important;
}
}
/* ===================================
访
=================================== */
@media (prefers-reduced-motion: reduce) {
.footer-nav-list a,
.footer-copyright a,
.back-to-top,
.scroll-indicator {
transition: none;
}
}
/* 高对比度模式 */
@media (prefers-contrast: high) {
.site-footer {
background-color: white;
border-top: 2px solid #000;
}
.footer-nav-title {
color: #000;
border-bottom-color: #000;
}
.footer-nav-list a {
color: #000;
}
.footer-nav-list a:hover {
color: #000;
background-color: #ffff00;
}
.footer-copyright p,
.footer-copyright a {
color: #000;
}
}

@ -0,0 +1,672 @@
/* 恒辉核心页面样式 + GSAP 动画支持 */
/* 基础Grid系统 */
.page-full-width {
overflow-x: hidden;
}
.about-content .container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
box-sizing: border-box;
}
.about-content .row {
display: flex;
flex-wrap: wrap;
margin: 0 -15px;
align-items: center;
min-height: 500px;
}
.about-content .col-lg-6 {
flex: 0 0 50%;
max-width: 50%;
padding: 0 15px;
box-sizing: border-box;
}
.about-content .col-md-12 {
flex: 0 0 100%;
max-width: 100%;
padding: 0 15px;
box-sizing: border-box;
}
/* 响应式Grid */
@media (max-width: 991.98px) {
.about-content .col-lg-6 {
flex: 0 0 100%;
max-width: 100%;
}
.about-content .row {
align-items: flex-start;
min-height: auto;
}
}
.about-content {
padding: 60px 0;
background-color: #f8f9fa;
}
/* 确保左右布局正确显示 */
.about-content .row {
display: flex !important;
flex-wrap: wrap;
margin: 0 -15px;
align-items: center;
min-height: 500px;
}
/* 专业领域轮播样式 */
.professional-fields {
padding: 60px 0;
background: #f8f9fa;
position: relative;
}
.professional-fields .container {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}
.professional-fields .section-title {
text-align: center;
font-size: 2rem;
font-weight: 600;
color: #333;
margin-bottom: 40px;
position: relative;
}
.professional-carousel {
position: relative;
max-width: 100%;
margin: 0 auto;
}
.carousel-wrapper {
position: relative;
width: 100%;
height: 120px;
overflow: hidden;
display: flex;
align-items: center;
}
.professional-carousel {
display: flex;
width: 100%;
height: 100%;
transition: transform 0.5s ease;
}
.professional-card {
position: relative;
width: 20%;
height: 100px;
display: flex;
align-items: center;
justify-content: space-between;
background: #ffffff;
border-radius: 8px;
margin: 0 5px;
padding: 0 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
cursor: pointer;
border: 1px solid #e9ecef;
flex-shrink: 0;
}
.professional-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
border-color: #7dd3fc;
}
.card-left {
flex: 0 0 40%;
display: flex;
align-items: center;
justify-content: center;
}
.card-number {
font-size: 5rem;
font-weight: 300;
color: #83cfce;
line-height: 1;
margin: 0;
}
.card-right {
flex: 0 0 55%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.card-icon {
font-size: 2rem;
color: #6d6e6e;
margin-bottom: 8px;
transition: color 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.card-icon svg {
width: 40px;
height: 40px;
}
.card-title {
font-size: 1rem;
font-weight: 500;
color: #6d6e6e;
margin: 0;
white-space: nowrap;
transition: color 0.3s ease;
}
.professional-card:hover .card-title {
color: #83cfce;
}
.professional-card:hover .card-number {
color: #83cfce;
}
.carousel-navigation {
position: absolute;
bottom: -60px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 15px;
z-index: 10;
}
.carousel-button {
width: 40px;
height: 40px;
background: #ffffff;
border: 1px solid #ddd;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.carousel-button:hover {
background: #f8f9fa;
border-color: #7dd3fc;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.carousel-button svg {
color: #666;
transition: color 0.3s ease;
width: 20px;
height: 20px;
}
.carousel-button:hover svg {
color: #0ea5e9;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.professional-card {
flex: 0 0 calc(33.333% - 20px);
}
}
@media (max-width: 768px) {
.professional-card {
flex: 0 0 calc(50% - 15px);
margin: 0 7.5px 20px;
}
.carousel-wrapper {
height: auto;
min-height: 180px;
}
.carousel-navigation {
bottom: -50px;
}
}
@media (max-width: 480px) {
.professional-card {
flex: 0 0 calc(100% - 20px);
margin: 0 10px 20px;
}
}
/* 左侧内容区域 - 40% */
.about-content .col-lg-6:first-child {
flex: 0 0 40% !important;
max-width: 40% !important;
padding: 0 15px;
box-sizing: border-box;
}
/* 右侧图片区域 - 60% */
.about-content .col-lg-6:last-child {
flex: 0 0 60% !important;
max-width: 60% !important;
padding: 0 15px;
box-sizing: border-box;
}
.content-header {
margin-bottom: 40px;
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
color: #2c3e50;
margin-bottom: 20px;
line-height: 1.2;
}
.section-description {
font-size: 14px;
line-height: 1.8;
color: #555;
margin-bottom: 0;
}
/* 可折叠面板样式 */
.accordion {
margin-top: 30px;
}
.accordion-item {
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
overflow: hidden;
}
.accordion-header {
margin: 0;
}
.accordion-button {
background-color: #fff;
border: none;
padding: 20px 25px;
font-size: 1.1rem;
font-weight: 600;
color: #2c3e50;
text-align: left;
width: 100%;
position: relative;
transition: all 0.3s ease;
cursor: pointer;
}
.accordion-button:hover {
background-color: #f8f9fa;
}
.accordion-button.active {
background-color: #f2f2f2 !important;
color: #000 !important;
}
.accordion-button[aria-expanded="true"] {
background-color: #f2f2f2 !important;
color: #000 !important;
}
.accordion-button:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.accordion-button::after {
content: '+';
font-size: 1.5rem;
font-weight: bold;
position: absolute;
right: 25px;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
}
.section-title::after{
display: none;
}
.accordion-button.active::after {
content: '';
transform: translateY(-50%) rotate(0deg);
}
.accordion-collapse {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
border-top: 1px solid #e0e0e0;
}
.accordion-collapse.show {
max-height: 500px;
}
.accordion-body {
padding: 25px;
background-color: #fff;
}
.accordion-body ul {
list-style: none;
padding: 0;
margin: 0;
}
.accordion-body li {
padding: 8px 0;
border-bottom: 1px solid #f0f0f0;
position: relative;
padding-left: 20px;
}
.accordion-body li:last-child {
border-bottom: none;
}
.accordion-body li::before {
content: '•';
color: #007bff;
font-weight: bold;
position: absolute;
left: 0;
}
.accordion-body p {
margin: 0;
line-height: 1.6;
color: #555;
}
/* 响应式图片 */
.img-fluid {
max-width: 100%;
height: auto;
}
/* 右侧图片样式 */
.system-image {
padding: 20px;
text-align: center;
}
.system-image img {
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
}
.system-image img:hover {
transform: scale(1.02);
}
/* 响应式设计 */
@media (max-width: 991.98px) {
.about-content {
padding: 40px 0;
}
.about-content .col-lg-6,
.about-content .col-lg-6:first-child,
.about-content .col-lg-6:last-child {
flex: 0 0 100% !important;
max-width: 100% !important;
padding: 0 15px;
}
.about-content .row {
min-height: auto !important;
align-items: flex-start !important;
}
.section-title {
font-size: 2rem;
text-align: center;
}
.section-description {
text-align: center;
margin-bottom: 30px;
}
.system-image {
margin-top: 40px;
padding: 10px;
}
.content-header {
text-align: center;
}
}
@media (max-width: 767.98px) {
.container {
padding: 0 10px;
}
.section-title {
font-size: 1.8rem;
}
.section-description {
font-size: 1rem;
padding: 0 10px;
}
.accordion-button {
padding: 15px 20px;
font-size: 1rem;
}
.accordion-body {
padding: 20px;
}
.system-image {
padding: 5px;
margin-top: 30px;
}
.accordion {
margin-top: 20px;
}
}
/* GSAP 动画相关样式 */
/* 动画元素初始状态 - 防止闪烁 */
.gsap-animate {
opacity: 0;
transform: translateY(30px);
}
/* 系统图片动画样式 */
.system-image {
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.system-image img {
width: 100%;
height: auto;
display: block;
border-radius: 8px;
transition: transform 0.3s ease;
}
/* Accordion 动画增强 */
.accordion-button {
transition: all 0.3s ease;
transform-origin: center;
position: relative;
overflow: hidden;
}
.accordion-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.accordion-button:hover::before {
left: 100%;
}
.accordion-button:hover {
background-color: rgba(0, 123, 255, 0.05);
border-color: rgba(0, 123, 255, 0.2);
}
.accordion-button.active {
background-color: rgba(0, 123, 255, 0.1);
border-color: rgba(0, 123, 255, 0.3);
transform: scale(1.01);
}
/* 折叠内容动画 - 纯CSS版本 */
.accordion-collapse {
overflow: hidden;
max-height: 0;
transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out;
opacity: 0;
}
.accordion-collapse.show {
max-height: 2000px; /* 足够大的值确保内容完全显示 */
opacity: 1;
}
.accordion-body {
padding: 25px;
background-color: #fff;
line-height: 1.6;
}
/* 标题和描述动画样式 */
.section-title {
position: relative;
overflow: hidden;
}
.section-description {
line-height: 1.8;
position: relative;
}
/* 响应式动画调整 */
@media (max-width: 767.98px) {
.system-image {
margin-top: 40px;
}
.accordion-button {
font-size: 14px;
padding: 12px 15px;
}
.section-title {
font-size: 24px;
}
.section-description {
font-size: 14px;
}
}
/* 加载状态样式 */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.9);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 1;
transition: opacity 0.5s ease;
}
.loading-overlay.fade-out {
opacity: 0;
pointer-events: none;
}
/* 系统图片垂直居中样式 */
.system-image {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
min-height: 400px;
padding: 20px;
}
.system-image img {
max-width: 100%;
height: auto;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.system-image img:hover {
transform: scale(1.02);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
/* 响应式调整 */
@media (max-width: 991.98px) {
.system-image {
min-height: 300px;
margin-top: 30px;
}
}
@media (max-width: 767.98px) {
.system-image {
min-height: 250px;
padding: 15px;
}
}

@ -0,0 +1,156 @@
/**
*
*/
/* 主容器 */
.household-carousel-block {
padding: 0;
background: transparent;
position: relative;
}
/* 轮播图容器 */
.household-carousel-container {
position: relative;
width: 100%;
margin: 0;
background: transparent;
border-radius: 0;
box-shadow: none;
overflow: hidden;
}
/* 轮播图包装器 */
.household-carousel-wrapper {
position: relative;
width: 100%;
height: 500px;
overflow: hidden;
}
/* 轮播图轨道 */
.household-carousel-track {
position: relative;
width: 100%;
height: 100%;
display: flex;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 单个幻灯片 */
.household-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.5s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
}
.household-slide.active {
opacity: 1;
}
/* 幻灯片图片 */
.household-slide-image {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.household-slide-image img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
/* 右上角控制按钮 */
.household-carousel-controls {
position: absolute;
top: 20px;
right: 20px;
display: flex;
gap: 10px;
z-index: 10;
}
.household-carousel-btn {
width: 48px;
height: 48px;
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
color: #2c3e50;
}
.household-carousel-btn:hover {
background: #fff;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.household-carousel-btn:active {
transform: translateY(0);
}
.household-carousel-btn svg {
width: 20px;
height: 20px;
}
/* 响应式设计 */
@media (max-width: 768px) {
.household-carousel-wrapper {
height: 350px;
}
.household-carousel-controls {
top: 15px;
right: 15px;
gap: 8px;
}
.household-carousel-btn {
width: 40px;
height: 40px;
}
.household-carousel-btn svg {
width: 16px;
height: 16px;
}
}
@media (max-width: 480px) {
.household-carousel-wrapper {
height: 280px;
}
.household-carousel-controls {
top: 10px;
right: 10px;
}
.household-carousel-btn {
width: 36px;
height: 36px;
}
}
/* 无障碍访问 */
.household-carousel-btn:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
}

@ -0,0 +1,43 @@
/* 自定义样式文件 */
#btns {margin-top: 2rem;display: flex;justify-content: center;align-items: center;flex-wrap: nowrap;}
#btns button {margin: 0 10px;padding: 5px 10px;border: 1px solid #eee;border-radius: 5px;background: #fbfbfb;cursor: pointer;}
#btns button:hover {background: #f6f6f6;border: 1px solid #d7d7d7;}
/* 你可以在这里写一些自定义的全局CSS样式 */
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: rgb(57, 57, 57);
}
a:hover {
font-weight: 600;
color: #000;
}
#box {
width: 80%;
display: block;
margin: 0 auto;
margin-top: 14vh;
}
img {
display: flex;
margin: 0 auto;
}
.tinytyper {
font-size: 3rem;
margin-top: 10px;
text-align: center;
}
#footer {
font-size: 1.5rem;
display: flex;
justify-content: center;
padding: 10px;
}

@ -0,0 +1,256 @@
/* 投资者接待区块样式 */
.investor-reception-block {
width: 100%;
max-width: 1200px;
margin: 20px auto;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
position: relative;
box-sizing: border-box;
}
.investor-reception-block * {
box-sizing: border-box;
}
/* 容器 */
.investor-reception-container {
display: flex;
flex-direction: column;
width: 100%;
}
/* 图片区域 */
.image-section {
width: 100%;
height: 300px;
overflow: hidden;
position: relative;
}
.reception-image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
}
/* 内容区域 */
.content-section {
padding: 40px 30px;
background: #ffffff;
}
.content-container {
max-width: 1000px;
margin: 0 auto;
}
/* 标题区域 */
.title-section {
text-align: left;
margin-bottom: 30px;
}
.main-title {
font-size: 1rem;
font-weight: 700;
color: #2c3e50;
margin: 0 0 15px 0;
line-height: 1.2;
}
/* 联系信息区域 */
.contact-section {
margin-bottom: 30px;
}
.contact-item {
display: flex;
align-items: center;
margin-bottom: 15px;
padding: 12px 0;
border-bottom: 1px solid #ecf0f1;
}
.contact-item:last-child {
border-bottom: none;
margin-bottom: 0;
}
.contact-label {
font-weight: 600;
color: #34495e;
min-width: 100px;
font-size: 1rem;
}
.contact-value {
color: #2c3e50;
font-size: 1rem;
flex: 1;
}
.phone-link,
.email-link {
color: #3498db;
text-decoration: none;
transition: color 0.3s ease;
}
.phone-link:hover,
.email-link:hover {
color: #2980b9;
text-decoration: underline;
}
/* 投资者交流平台按钮样式 */
.contact-btn {
display: inline-block;
background: linear-gradient(135deg, #3498db, #2980b9);
color: #ffffff;
padding: 12px 24px;
border-radius: 6px;
text-decoration: none;
font-weight: 600;
font-size: 1rem;
border: none;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}
.contact-btn:hover {
background: linear-gradient(135deg, #2980b9, #1f5f8b);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
color: #ffffff;
text-decoration: none;
}
.contact-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}
/* 主题变体 */
.theme-dark .content-section {
background: #2c3e50;
}
.theme-dark .main-title {
color: #ecf0f1;
}
.theme-dark .subtitle {
color: #bdc3c7;
}
.theme-dark .contact-label {
color: #ecf0f1;
}
.theme-dark .contact-value {
color: #bdc3c7;
}
.theme-dark .contact-item {
border-bottom-color: #34495e;
}
.theme-light .content-section {
background: #f8f9fa;
}
.theme-light .main-title {
color: #2c3e50;
}
.theme-light .subtitle {
color: #6c757d;
}
.theme-light .contact-item {
border-bottom-color: #dee2e6;
}
/* 响应式设计 */
@media (max-width: 768px) {
.investor-reception-block {
margin: 10px;
border-radius: 8px;
}
.image-section {
height: 200px;
}
.reception-image {
width: 80%;
margin: 0 auto;
border-radius: 8px;
}
.content-section {
padding: 25px 20px;
}
.main-title {
font-size: 1.6rem;
}
.subtitle {
font-size: 1rem;
}
.contact-item {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.contact-label {
min-width: auto;
font-size: 0.9rem;
}
.contact-value {
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.image-section {
height: 180px;
}
.content-section {
padding: 20px 15px;
width: 100%;
margin: 0 auto;
}
.main-title {
font-size: 1.4rem;
}
.contact-label {
font-size: 0.85rem;
}
.contact-value {
font-size: 0.9rem;
}
}

@ -0,0 +1,117 @@
/**
* Banner
*
*/
.investor-banner {
position: relative;
width: 100%;
height: 650px;
background-image: url('../images/Investor-Relations.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Banner内容容器 */
.investor-banner-content {
position: relative;
z-index: 2;
text-align: center;
color: white;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding-top: 8rem;
overflow: hidden;
}
/* 主标题 */
.investor-banner-title {
font-size: 48px;
font-weight: 700;
margin: 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
letter-spacing: 2px;
line-height: 1.2;
}
/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
.investor-banner {
height: 500px;
}
.investor-banner-title {
font-size: 40px;
}
}
/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
.investor-banner {
height: 400px;
}
.investor-banner-content {
padding: 0 15px;
padding-top: 6rem;
}
.investor-banner-title {
font-size: 32px;
letter-spacing: 1px;
}
}
/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
.investor-banner {
height: 350px;
}
.investor-banner-content {
padding-top: 5rem;
}
.investor-banner-title {
font-size: 28px;
letter-spacing: 0.5px;
}
}
/* 超小屏设备 */
@media (max-width: 360px) {
.investor-banner {
height: 300px;
}
.investor-banner-title {
font-size: 24px;
}
}
/* 投资者关系内容区域 */
.investor-content {
padding: 60px 0;
max-width: 1200px;
margin: 0 auto;
padding-left: 20px;
padding-right: 20px;
}
/* 响应式设计 - 移动端内容区域 */
@media (max-width: 768px) {
.investor-content {
padding: 40px 15px;
}
}

@ -0,0 +1,639 @@
/* 导航菜单页面样式 */
.navigation-menu-page {
min-height: 100vh;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
padding: 80px 0 60px;
}
.navigation-menu-page .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 页面标题区域 */
.page-header {
text-align: center;
margin-bottom: 60px;
animation: fadeInUp 0.8s ease-out;
}
.page-title {
font-size: 3rem;
font-weight: 700;
color: #2c3e50;
margin-bottom: 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.page-subtitle {
font-size: 1.2rem;
color: #7f8c8d;
margin: 0;
opacity: 0.8;
}
/* 导航网格布局 */
.navigation-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-bottom: 60px;
}
/* 导航项目卡片 */
.nav-item {
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 40px 30px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-item::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
transition: left 0.5s;
}
.nav-item:hover::before {
left: 100%;
}
.nav-item:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
background: rgba(255, 255, 255, 1);
}
/* 图标样式 */
.nav-icon {
width: 80px;
height: 80px;
margin: 0 auto 24px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
transition: all 0.3s ease;
position: relative;
z-index: 2;
}
.nav-item:hover .nav-icon {
transform: scale(1.1) rotate(5deg);
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.nav-icon svg {
width: 48px;
height: 48px;
transition: transform 0.3s ease;
}
.nav-item:hover .nav-icon svg {
transform: scale(1.1);
}
/* 标题样式 */
.nav-title {
font-size: 1.5rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 12px;
position: relative;
z-index: 2;
}
/* 描述文字 */
.nav-description {
font-size: 1rem;
color: #7f8c8d;
line-height: 1.6;
margin-bottom: 24px;
position: relative;
z-index: 2;
}
/* 链接按钮 */
.nav-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: #667eea;
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
transition: all 0.3s ease;
position: relative;
z-index: 2;
}
.nav-link:hover {
color: #764ba2;
transform: translateX(5px);
}
/* 底部信息区域 */
.navigation-footer {
text-align: center;
padding: 40px 0;
border-top: 1px solid rgba(255, 255, 255, 0.3);
animation: fadeInUp 0.8s ease-out 0.3s both;
}
.navigation-footer p {
font-size: 1.1rem;
color: #7f8c8d;
margin-bottom: 20px;
}
.contact-btn {
display: inline-block;
background: #1369a8;
color: white;
border: none;
padding: 12px 30px;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}
/* 动画效果 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.nav-item {
animation: fadeInUp 0.6s ease-out;
}
.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }
.nav-item:nth-child(7) { animation-delay: 0.7s; }
.nav-item:nth-child(8) { animation-delay: 0.8s; }
/* 响应式设计 */
@media (max-width: 768px) {
.navigation-menu-page {
padding: 60px 0 40px;
}
.page-title {
font-size: 2.5rem;
}
.page-subtitle {
font-size: 1.1rem;
}
.navigation-grid {
grid-template-columns: 1fr;
gap: 20px;
margin-bottom: 40px;
}
.nav-item {
padding: 30px 20px;
}
.nav-icon {
width: 70px;
height: 70px;
margin-bottom: 20px;
}
.nav-icon svg {
width: 40px;
height: 40px;
}
.nav-title {
font-size: 1.3rem;
}
.nav-description {
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.navigation-menu-page .container {
padding: 0 15px;
}
.page-title {
font-size: 2rem;
}
.nav-item {
padding: 25px 15px;
}
.nav-icon {
width: 60px;
height: 60px;
}
.nav-icon svg {
width: 32px;
height: 32px;
}
}
/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
.navigation-menu-page {
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
.page-title {
color: #ecf0f1;
}
.page-subtitle {
color: #bdc3c7;
}
.nav-item {
background: rgba(52, 73, 94, 0.8);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-item:hover {
background: rgba(52, 73, 94, 0.9);
}
.nav-title {
color: #ecf0f1;
}
.nav-description {
color: #bdc3c7;
}
.navigation-footer {
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.navigation-footer p {
color: #bdc3c7;
}
}
/* 打印样式 */
@media print {
.navigation-menu-page {
background: white;
padding: 20px 0;
}
.nav-item {
background: white;
box-shadow: none;
border: 1px solid #ddd;
break-inside: avoid;
margin-bottom: 20px;
}
.nav-icon {
background: #667eea;
}
.contact-btn {
background: #667eea;
}
}
/* ========================================
Block Navigation Menu
======================================== */
/* 区块容器 */
.navigation-menu-block {
margin: 20px 0;
padding: 0;
}
.navigation-menu-container {
width: 100%;
max-width: 100%;
}
/* 导航菜单容器 */
.navigation-menu-nav {
position: relative;
}
/* 主菜单列表 */
.navigation-menu-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 40px;
background: transparent;
border-radius: 0;
box-shadow: none;
overflow: visible;
align-items: center;
justify-content: center;
}
/* 菜单项 */
.navigation-menu-list li {
position: relative;
margin: 0;
padding: 0;
border: none;
}
.navigation-menu-list li:last-child {
border-right: none;
}
/* 菜单链接 */
.navigation-menu-list a {
display: flex;
align-items: center;
padding: 12px 0;
color: #666666;
text-decoration: none;
font-weight: 400;
font-size: 16px;
transition: all 0.3s ease;
white-space: nowrap;
position: relative;
border-bottom: 2px solid transparent;
}
.navigation-menu-list a:hover {
background: transparent;
color: #333333;
}
/* 当前页面菜单项 */
.navigation-menu-list .active > a,
.navigation-menu-list .current-menu-item > a,
.navigation-menu-list .current-menu-parent > a {
background: transparent;
color: #333333;
border-bottom-color: #007cba;
font-weight: 500;
}
/* 下拉箭头 */
.dropdown-arrow {
margin-left: 8px;
font-size: 12px;
transition: transform 0.3s ease;
}
.dropdown-arrow::before {
content: '▼';
}
/* 子菜单 */
.sub-menu {
position: absolute;
top: 100%;
left: 0;
min-width: 200px;
background: white;
border-radius: 6px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s ease;
z-index: 1000;
list-style: none;
margin: 0;
padding: 8px 0;
border: 1px solid #e9ecef;
}
/* 显示子菜单 */
.has-dropdown:hover .sub-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.has-dropdown:hover .dropdown-arrow {
transform: rotate(180deg);
}
/* 子菜单项 */
.sub-menu li {
border: none;
border-bottom: 1px solid #f1f3f4;
}
.sub-menu li:last-child {
border-bottom: none;
}
.sub-menu a {
padding: 12px 20px;
font-size: 13px;
color: #495057;
border-radius: 0;
}
.sub-menu a:hover {
background: #f8f9fa;
color: #667eea;
padding-left: 25px;
}
/* 三级菜单 */
.sub-menu .sub-menu {
top: 0;
left: 100%;
margin-left: 1px;
}
/* 主题样式变体 */
.navigation-menu-block.theme-dark .navigation-menu-list {
background: #2c3e50;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.navigation-menu-block.theme-dark .navigation-menu-list li {
border-right-color: #34495e;
}
.navigation-menu-block.theme-dark .navigation-menu-list a {
color: #ecf0f1;
}
.navigation-menu-block.theme-dark .navigation-menu-list a:hover {
background: #34495e;
color: #3498db;
}
.navigation-menu-block.theme-dark .sub-menu {
background: #2c3e50;
border-color: #34495e;
}
.navigation-menu-block.theme-dark .sub-menu a {
color: #bdc3c7;
}
/* 对齐方式 */
.navigation-menu-block.align-center .navigation-menu-list {
justify-content: center;
}
.navigation-menu-block.align-right .navigation-menu-list {
justify-content: flex-end;
}
/* 边框样式 */
.navigation-menu-block.has-border {
border-bottom: 2px solid #e9ecef;
padding-bottom: 20px;
}
/* 无菜单时的提示信息 */
.navigation-menu-fallback {
padding: 40px 20px;
text-align: center;
background: #f8f9fa;
border-radius: 8px;
border: 2px dashed #dee2e6;
}
.no-menu-message {
color: #6c757d;
font-size: 16px;
margin: 0 0 15px 0;
}
.admin-notice {
margin: 0;
}
.admin-notice a {
color: #667eea;
text-decoration: none;
font-weight: 500;
}
.admin-notice a:hover {
text-decoration: underline;
}
/* 响应式设计 */
@media (max-width: 768px) {
.navigation-menu-block {
padding: 15px;
}
.navigation-menu-list {
flex-direction: column;
gap: 0;
align-items: flex-start;
}
.navigation-menu-list li {
border: none;
width: 100%;
border-bottom: 1px solid #e9ecef;
}
.navigation-menu-list li:last-child {
border-bottom: none;
}
.navigation-menu-list a {
padding: 15px 0;
font-size: 16px;
width: 100%;
border-bottom: 2px solid transparent;
white-space: normal; /* Allow text wrapping on mobile */
box-sizing: border-box; /* Ensure padding doesn't increase width */
overflow-wrap: break-word; /* Break long words if necessary */
}
.navigation-menu-list .current-menu-item > a,
.navigation-menu-list .active > a {
border-bottom-color: #007cba;
}
/* 移动端子菜单 */
.sub-menu {
position: static;
opacity: 1;
visibility: visible;
transform: none;
box-shadow: none;
border: none;
border-radius: 0;
background: #f8f9fa;
margin-left: 20px;
display: none;
min-width: unset; /* Reset min-width for mobile */
width: auto;
}
.has-dropdown:hover .sub-menu {
display: block;
}
.sub-menu a {
padding: 10px 15px;
font-size: 14px;
box-sizing: border-box;
}
.dropdown-arrow::before {
content: '▶';
}
.has-dropdown:hover .dropdown-arrow::before {
content: '▼';
}
}
@media (max-width: 480px) {
.navigation-menu-list a {
padding: 10px 12px;
font-size: 14px;
}
.sub-menu a {
padding: 8px 12px;
font-size: 13px;
}
}

@ -0,0 +1,122 @@
.products-services-block {
width: 100%;
padding: 40px 20px;
box-sizing: border-box;
margin-top: 1rem;
}
.products-services-container {
max-width: 57%;
margin: 0 auto;
}
.products-services-header {
text-align: center;
margin-bottom: 60px;
/* 初始状态:隐藏并向下偏移 */
opacity: 1;
transform: translateY(30px);
}
.products-services-subtitle {
font-size: 14px;
color: #999;
letter-spacing: 2px;
margin: 0 0 10px 0;
font-weight: 400;
}
.products-services-title {
font-size: 36px;
color: #333;
margin: 0;
font-weight: 600;
}
.products-services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
align-items: flex-start;
}
.products-services-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
cursor: pointer;
margin: 20px;
/* 初始状态隐藏并向下偏移等待GSAP动画 */
opacity: 0;
transform: translateY(50px);
}
.products-services-image {
width: 100%;
max-width: 300px;
height: auto;
display: flex;
justify-content: center;
align-items: center;
}
.products-services-image img {
width: 100%;
height: auto;
object-fit: contain;
}
.products-services-item-title {
margin-top: 20px;
font-size: 18px;
color: #333;
font-weight: 500;
margin-bottom: 0;
}
/* 响应式设计 */
@media (max-width: 768px) {
.products-services-grid {
grid-template-columns: 1fr;
gap: 0;
}
.products-services-item {
margin: 15px 0;
}
.products-services-block {
padding: 20px 15px;
}
.products-services-image {
max-width: 250px;
}
.products-services-title {
font-size: 28px;
}
.products-services-header {
margin-bottom: 40px;
}
}
@media (max-width: 1024px) and (min-width: 769px) {
.products-services-grid {
gap: 0;
}
.products-services-item {
margin: 18px;
}
.products-services-image {
max-width: 280px;
}
.products-services-title {
font-size: 32px;
}
}

@ -0,0 +1,253 @@
/**
* CSS
* GSAP ScrollTrigger 使
* 使CSS
*/
/* ===== 基础动画配置 ===== */
.scroll-animate {
/* 确保动画平滑 */
will-change: transform, opacity;
/* 硬件加速 */
transform: translateZ(0);
backface-visibility: hidden;
perspective: 1000px;
}
/* ===== Fade In Up 动画 ===== */
.fade-in-up {
opacity: 0;
transform: translateY(50px);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up.animate-active {
opacity: 1;
transform: translateY(0);
}
/* ===== Fade In Down 动画 ===== */
.fade-in-down {
opacity: 0;
transform: translateY(-50px);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-down.animate-active {
opacity: 1;
transform: translateY(0);
}
/* ===== Fade In Left 动画 ===== */
.fade-in-left {
opacity: 0;
transform: translateX(-50px);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-left.animate-active {
opacity: 1;
transform: translateX(0);
}
/* ===== Fade In Right 动画 ===== */
.fade-in-right {
opacity: 0;
transform: translateX(50px);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-right.animate-active {
opacity: 1;
transform: translateX(0);
}
/* ===== Scale In 动画 ===== */
.scale-in {
opacity: 0;
transform: scale(0.8);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scale-in.animate-active {
opacity: 1;
transform: scale(1);
}
/* ===== Rotate In 动画 ===== */
.rotate-in {
opacity: 0;
transform: rotate(-10deg) scale(0.9);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rotate-in.animate-active {
opacity: 1;
transform: rotate(0deg) scale(1);
}
/* ===== 组合动画 ===== */
.fade-scale-up {
opacity: 0;
transform: translateY(30px) scale(0.95);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-scale-up.animate-active {
opacity: 1;
transform: translateY(0) scale(1);
}
/* ===== 动画延迟类 ===== */
.animate-delay-100 { transition-delay: 0.1s; }
.animate-delay-200 { transition-delay: 0.2s; }
.animate-delay-300 { transition-delay: 0.3s; }
.animate-delay-400 { transition-delay: 0.4s; }
.animate-delay-500 { transition-delay: 0.5s; }
.animate-delay-600 { transition-delay: 0.6s; }
.animate-delay-700 { transition-delay: 0.7s; }
.animate-delay-800 { transition-delay: 0.8s; }
/* ===== 动画速度类 ===== */
.animate-fast {
transition-duration: 0.4s !important;
}
.animate-slow {
transition-duration: 1.2s !important;
}
.animate-slower {
transition-duration: 1.6s !important;
}
/* ===== 动画缓动函数类 ===== */
.animate-ease-out {
transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.animate-ease-in-out {
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1) !important;
}
.animate-bounce {
transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}
/* ===== 特殊效果 ===== */
.blur-in {
opacity: 0;
filter: blur(10px);
transform: translateY(20px);
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blur-in.animate-active {
opacity: 1;
filter: blur(0px);
transform: translateY(0);
}
/* ===== 文字动画 ===== */
.text-reveal {
opacity: 0;
transform: translateY(100%);
display: inline-block;
transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.text-reveal.animate-active {
opacity: 1;
transform: translateY(0);
}
/* ===== 容器动画(用于包含多个子元素的情况) ===== */
.stagger-container .stagger-item {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stagger-container.animate-active .stagger-item:nth-child(1) {
transition-delay: 0.1s;
}
.stagger-container.animate-active .stagger-item:nth-child(2) {
transition-delay: 0.2s;
}
.stagger-container.animate-active .stagger-item:nth-child(3) {
transition-delay: 0.3s;
}
.stagger-container.animate-active .stagger-item:nth-child(4) {
transition-delay: 0.4s;
}
.stagger-container.animate-active .stagger-item:nth-child(5) {
transition-delay: 0.5s;
}
.stagger-container.animate-active .stagger-item {
opacity: 1;
transform: translateY(0);
}
/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
.fade-in-up,
.fade-in-down,
.fade-in-left,
.fade-in-right,
.scale-in,
.rotate-in,
.fade-scale-up,
.blur-in {
/* 移动端减少动画距离 */
transform: translateY(20px);
transition-duration: 0.6s;
}
.fade-in-left {
transform: translateX(-20px);
}
.fade-in-right {
transform: translateX(20px);
}
}
/* ===== 减少动画偏好设置支持 ===== */
@media (prefers-reduced-motion: reduce) {
.fade-in-up,
.fade-in-down,
.fade-in-left,
.fade-in-right,
.scale-in,
.rotate-in,
.fade-scale-up,
.blur-in,
.text-reveal,
.stagger-item {
transition-duration: 0.01ms !important;
transition-delay: 0.01ms !important;
}
}
/* ===== 调试模式 ===== */
.scroll-animate-debug {
position: relative;
}
.scroll-animate-debug::before {
content: 'ScrollTrigger Debug';
position: absolute;
top: -20px;
left: 0;
background: rgba(255, 0, 0, 0.8);
color: white;
padding: 2px 6px;
font-size: 10px;
z-index: 9999;
pointer-events: none;
}

@ -0,0 +1,360 @@
/**
*
* Search Results Page Styles
*/
/* 搜索结果区域 */
.search-results-section {
padding: 40px 0;
background: #f8f9fa;
min-height: 60vh;
}
.search-results-section .container {
max-width: 1300px;
margin: 0 auto;
padding: 0 20px;
}
.search-results-header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid #e9ecef;
}
.search-results-header h2 {
font-size: 2rem;
color: #333;
margin-bottom: 10px;
font-weight: 600;
}
.search-results-header p {
color: #666;
font-size: 1rem;
margin: 0;
}
/* 文章网格布局 */
.posts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
margin-bottom: 40px;
}
/* 文章卡片样式 */
.post-card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
overflow: hidden;
border: 1px solid #e9ecef;
}
.post-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
border-color: #126594;
}
/* 文章缩略图 */
.post-thumbnail {
position: relative;
height: 400px;
overflow: hidden;
}
.post-thumbnail a {
display: block;
width: 100%;
height: 100%;
}
.post-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.post-thumbnail:hover img {
transform: scale(1.05);
}
/* 无图片占位符 */
.no-image-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
color: #666;
height: 100%;
width: 100%;
transition: all 0.3s ease;
}
.post-card:hover .no-image-placeholder {
background: linear-gradient(135deg, #126594 0%, #1e7e34 100%);
color: white;
}
.no-image-placeholder i {
font-size: 2.5rem;
margin-bottom: 8px;
opacity: 0.7;
}
.no-image-placeholder span {
font-size: 0.9rem;
font-weight: 500;
}
/* 文章内容 */
.post-content {
padding: 20px;
}
.post-title {
margin: 0 0 15px 0;
font-size: 1.25rem;
line-height: 1.4;
font-weight: 600;
}
.post-title a {
color: #333;
text-decoration: none;
transition: color 0.3s ease;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.post-title a:hover {
color: #126594;
}
/* 文章元信息 */
.post-meta {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 15px;
font-size: 0.875rem;
color: #666;
}
.post-meta span {
display: flex;
align-items: center;
gap: 5px;
}
.post-meta i {
font-size: 0.8rem;
opacity: 0.8;
}
.post-category a {
color: #666;
text-decoration: none;
transition: color 0.3s ease;
}
.post-category a:hover {
color: #126594;
}
/* 文章摘要 */
.post-excerpt {
color: #666;
font-size: 0.95rem;
line-height: 1.6;
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* 无结果提示 */
.no-posts {
text-align: center;
background: white;
padding: 60px 40px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
max-width: 600px;
margin: 0 auto;
}
.no-posts h3 {
color: #333;
font-size: 1.5rem;
margin-bottom: 15px;
font-weight: 600;
}
.no-posts p {
color: #666;
margin-bottom: 20px;
line-height: 1.6;
}
.no-posts ul {
text-align: left;
color: #666;
line-height: 1.8;
margin: 0;
padding-left: 20px;
}
.no-posts li {
margin-bottom: 8px;
}
/* 分页样式增强 */
.search-results-section .pagination {
margin-top: 50px;
text-align: center;
padding-top: 30px;
border-top: 1px solid #e9ecef;
}
.search-results-section .pagination .page-numbers {
display: inline-block;
padding: 10px 15px;
margin: 0 5px;
border-radius: 8px;
background: white;
color: #333;
text-decoration: none;
transition: all 0.3s ease;
border: 1px solid #e9ecef;
font-weight: 500;
}
.search-results-section .pagination .page-numbers.current {
background: #126594;
color: white;
border-color: #126594;
}
.search-results-section .pagination .page-numbers:hover:not(.current) {
background: #f8f9fa;
border-color: #126594;
color: #126594;
transform: translateY(-2px);
}
/* 响应式设计 */
@media screen and (max-width: 1024px) {
.posts-grid {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
}
}
@media screen and (max-width: 768px) {
.search-results-section {
padding: 30px 0;
}
.posts-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.search-results-header h2 {
font-size: 1.5rem;
}
.post-content {
padding: 15px;
}
.post-meta {
gap: 10px;
font-size: 0.8rem;
}
.no-posts {
padding: 40px 20px;
margin: 0 15px;
}
/* 移动端分页优化:三行布局 */
.search-results-section .pagination {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 10px;
margin-top: 30px;
padding-top: 20px;
}
.search-results-section .pagination .page-numbers {
display: inline-flex;
padding: 8px 12px;
margin: 0 2px;
font-size: 14px;
line-height: 1.2;
border: 1px solid #eee;
border-radius: 4px;
background: #fff;
}
/* 上一页按钮:独占一行,放在最上面 */
.search-results-section .pagination .prev {
width: 100%;
order: 1;
justify-content: center;
margin-bottom: 5px;
padding: 10px;
background: #fff;
border: 1px solid #ddd;
}
/* 页码:放在中间 */
.search-results-section .pagination .page-numbers:not(.prev):not(.next) {
order: 2;
}
/* 下一页按钮:独占一行,放在最下面 */
.search-results-section .pagination .next {
width: 100%;
order: 3;
justify-content: center;
margin-top: 5px;
padding: 10px;
background: #fff;
border: 1px solid #ddd;
flex-shrink: 0;
}
}
@media screen and (max-width: 480px) {
.post-thumbnail {
height: 180px;
}
.post-title {
font-size: 1.1rem;
}
.search-results-header {
margin-bottom: 30px;
}
.search-results-header h2 {
font-size: 1.3rem;
}
}

@ -0,0 +1,738 @@
/**
*
*
*/
/* 新闻搜索模块样式 */
.news-search-section {
position: relative;
background-image: url('../images/search-bg.webp');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 80px 0;
height: 400px;
margin: 0;
overflow: hidden;
}
.news-search-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
.news-search-section .search-container {
position: relative;
z-index: 2;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
margin-top: 65px;
}
.search-header {
margin-bottom: 40px;
}
.search-title {
color: #ffffff;
font-size: 48px;
font-weight: 600;
margin: 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
letter-spacing: 2px;
}
.search-form-wrapper {
display: flex;
justify-content: center;
align-items: center;
}
.news-search-form {
width: 100%;
max-width: 800px;
}
.search-controls {
display: flex;
align-items: center;
gap: 0;
background: rgba(255, 255, 255, 0.95);
border-radius: 50px;
padding: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* 分类选择器样式 */
.category-selector {
position: relative;
flex: 0 0 180px;
}
.category-dropdown {
width: 100%;
height: 50px;
border: none;
background: transparent;
padding: 0 40px 0 20px;
font-size: 16px;
color: #666;
outline: none;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border-radius: 25px;
transition: all 0.3s ease;
}
.category-dropdown:focus {
color: #333;
}
/* 搜索输入框样式 */
.news-search-form .search-input-wrapper {
position: relative;
flex: 1;
margin: 0 8px;
}
.news-search-form .search-input {
width: 100%;
height: 50px;
border: none;
background: transparent;
padding: 0 20px;
font-size: 16px;
color: #333;
outline: none;
border-radius: 25px;
transition: all 0.3s ease;
}
.news-search-form .search-input::placeholder {
color: #999;
font-weight: 400;
}
.news-search-form .search-input:focus {
background: rgba(255, 255, 255, 0.1);
}
/* 搜索建议样式 */
.search-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border-radius: 15px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
max-height: 300px;
overflow-y: auto;
z-index: 1000;
display: none;
margin-top: 8px;
}
.search-suggestions.show {
display: block;
}
.suggestion-item {
padding: 12px 20px;
cursor: pointer;
border-bottom: 1px solid #f0f0f0;
transition: all 0.2s ease;
color: #333;
font-size: 14px;
}
.suggestion-item:hover,
.suggestion-item.active {
background: #f8f9fa;
color: #007bff;
}
.suggestion-item:last-child {
border-bottom: none;
}
/* 搜索按钮样式 */
.search-button {
flex: 0 0 50px;
height: 50px;
background: linear-gradient(135deg, #007bff, #0056b3);
border: none;
border-radius: 25px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.search-button:hover {
background: linear-gradient(135deg, #0056b3, #004085);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}
.search-button:active {
transform: translateY(0);
}
.search-button svg {
width: 20px;
height: 20px;
}
/* 响应式设计 */
@media (max-width: 768px) {
.news-search-section {
padding: 60px 0;
}
.search-title {
font-size: 32px;
margin-bottom: 30px;
}
.search-controls {
flex-direction: column;
gap: 12px;
padding: 20px;
border-radius: 25px;
}
.category-selector,
.news-search-form .search-input-wrapper {
flex: none;
width: 100%;
margin: 0;
}
.category-dropdown,
.news-search-form .search-input {
height: 48px;
text-align: center;
}
.search-button {
flex: none;
width: 100%;
height: 48px;
border-radius: 24px;
}
}
@media (max-width: 480px) {
.news-search-section {
padding: 40px 0;
}
.news-search-section .search-container {
padding: 0 15px;
}
.search-title {
font-size: 28px;
letter-spacing: 1px;
}
.search-controls {
padding: 15px;
}
.news-search-section .search-container {
padding: 0 !important;
}
}
@media (min-width: 769px) and (max-width: 1024px) {
.search-title {
font-size: 42px;
}
.search-controls {
max-width: 700px;
margin: 0 auto;
}
.category-selector {
flex: 0 0 160px;
}
}
/* 搜索按钮样式 */
.nav-search {
position: relative;
display: flex;
align-items: center;
flex-shrink: 0;
}
.search-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(0, 0, 0, 0.05);
border: none;
border-radius: 8px;
cursor: pointer;
margin-left: 15px;
padding: 0;
transition: all 0.3s ease;
}
.search-toggle:hover {
background: rgba(0, 0, 0, 0.1);
transform: scale(1.05);
}
.search-icon {
width: 20px;
height: 20px;
stroke: #333;
fill: none;
transition: stroke 0.3s ease;
}
.search-toggle:hover .search-icon {
stroke: #007bff;
}
/* 搜索框弹出层 */
.search-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-overlay.active {
opacity: 1;
visibility: visible;
}
/* 搜索容器 */
.search-container {
position: relative;
width: 100%;
height: 100%;
transform: translateY(-50px) scale(0.9);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
display: flex;
align-items: center;
justify-content: center;
}
.search-overlay.active .search-container {
transform: translateY(0) scale(1);
}
/* 拟态风格搜索框 */
.search-box {
background: #f0f0f0;
border-radius: 25px;
padding: 40px;
position: relative;
width: 90%;
max-width: 800px;
}
.search-form {
display: flex;
flex-direction: column;
gap: 20px;
}
/* 搜索输入区域 */
.search-input-wrapper {
position: relative;
display: flex;
align-items: center;
background: #f0f0f0;
border-radius: 50px;
padding: 0 20px;
border: 1px solid #ddd;
transition: all 0.3s ease;
}
.search-input-wrapper:focus-within {
border-color: #0073aa;
}
.search-input-icon {
color: #999;
margin-right: 15px;
flex-shrink: 0;
}
.search-input {
flex: 1;
border: none;
background: transparent;
padding: 20px 0;
font-size: 18px;
color: #333;
outline: none;
font-family: inherit;
}
.search-input::placeholder {
color: #999;
font-weight: 400;
}
.search-close {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 50%;
background: #e6e6e6;
cursor: pointer;
color: #666;
transition: all 0.3s ease;
margin-left: 10px;
}
.search-close:hover {
background: #ddd;
color: #333;
}
.search-close:active {
background: linear-gradient(145deg, #d1d1d1, #e6e6e6);
box-shadow:
inset 2px 2px 4px #bebebe,
inset -2px -2px 4px #ffffff;
transform: scale(0.95);
}
/* 搜索提交按钮 */
.search-submit {
align-self: center;
padding: 18px 50px;
border: none;
border-radius: 50px;
background: #007bff;
color: white;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
min-width: 140px;
box-shadow:
8px 8px 16px #bebebe,
-8px -8px 16px #ffffff;
}
.search-submit:hover {
background: #0056b3;
}
.search-submit:active {
background: #004085;
}
/* 响应式设计 */
@media (max-width: 768px) {
.nav-search {
position: relative;
z-index: 10001;
}
.search-toggle {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
backdrop-filter: blur(10px);
}
.search-toggle:hover {
background: rgba(255, 255, 255, 0.2);
}
.search-toggle .search-icon {
stroke: #fff;
}
.search-toggle:hover .search-icon {
stroke: #007bff;
}
.search-container {
width: 100%;
height: 100%;
padding: 20px;
}
.search-box {
padding: 25px;
border-radius: 20px;
width: 100%;
max-width: none;
}
.search-input-wrapper {
padding: 0 15px;
}
.search-input {
padding: 15px 0;
font-size: 14px;
}
.search-submit {
padding: 12px 30px;
font-size: 14px;
}
}
@media (max-width: 480px) {
.search-box {
padding: 15px;
}
.search-form {
gap: 15px;
}
.search-input-wrapper {
padding: 0 12px;
}
.search-input {
padding: 12px 0;
}
.search-submit {
padding: 10px 25px;
min-width: 100px;
}
}
/* 搜索按钮激活状态 */
.search-toggle.active {
background-color: rgba(255, 255, 255, 0.1);
}
/* 搜索结果提示 */
.search-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #f0f0f0;
border-radius: 0 0 20px 20px;
border: 1px solid #ddd;
border-top: none;
max-height: 200px;
overflow-y: auto;
z-index: 10;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s ease;
}
.search-suggestions.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.search-suggestion-item {
padding: 12px 20px;
cursor: pointer;
transition: background-color 0.2s ease;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.search-suggestion-item:hover {
background: rgba(0, 123, 255, 0.1);
}
.search-suggestion-item:last-child {
border-bottom: none;
}
/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
.search-overlay,
.search-container,
.search-toggle,
.search-close,
.search-submit {
transition: none;
}
.search-toggle.active {
animation: none;
}
}
/* 高对比度模式 */
@media (prefers-contrast: high) {
.search-toggle {
border: 2px solid #000;
}
.search-box {
border: 2px solid #000;
}
.search-input-wrapper {
border: 1px solid #666;
}
}
/* 震动动画效果 */
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
20%, 40%, 60%, 80% { transform: translateX(10px); }
}
.search-input.shake {
animation: shake 0.6s ease-in-out;
}
/* 新闻搜索模块样式 */
.news-search-section {
background: url('../images/search-bg.webp') center/cover no-repeat;
padding: 80px 0;
position: relative;
overflow: hidden;
}
.news-search-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
.news-search-section .search-container {
position: relative;
z-index: 2;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 40px;
margin-top: 65px;
}
/* 搜索标题样式 */
.search-header {
text-align: center;
margin-bottom: 0;
}
.search-title {
font-size: 48px;
font-weight: 700;
color: white;
margin: 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
letter-spacing: 2px;
}
/* 搜索表单包装器 */
.search-form-wrapper {
width: 100%;
max-width: 800px;
margin: 0;
}
.news-search-form {
width: 100%;
}
.news-search-form .search-controls {
display: flex;
align-items: center;
gap: 0;
background: rgba(255, 255, 255, 0.95);
border-radius: 50px;
padding: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* 响应式设计 */
@media (max-width: 768px) {
.news-search-section {
padding: 60px 0;
}
.search-title {
font-size: 32px;
margin-bottom: 30px;
}
.news-search-form .search-controls {
flex-direction: column;
gap: 12px;
padding: 20px;
border-radius: 25px;
}
.category-selector,
.news-search-form .search-input-wrapper {
flex: none;
width: 100%;
margin: 0;
}
.category-dropdown,
.news-search-form .search-input {
height: 48px;
text-align: center;
}
.search-button {
flex: none;
width: 100%;
height: 48px;
border-radius: 24px;
}
}

@ -0,0 +1,251 @@
/**
* Simple Carousel CSS - Swiper
*
*/
/* 轮播容器基础样式 */
.simple-carousel {
position: relative;
width: 100%;
overflow: hidden;
background: #fff;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* 轮播包装器 */
.carousel-wrapper {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
transition: transform 0.5s ease;
}
/* 幻灯片样式 */
.carousel-slide {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding: 40px;
gap: 40px;
flex-shrink: 0;
transition: all 0.3s ease;
}
/* 导航按钮样式 */
.carousel-button-next,
.carousel-button-prev {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 50%;
color: #007bff;
font-size: 18px;
cursor: pointer;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.carousel-button-next:hover,
.carousel-button-prev:hover {
background: #007bff;
color: white;
transform: translateY(-50%) scale(1.1);
}
.carousel-button-next {
right: 20px;
}
.carousel-button-prev {
left: 20px;
}
.carousel-button-next::after {
content: '';
font-weight: bold;
}
.carousel-button-prev::after {
content: '';
font-weight: bold;
}
/* 分页器样式 */
.carousel-pagination {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
z-index: 10;
}
.carousel-pagination-bullet {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.carousel-pagination-bullet:hover {
background: rgba(255, 255, 255, 0.8);
transform: scale(1.2);
}
.carousel-pagination-bullet.active {
background: #007bff;
border-color: rgba(255, 255, 255, 0.8);
transform: scale(1.3);
}
/* 图片区域样式 */
.slide-image {
flex: 1;
max-width: 45%;
}
.slide-image img {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* 文字区域样式 */
.slide-content {
flex: 1;
max-width: 55%;
padding-left: 20px;
}
.slide-title {
font-size: 28px;
font-weight: bold;
color: #333;
margin-bottom: 20px;
border-left: 4px solid #007bff;
padding-left: 15px;
}
.slide-description {
font-size: 16px;
line-height: 1.8;
color: #666;
text-align: justify;
}
/* 响应式设计 */
@media (max-width: 768px) {
.carousel-slide {
flex-direction: column;
padding: 20px;
gap: 20px;
}
.slide-image,
.slide-content {
max-width: 100%;
}
.slide-content {
padding-left: 0;
}
.carousel-wrapper {
height: 400px;
}
.slide-title {
font-size: 24px;
}
.slide-description {
font-size: 14px;
}
.carousel-button-next,
.carousel-button-prev {
width: 36px;
height: 36px;
font-size: 16px;
}
.carousel-button-next {
right: 10px;
}
.carousel-button-prev {
left: 10px;
}
.carousel-pagination {
bottom: 10px;
}
.carousel-pagination-bullet {
width: 10px;
height: 10px;
}
}
/* 禁用选择和拖拽 */
.simple-carousel * {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-user-drag: none;
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
}
/* 触摸优化 */
.carousel-wrapper {
touch-action: pan-y pinch-zoom;
-webkit-overflow-scrolling: touch;
}
/* 加载状态 */
.simple-carousel.loading {
opacity: 0.7;
pointer-events: none;
}
.simple-carousel.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
border: 3px solid #f3f3f3;
border-top: 3px solid #007bff;
border-radius: 50%;
animation: spin 1s linear infinite;
z-index: 100;
}
@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@ -0,0 +1,554 @@
/**
*
* Single Page Article Sidebar Styles
*/
/* 重置和基础样式 */
.single-page-container,
.single-page-container * {
box-sizing: border-box;
}
/* 确保不受全局样式影响 */
.single-page-container {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.single-page-container a {
color: inherit;
text-decoration: none;
}
.single-page-container img {
max-width: 100%;
height: auto;
display: block;
}
/* 主容器布局 */
.single-page-container {
display: flex;
max-width: 1400px;
margin: 0 auto;
gap: 40px;
padding: 20px;
min-height: calc(100vh - 200px);
position: relative;
z-index: 1;
background: transparent;
align-items: flex-start;
}
/* 左侧侧边栏 */
.sidebar-left {
width: 20%;
flex-shrink: 0;
border-radius: 12px;
padding: 24px;
height: fit-content;
position: sticky;
top: 20px;
min-width: 280px;
}
/* 侧边栏头部 */
.sidebar-header {
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 1px solid #e5e7eb;
}
.sidebar-left .back-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: #6b7280 !important;
text-decoration: none !important;
font-size: 14px;
font-weight: 500 !important;
transition: color 0.3s ease;
}
.sidebar-left .back-link:hover {
color: #3b82f6 !important;
font-weight: 500 !important;
}
.back-link svg {
transition: transform 0.3s ease;
}
.back-link:hover svg {
transform: translateX(-2px);
}
/* 文章列表容器 */
.recent-articles {
display: flex;
flex-direction: column;
gap: 6px;
width: 100%;
overflow: hidden;
}
/* 文章项目 */
.sidebar-left .article-item {
display: block;
padding: 8px;
border-radius: 6px;
transition: all 0.3s ease;
cursor: pointer;
border: 1px solid transparent;
width: 100%;
box-sizing: border-box;
}
.sidebar-left .article-item:hover {
background: #f8fafc;
border-color: #e2e8f0;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
/* 文章内容 */
.sidebar-left .article-content {
width: 100%;
display: flex;
flex-direction: column;
gap: 3px;
}
.sidebar-left .article-title {
margin: 0;
font-size: 14px;
font-weight: 500;
line-height: 1.4;
color: #333;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
}
.sidebar-left .article-title a {
color: inherit !important;
text-decoration: none !important;
transition: color 0.3s ease;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-weight: inherit !important;
}
.sidebar-left .article-title a:hover {
color: #3b82f6 !important;
font-weight: 600 !important;
}
.sidebar-left .article-date {
margin: 0;
font-size: 12px;
color: #666;
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 右侧主要内容区域 */
.main-content {
width: 80%;
flex: 0 0 80%;
min-width: 0;
}
.main-content .article-c {
background: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
padding: 40px;
width: 100%;
box-sizing: border-box;
}
.main-content .article-content {
padding: 70px;
width: 100%;
box-sizing: border-box;
}
/* 文章头部 */
.article-header {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #e5e7eb;
}
.article-header .article-title {
margin: 0 0 15px 0;
font-size: 28px;
font-weight: 700;
line-height: 1.3;
color: #1f2937;
}
.article-meta {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
}
.article-meta .article-time {
margin: 0;
font-size: 14px;
color: #6b7280;
font-weight: 400;
}
.article-categories {
font-size: 14px;
color: #6b7280;
}
.article-categories a {
color: #3b82f6;
text-decoration: none;
transition: color 0.2s ease;
}
.article-categories a:hover {
color: #1d4ed8;
}
/* 文章主体内容 */
.article-body {
line-height: 1.8;
color: #374151;
}
/* 文章底部 */
.article-footer {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #e5e7eb;
}
.article-tags {
font-size: 14px;
color: #6b7280;
}
.tags-label {
font-weight: 500;
margin-right: 8px;
}
.article-tags a {
color: #3b82f6;
text-decoration: none;
transition: color 0.2s ease;
}
.article-tags a:hover {
color: #1d4ed8;
}
/* 无障碍访问 */
.screen-reader-text {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
/* 无文章提示 */
.no-articles {
text-align: center;
color: #6b7280;
font-style: italic;
padding: 20px;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.single-page-container {
gap: 30px;
padding: 15px;
}
.sidebar-left {
width: 25%;
min-width: 260px;
top: auto;
}
.sidebar-left .article-image {
width: 50px;
height: 38px;
}
.sidebar-left .article-content {
min-height: 38px;
}
.sidebar-left .article-title {
font-size: 12px;
line-height: 1.2;
}
.sidebar-left .article-date {
font-size: 10px;
}
.main-content {
width: 75%;
flex: 0 0 75%;
}
.main-content .article-c {
padding: 30px;
}
}
@media (max-width: 991.98px) {
.single-page-container {
flex-direction: column;
gap: 20px;
padding: 15px;
min-height: auto;
}
.sidebar-left {
width: 100%;
position: static;
order: 2;
margin-top: 20px;
top: auto;
}
.main-content {
order: 1;
width: 100%;
}
.main-content .article-content {
width: 100%;
padding: 25px;
}
.article-header .article-title {
font-size: 24px;
}
.article-meta {
gap: 15px;
}
.recent-articles {
gap: 8px;
}
.sidebar-left .article-item {
gap: 6px;
padding: 6px;
}
.sidebar-left .article-image {
width: 45px;
height: 34px;
}
.sidebar-left .article-content {
min-height: 34px;
}
.sidebar-left .article-title {
font-size: 11px;
line-height: 1.2;
-webkit-line-clamp: 1;
}
.sidebar-left .article-date {
font-size: 9px;
}
.recent-articles {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 12px;
}
.sidebar-left .article-item {
flex-direction: column;
text-align: center;
}
.sidebar-left .article-image {
width: 100%;
height: 120px;
margin-bottom: 8px;
}
.sidebar-left .article-content {
min-height: auto;
}
}
@media (max-width: 576px) {
.single-page-container {
padding: 15px;
min-height: auto;
}
.sidebar-left {
width: 100%;
position: static;
margin-bottom: 20px;
padding: 15px;
}
.main-content {
width: 100%;
padding: 20px;
}
.main-content .article-content {
width: 100%;
padding: 20px;
}
.article-header {
margin-bottom: 20px;
padding-bottom: 15px;
}
.article-header .article-title {
font-size: 20px;
line-height: 1.4;
}
.article-meta {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.article-footer {
margin-top: 30px;
padding-top: 15px;
}
.recent-articles {
grid-template-columns: 1fr;
}
.sidebar-left .article-title {
font-size: 13px;
}
}
/* 加载动画 */
.sidebar-left .article-item {
opacity: 0;
transform: translateY(10px);
animation: fadeInUp 0.5s ease forwards;
}
.sidebar-left .article-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-left .article-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-left .article-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-left .article-item:nth-child(4) { animation-delay: 0.4s; }
.sidebar-left .article-item:nth-child(5) { animation-delay: 0.5s; }
.sidebar-left .article-item:nth-child(6) { animation-delay: 0.6s; }
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
/* 滚动条样式 */
.sidebar-left::-webkit-scrollbar {
width: 4px;
}
.sidebar-left::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 2px;
}
.sidebar-left::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 2px;
}
.sidebar-left::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* 搜索功能兼容性 */
.single-page-container {
isolation: isolate;
}
/* 确保不与搜索模块冲突 */
.news-search-section + .single-page-container,
.search-results + .single-page-container {
margin-top: 30px;
clear: both;
background: #fff;
}
/* 搜索模块后的容器样式重置 */
.news-search-section + .single-page-container {
position: relative;
z-index: auto;
}
/* 防止与其他模块的样式冲突 */
.single-page-container .article-item {
position: relative;
z-index: auto;
}
.single-page-container .article-item:hover {
z-index: 1;
}
/* 确保容器不会溢出 */
.single-page-container {
overflow-x: hidden;
}
/* 修复可能的浮动问题 */
.single-page-container::after {
content: "";
display: table;
clear: both;
}
/* 确保主内容区域的标题样式 */
.main-content .article-c h1 {
margin-top: 0;
margin-bottom: 20px;
font-size: 28px;
font-weight: 700;
line-height: 1.3;
color: #1f2937;
}
.main-content .article-c .article-time {
margin-bottom: 30px;
color: #6b7280;
font-size: 14px;
}

@ -0,0 +1,173 @@
/**
* Smooth Scroll Styles
*
*
* @package Nenghui Energy Theme
* @since 1.0.0
*/
/* 回到顶部按钮样式 */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background: linear-gradient(135deg, #0066cc, #004499);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0;
visibility: hidden;
transform: translateY(20px);
z-index: 1000;
text-decoration: none;
}
.back-to-top:hover {
background: linear-gradient(135deg, #004499, #0066cc);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
color: white;
text-decoration: none;
}
.back-to-top:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.back-to-top svg {
width: 20px;
height: 20px;
}
/* 平滑滚动优化 */
html {
scroll-behavior: smooth;
}
/* 为支持平滑滚动的浏览器提供更好的体验 */
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
/* 优化滚动性能 */
* {
scroll-behavior: inherit;
}
}
/* 为偏好减少动画的用户禁用平滑滚动 */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.back-to-top {
transition: none;
}
}
/* 移动端适配 */
@media (max-width: 768px) {
.back-to-top {
bottom: 20px;
right: 20px;
width: 45px;
height: 45px;
font-size: 16px;
}
.back-to-top i {
font-size: 14px;
}
}
/* 小屏幕设备 */
@media (max-width: 480px) {
.back-to-top {
bottom: 15px;
right: 15px;
width: 40px;
height: 40px;
font-size: 14px;
}
.back-to-top i {
font-size: 12px;
}
}
/* 滚动条样式优化 */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #0066cc, #004499);
border-radius: 4px;
transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #004499, #0066cc);
}
/* Firefox滚动条样式 */
* {
scrollbar-width: thin;
scrollbar-color: #0066cc #f1f1f1;
}
/* 页面滚动时的视觉反馈 */
.scroll-indicator {
position: fixed;
top: 0;
left: 0;
width: 0;
height: 3px;
background: linear-gradient(90deg, #0066cc, #004499);
z-index: 9999;
transition: width 0.1s ease;
}
/* 锚点链接悬停效果 */
a[href^="#"]:hover {
transition: color 0.3s ease;
}
/* 平滑滚动时的页面优化 */
body.smooth-scrolling {
overflow-x: hidden;
}
/* 确保所有可滚动元素都有平滑滚动 */
.scrollable {
scroll-behavior: smooth;
}
/* 滚动容器优化 */
.scroll-container {
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}

@ -0,0 +1,328 @@
/**
* Social Activities Grid Styles
*
*
* @package Nenghui Energy Theme
* @since 1.0.0
*/
/* 社会活动容器 */
.social-activities-container {
max-width: 1200px;
margin: 0 auto;
padding: 60px 20px;
background: #ffffff;
}
/* 标题样式 */
.social-activities-header {
text-align: center;
margin-bottom: 50px;
}
.social-activities-header h2 {
font-size: 36px;
font-weight: 700;
color: #333;
margin: 0;
position: relative;
display: inline-block;
}
.social-activities-header h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: linear-gradient(90deg, #007bff, #0056b3);
border-radius: 2px;
}
/* 网格容器样式 */
.social-activities-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-bottom: 40px;
}
/* 查看更多按钮容器 */
.social-activities-footer {
text-align: center;
margin-top: 40px;
}
.view-more-btn {
display: inline-flex;
align-items: center;
padding: 12px 30px;
background: #0a6192;
color: #fff;
text-decoration: none;
border-radius: 25px;
font-size: 16px;
font-weight: 500;
transition: all 0.3s ease;
border: none;
cursor: pointer;
gap: 8px;
}
.view-more-btn:hover {
background: #0a6192;
color: #fff;
transform: translateY(-2px);
text-decoration: none;
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
/* 文章卡片样式 */
.social-activity-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: all 0.3s ease;
border: 1px solid #e0e0e0;
display: flex;
flex-direction: column;
height: 100%;
min-height: 400px;
}
.social-activity-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/* 图片容器 */
.activity-image {
position: relative;
height: 200px;
overflow: hidden;
background: #f8f9fa;
}
.activity-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.social-activity-card:hover .activity-image img {
transform: scale(1.05);
}
/* 无图片占位符 */
.placeholder-image {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
color: #6c757d;
border: none;
}
.placeholder-image span {
font-size: 0.9rem;
font-weight: 500;
}
/* 卡片内容 */
.activity-content {
padding: 20px;
display: flex;
flex-direction: column;
flex: 1;
justify-content: space-between;
}
.activity-title {
font-size: 16px;
font-weight: 600;
color: #333;
margin: 0 0 12px 0;
line-height: 1.5;
min-height: 48px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
flex-shrink: 0;
}
.activity-title a {
color: #333;
text-decoration: none;
transition: color 0.3s ease;
}
.activity-title a:hover {
color: #007bff;
}
/* 文章摘要 */
.activity-excerpt {
font-size: 14px;
color: #666;
line-height: 1.6;
margin-bottom: 16px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
flex: 1;
}
/* 元信息 */
.activity-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
flex-shrink: 0;
}
.activity-date {
font-size: 14px;
color: #6c757d;
}
.activity-link {
display: inline-flex;
align-items: center;
padding: 6px 12px;
background: #0a6192;
color: #fff;
text-decoration: none;
border-radius: 15px;
font-size: 12px;
font-weight: 500;
transition: all 0.3s ease;
}
.activity-link:hover {
background: #0a6192;
color: #fff;
transform: translateY(-1px);
text-decoration: none;
box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}
/* 无文章提示 */
.no-posts-message {
text-align: center;
padding: 60px 20px;
color: #6c757d;
font-size: 16px;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
/* 响应式设计 */
@media (max-width: 1024px) {
.social-activities-grid {
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}
}
@media (max-width: 768px) {
.social-activities-container {
padding: 40px 15px;
}
.social-activities-grid {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.social-activities-header h2 {
font-size: 28px;
}
.activity-content {
padding: 20px;
}
.activity-title {
font-size: 16px;
min-height: auto;
}
.activity-image {
height: 180px;
}
.view-more-btn {
padding: 10px 25px;
font-size: 15px;
}
}
@media (max-width: 480px) {
.social-activities-header h2 {
font-size: 24px;
}
.social-activities-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.activity-content {
padding: 15px;
}
.activity-link {
padding: 6px 12px;
font-size: 12px;
}
.activity-image {
height: 160px;
}
.view-more-btn {
padding: 8px 20px;
font-size: 14px;
}
.panel-content {
height: 84%;
}
}
/* 动画效果 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.social-activities-container {
animation: fadeInUp 0.6s ease-out;
}
.social-activity-card {
animation: fadeInUp 0.6s ease-out;
animation-fill-mode: both;
}
.social-activity-card:nth-child(1) { animation-delay: 0.1s; }
.social-activity-card:nth-child(2) { animation-delay: 0.2s; }
.social-activity-card:nth-child(3) { animation-delay: 0.3s; }

@ -0,0 +1,279 @@
/* Solution Block Styles */
.solution-block {
padding: 80px 0;
overflow: hidden;
}
.solution-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.solution-header {
text-align: center;
margin-bottom: 60px;
opacity: 0;
transform: translateY(30px);
}
/* 当JavaScript不可用时显示元素 */
.no-js .solution-header,
body:not(.js-loaded) .solution-header {
opacity: 1 !important;
transform: translateY(0) !important;
}
.solution-subtitle {
display: block;
font-size: 14px;
color: #666;
margin-bottom: 10px;
}
.solution-title {
font-size: 48px;
font-weight: 700;
color: #333;
margin: 0;
line-height: 1.2;
}
.solution-panels {
display: flex;
height: 500px;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
opacity: 0;
transform: translateY(50px);
gap: 10px;
}
/* 当JavaScript不可用时显示元素 */
.no-js .solution-panels,
body:not(.js-loaded) .solution-panels {
opacity: 1 !important;
transform: translateY(0) !important;
}
.solution-panel {
position: relative;
flex: 1;
cursor: pointer;
overflow: hidden;
border-radius: 15px;
/* 移除CSS的transition让JavaScript完全控制动画 */
}
/* 移除CSS的hover效果让JavaScript完全控制 */
.panel-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background-color: #f8f9fa;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.panel-content {
position: relative;
width: 100%;
height: 100%;
z-index: 2;
display: flex;
align-items: flex-end;
justify-content: flex-start;
padding: 20px;
}
.panel-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
transition: background 0.6s ease;
z-index: 1;
}
.solution-panel:hover .panel-content::before {
background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}
.panel-text {
position: relative;
z-index: 2;
color: white;
transform: translateY(20px);
transition: transform 0.6s ease;
}
.panel-title {
font-size: 32px;
font-weight: 700;
line-height: 1.2;
margin: 0 0 10px 0;
opacity: 1;
transition: all 0.6s ease;
}
.panel-description {
font-size: 16px;
line-height: 1.4;
margin: 0;
opacity: 0;
transform: translateY(20px);
transition: all 0.6s ease;
max-width: 300px;
}
/* 悬停效果由媒体查询控制 */
/* 响应式设计 */
@media (max-width: 1024px) {
.solution-block {
padding: 60px 0;
}
.solution-title {
font-size: 40px;
}
.solution-panels {
height: 400px;
}
.panel-content {
padding: 30px;
}
.panel-title {
font-size: 28px;
}
.panel-description {
font-size: 14px;
}
}
@media (max-width: 768px) {
.solution-block {
padding: 40px 0;
}
.solution-container {
padding: 0 15px;
}
.solution-header {
margin-bottom: 40px;
}
.solution-title {
font-size: 32px;
}
.solution-panels {
flex-direction: column;
height: auto;
border-radius: 15px;
}
.solution-panel {
height: 300px;
flex: none !important;
}
.solution-panel:hover {
flex: none !important;
}
.solution-panel:not(:hover) {
flex: none !important;
}
.panel-content {
padding: 25px;
}
.panel-title {
font-size: 24px;
}
.panel-description {
opacity: 0;
transform: translateY(20px);
max-width: none;
font-size: 14px;
}
.panel-text {
transform: translateY(0);
}
/* 移动端文字默认显示在正确位置 */
}
/* 移动端强制显示内容,避免动画导致空白 */
@media (max-width: 768px) {
.solution-header,
.solution-panels,
.solution-panel,
.panel-content::before,
.panel-text,
.panel-title {
opacity: 1 !important;
transform: none !important;
visibility: visible !important;
}
}
/* 桌面端悬停效果 */
@media (min-width: 769px) {
.solution-panel:hover .panel-text {
transform: translateY(0);
}
.solution-panel:hover .panel-description {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 480px) {
.solution-title {
font-size: 28px;
}
.solution-panels {
border-radius: 10px;
}
.solution-panel {
height: 250px;
}
.panel-content {
padding: 20px;
}
.panel-title {
font-size: 20px;
margin-bottom: 10px;
}
.panel-description {
font-size: 13px;
}
}

@ -0,0 +1,453 @@
/**
*
*
*/
/* 基础容器样式 */
.stock-info-block {
width: 100%;
max-width: 1200px;
margin: 20px auto;
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
border-radius: 12px;
padding: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: #ffffff;
position: relative;
overflow: hidden;
}
.stock-info-block::before {
content: '';
position: absolute;
top: -70px;
left: 0;
right: 0;
bottom: 0;
background: url("https://cn.nenghui.com/wp-content/uploads/2025/09/20250930191918_2846_68.jpg");
pointer-events: none;
}
.stock-info-container {
position: relative;
z-index: 1;
}
/* 股票头部信息 */
.stock-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.stock-basic-info {
display: flex;
align-items: center;
gap: 10px;
}
.stock-label {
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
font-weight: 400;
}
.stock-code {
font-size: 18px;
font-weight: 600;
color: #ffffff;
background: rgba(255, 255, 255, 0.1);
padding: 4px 12px;
border-radius: 6px;
letter-spacing: 1px;
}
.update-time {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: rgba(255, 255, 255, 0.7);
}
.update-label {
font-weight: 400;
}
.update-timestamp {
font-weight: 500;
color: #ffffff;
}
/* 主要数据区域 - 三列布局 */
.stock-main-data {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 40px;
margin-bottom: 30px;
}
/* 股价区域 */
.stock-price-section {
text-align: left;
}
.current-price {
margin-bottom: 10px;
}
.price-value {
display: block;
font-size: 48px;
font-weight: 700;
color: #ffffff;
line-height: 1.1;
margin-bottom: 8px;
letter-spacing: -1px;
}
.price-change {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.change-value {
font-size: 16px;
font-weight: 600;
padding: 4px 8px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
}
.change-percent {
font-size: 16px;
font-weight: 600;
padding: 4px 8px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
}
/* 涨跌颜色 */
.price-up .change-value,
.price-up .change-percent {
color: #e74c3c;
background: rgba(231, 76, 60, 0.15);
}
.price-down .change-value,
.price-down .change-percent {
color: #27ae60;
background: rgba(39, 174, 96, 0.15);
}
.price-neutral .change-value,
.price-neutral .change-percent {
color: #95a5a6;
background: rgba(149, 165, 166, 0.15);
}
/* 成交量区域 */
.stock-volume-section {
text-align: center;
}
.volume-data {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.volume-value {
font-size: 48px;
font-weight: 700;
color: #ffffff;
line-height: 1.1;
letter-spacing: -1px;
}
.volume-label {
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
}
/* 成交额区域 */
.stock-amount-section {
text-align: right;
}
.amount-data {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.amount-value {
font-size: 48px;
font-weight: 700;
color: #ffffff;
line-height: 1.1;
letter-spacing: -1px;
}
.amount-label {
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
}
/* 详细数据区域 */
.stock-details {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.detail-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.detail-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 6px;
}
.detail-label {
font-size: 13px;
color: rgba(255, 255, 255, 0.7);
font-weight: 400;
}
.detail-value {
font-size: 14px;
color: #ffffff;
font-weight: 600;
}
/* 加载状态 */
.loading-state {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
padding: 40px 20px;
text-align: center;
}
.loading-spinner {
width: 24px;
height: 24px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid #ffffff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
font-size: 16px;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
}
/* 错误状态 */
.error-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 15px;
padding: 40px 20px;
text-align: center;
}
.error-icon {
font-size: 32px;
color: #e74c3c;
}
.error-text {
font-size: 16px;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
}
.retry-button {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
color: #ffffff;
padding: 8px 16px;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.retry-button:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.5);
}
/* 响应式设计 */
@media (max-width: 768px) {
.stock-info-block {
padding: 20px;
margin: 10px;
}
.stock-header {
flex-direction: column;
align-items: center;
gap: 10px;
}
.stock-main-data {
grid-template-columns: 1fr;
gap: 30px;
text-align: center;
}
.stock-price-section {
text-align: center;
}
.price-change {
justify-content: center;
}
.stock-amount-section {
text-align: center;
}
.amount-data {
align-items: center;
}
.price-value,
.volume-value,
.amount-value {
font-size: 36px;
}
.detail-row {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.detail-item {
flex-direction: column;
gap: 4px;
text-align: center;
}
}
@media (max-width: 480px) {
.stock-info-block {
padding: 15px;
}
.price-value,
.volume-value,
.amount-value {
font-size: 28px;
}
.detail-row {
grid-template-columns: 1fr;
}
}
/* 主题变体 */
.stock-info-block.theme-light {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
color: #333333;
}
.stock-info-block.theme-light::before {
background: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
}
.stock-info-block.theme-light .stock-header {
border-bottom-color: rgba(0, 0, 0, 0.1);
}
.stock-info-block.theme-light .stock-label,
.stock-info-block.theme-light .update-time,
.stock-info-block.theme-light .volume-label,
.stock-info-block.theme-light .amount-label,
.stock-info-block.theme-light .detail-label {
color: rgba(0, 0, 0, 0.6);
}
.stock-info-block.theme-light .stock-code,
.stock-info-block.theme-light .update-timestamp,
.stock-info-block.theme-light .price-value,
.stock-info-block.theme-light .volume-value,
.stock-info-block.theme-light .amount-value,
.stock-info-block.theme-light .detail-value {
color: #333333;
}
.stock-info-block.theme-light .stock-code {
background: rgba(0, 0, 0, 0.05);
}
.stock-info-block.theme-light .change-value,
.stock-info-block.theme-light .change-percent {
background: rgba(0, 0, 0, 0.05);
}
.stock-info-block.theme-light .detail-item {
background: rgba(0, 0, 0, 0.03);
}
.stock-info-block.theme-light .stock-details {
border-top-color: rgba(0, 0, 0, 0.1);
}
/* 动画效果 */
.stock-info-block {
animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.price-value,
.volume-value,
.amount-value {
transition: all 0.3s ease;
}
.price-value.updating,
.volume-value.updating,
.amount-value.updating {
transform: scale(1.05);
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,171 @@
/**
* Banner -
*
*/
/* 全局样式重置 */
* {
box-sizing: border-box;
}
html, body {
overflow-x: hidden;
max-width: 100%;
}
/* 主容器 */
.video-banner-block {
position: relative;
width: 100%;
max-width: 100vw;
box-sizing: border-box;
overflow: hidden;
}
.video-banner-container {
position: relative;
width: 100%;
max-width: 100%;
height: 800px; /* 固定高度 */
overflow: hidden;
box-sizing: border-box;
margin-top: 160px;
}
/* 背景图片 */
.video-banner-bg-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: 1;
}
/* 视频背景容器 */
.video-background-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 2;
}
/* 视频背景 */
.video-background {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
transform: translate(-50%, -50%);
object-fit: cover;
z-index: 2;
}
/* 响应式设计 */
@media (max-width: 768px) {
.video-banner-block,
.video-banner-container {
width: 100%;
max-width: 100vw;
height: 800px; /* 保持800px高度 */
overflow-x: hidden;
}
}
@media (max-width: 576px) {
.video-banner-block,
.video-banner-container {
width: 100%;
max-width: 100vw;
height: 800px; /* 保持800px高度 */
overflow-x: hidden;
}
}
/* 高对比度支持 */
@media (prefers-contrast: high) {
.video-banner-container {
border: 2px solid #000;
}
}
/* 减少动画支持 */
@media (prefers-reduced-motion: reduce) {
.video-background {
animation: none;
}
}
/* 视频内容区域 */
.video-banner-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: white;
z-index: 10;
max-width: 80%;
}
.video-banner-title {
font-size: 3rem;
font-weight: bold;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.video-banner-subtitle {
font-size: 1.5rem;
margin-bottom: 1rem;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.video-banner-description {
font-size: 1.1rem;
margin-bottom: 2rem;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
line-height: 1.6;
}
/* 响应式设计 - 内容区域 */
@media (max-width: 768px) {
.video-banner-content {
max-width: 90%;
}
.video-banner-title {
font-size: 2rem;
}
.video-banner-subtitle {
font-size: 1.2rem;
}
.video-banner-description {
font-size: 1rem;
}
}
@media (max-width: 576px) {
.video-banner-title {
font-size: 1.5rem;
}
.video-banner-subtitle {
font-size: 1rem;
}
.video-banner-description {
font-size: 0.9rem;
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,13 @@
<svg width="400" height="250" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#f8f9fa;stop-opacity:1" />
<stop offset="100%" style="stop-color:#e9ecef;stop-opacity:1" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#bg)"/>
<circle cx="200" cy="100" r="30" fill="#dee2e6"/>
<rect x="150" y="140" width="100" height="8" rx="4" fill="#dee2e6"/>
<rect x="170" y="160" width="60" height="6" rx="3" fill="#dee2e6"/>
<text x="200" y="200" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" fill="#6c757d">默认文章图片</text>
</svg>

After

Width:  |  Height:  |  Size: 697 B

@ -0,0 +1,8 @@
<svg width="400" height="300" viewBox="0 0 400 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="400" height="300" fill="#f8fafc"/>
<rect x="50" y="50" width="300" height="200" rx="8" fill="#e2e8f0"/>
<circle cx="120" cy="120" r="20" fill="#cbd5e1"/>
<path d="M80 180L120 140L160 180L240 100L320 180V230H80V180Z" fill="#94a3b8"/>
<rect x="150" y="220" width="100" height="8" rx="4" fill="#cbd5e1"/>
<rect x="170" y="240" width="60" height="6" rx="3" fill="#e2e8f0"/>
</svg>

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save